From: Tim Deegan Subject: Re: [PATCH v2] xen/iommu: fix usage of shared EPT/IOMMU page tables on PVH guests Date: Thu, 5 Mar 2015 10:49:29 +0100 Message-ID: <20150305094929.GA85606@deinos.phlegethon.org> References: <1425036812-23536-1-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YTSPR-0006Ro-Nr for xen-devel@lists.xenproject.org; Thu, 05 Mar 2015 09:49:37 +0000 Content-Disposition: inline In-Reply-To: <1425036812-23536-1-git-send-email-roger.pau@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roger Pau Monne Cc: Kevin Tian , Suravee Suthikulpanit , Aravind Gopalakrishnan , Jan Beulich , Yang Zhang , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org At 12:33 +0100 on 27 Feb (1425036812), Roger Pau Monne wrote: > iommu_share_p2m_table should not prevent PVH guests from using a shared p= age > table between the IOMMU and EPT. Clean the code by removing the asserts in > the vendor specific implementations (amd_iommu_share_p2m, iommu_set_pgd), > and moving the hap_enabled assert to the caller (iommu_share_p2m_table). > = > Also fix another incorrect usage of is_hvm_domain usage in > arch_iommu_populate_page_table. This has not given problems so far because > all the pages in PVH guests are of type PGT_writable_page. > = > Signed-off-by: Roger Pau Monn=E9 Reviewed-by: Tim Deegan