]> xenbits.xensource.com Git - xen.git/commit
x86/vtd: relax EPT page table sharing check
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 21 Apr 2020 08:54:56 +0000 (10:54 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 21 Apr 2020 08:54:56 +0000 (10:54 +0200)
commit3957e12c02670b97855ef0933b373f99993fa598
tree1ef6d4e66751d80f933a8d901f576ad8aeadd53a
parenta94b55a2986145ab5b357feb340f782d9d199d10
x86/vtd: relax EPT page table sharing check

The EPT page tables can be shared with the IOMMU as long as the page
sizes supported by EPT are also supported by the IOMMU.

Current code checks that both the IOMMU and EPT support the same page
sizes, but this is not strictly required, the IOMMU supporting more
page sizes than EPT is fine and shouldn't block page table sharing.

This is likely not a common case (IOMMU supporting more page sizes
than EPT), but should still be fixed for correctness.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/passthrough/vtd/iommu.c