x86/p2m-pt: ignore pt-share flag for shadow mode guests
authorJan Beulich <jbeulich@suse.com>
Tue, 29 Sep 2015 11:56:03 +0000 (13:56 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 29 Sep 2015 11:56:03 +0000 (13:56 +0200)
There is no page table sharing in shadow mode.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/p2m-pt.c

index 5be6212e3068b0dd34f16a918720aa93cb6abac1..e61d5033d38e6270eb29ebae1f08e2803a568adf 100644 (file)
@@ -647,7 +647,7 @@ p2m_pt_set_entry(struct p2m_domain *p2m, unsigned long gfn, mfn_t mfn,
 
     if ( iommu_enabled && need_iommu(p2m->domain) )
     {
-        if ( iommu_hap_pt_share )
+        if ( iommu_use_hap_pt(p2m->domain) )
         {
             if ( old_mfn && (old_mfn != mfn_x(mfn)) )
                 amd_iommu_flush_pages(p2m->domain, gfn, page_order);