]> xenbits.xensource.com Git - people/royger/xen.git/commit
AMD-Vi: allocate root table on demand
authorJan Beulich <jbeulich@suse.com>
Mon, 20 Mar 2017 16:00:34 +0000 (17:00 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 20 Mar 2017 16:00:34 +0000 (17:00 +0100)
commit8709b10c7f667ee6c3b76a5ef6a469e096f27502
tree6a9c8ad70080f128f7f63a42eadd7387d7df8f56
parent5f8ce179e2b7614feda5476e1e0703d3b176fbba
AMD-Vi: allocate root table on demand

This was my originally intended fix for the AMD side of XSA-207:
There's no need to unconditionally allocate the root table, and with
that there's then also no way to leak it when a guest has no devices
assigned.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
xen/drivers/passthrough/amd/iommu_map.c
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/include/asm-x86/hvm/svm/amd-iommu-proto.h