From patchwork Tue Sep 27 15:57:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 9352211 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8A5CF60757 for ; Tue, 27 Sep 2016 16:01:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7AAB72928A for ; Tue, 27 Sep 2016 16:01:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6DAC829294; Tue, 27 Sep 2016 16:01:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 40DAC2928A for ; Tue, 27 Sep 2016 16:01:03 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1boumT-0000Ex-3n; Tue, 27 Sep 2016 15:58:53 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1boumR-0000BC-RD for xen-devel@lists.xenproject.org; Tue, 27 Sep 2016 15:58:51 +0000 Received: from [85.158.139.211] by server-6.bemta-5.messagelabs.com id DE/CC-06971-B379AE75; Tue, 27 Sep 2016 15:58:51 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrIIsWRWlGSWpSXmKPExsXitHRDpK7V9Ff hBvMbpC2+b5nM5MDocfjDFZYAxijWzLyk/IoE1oy+HrmCDWwVJ1vOMTYwLmPtYuTgkBDwl9j2 wKqLkZODTUBH4uLcnWwgYREBFYnbew26GLk4mAXuM0o8Pr4SLC4sEChx4IM+SDmLgKrExeMvW EBsXgFXibYPN5hAbAkBXYmH536zgticQPHetgVgcSEBF4m7Mz+yQtQLSpyc+QSsl1lAU6J1+2 92CFteonnrbGaIekWJ/nkP2CCu5Jb4220/gZF/FpLuWUi6ZyHpXsDIvIpRozi1qCy1SNfQQi+ pKDM9oyQ3MTNH19DAVC83tbg4MT01JzGpWC85P3cTIzD4GIBgB2PTds9DjJIcTEqivBrtr8KF +JLyUyozEosz4otKc1KLDzHKcHAoSfCWTAPKCRalpqdWpGXmAOMAJi3BwaMkwssDkuYtLkjML c5Mh0idYtTlWPDj9lomIZa8/LxUKXHehqlARQIgRRmleXAjYDF5iVFWSpiXEegoIZ6C1KLczB JU+VeM4hyMSsK8CiCreDLzSuA2vQI6ggnoiKUnXoAcUZKIkJJqYDRj8dZe791zjj19tneBaGo ND0s0n+alZj+ReSVTOv33HD848w1L4kKDwO3tMczr0i8u+SIvXjp5c9JU78eil362P1XdlynA d+GKjcff3FjH57Ib7yzjkLBmPLbyy409NRennXOMv7mk/0yWZXeSjp6qm2SN06wFf9nMvvCcl t/+7XewjlzjDyWW4oxEQy3mouJEAEbavB7EAgAA X-Env-Sender: prvs=071b8e69e=roger.pau@citrix.com X-Msg-Ref: server-15.tower-206.messagelabs.com!1474991925!48021928!2 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 41416 invoked from network); 27 Sep 2016 15:58:50 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-15.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 27 Sep 2016 15:58:50 -0000 X-IronPort-AV: E=Sophos;i="5.30,405,1470700800"; d="scan'208";a="380934606" From: Roger Pau Monne To: Date: Tue, 27 Sep 2016 17:57:24 +0200 Message-ID: <1474991845-27962-30-git-send-email-roger.pau@citrix.com> X-Mailer: git-send-email 2.7.4 (Apple Git-66) In-Reply-To: <1474991845-27962-1-git-send-email-roger.pau@citrix.com> References: <1474991845-27962-1-git-send-email-roger.pau@citrix.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: George Dunlap , Andrew Cooper , Jan Beulich , boris.ostrovsky@oracle.com, Roger Pau Monne Subject: [Xen-devel] [PATCH v2 29/30] xen/x86: allow PVHv2 to perform foreign memory mappings X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Roger Pau Monné Acked-by: George Dunlap --- Cc: George Dunlap Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/mm/p2m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/mm/p2m.c b/xen/arch/x86/mm/p2m.c index 44492ae..c989b60 100644 --- a/xen/arch/x86/mm/p2m.c +++ b/xen/arch/x86/mm/p2m.c @@ -2793,7 +2793,7 @@ int p2m_add_foreign(struct domain *tdom, unsigned long fgfn, struct domain *fdom; ASSERT(tdom); - if ( foreigndom == DOMID_SELF || !is_pvh_domain(tdom) ) + if ( foreigndom == DOMID_SELF || !has_hvm_container_domain(tdom) ) return -EINVAL; /* * pvh fixme: until support is added to p2m teardown code to cleanup any