IOMMU: make the pcidevs_lock a recursive one
authorQuan Xu <quan.xu@intel.com>
Mon, 14 Mar 2016 12:00:32 +0000 (13:00 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 14 Mar 2016 12:00:32 +0000 (13:00 +0100)
commitbfa493f52e894f2c8877aba525b0a04df7e452bb
treeced55dca7bb0089a78fdf7b5a6e2e4109b38fd5c
parentbf55ead25c5e9a7fbd8fa47c64ec8d1557478efb
IOMMU: make the pcidevs_lock a recursive one

The pcidevs_lock is going to be recursively taken for hiding ATS
device, when VT-d Device-TLB flush timed out.

Signed-off-by: Quan Xu <quan.xu@intel.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Dario Faggioli <dario.faggioli@citrix.com>
pcidevs_is_locked() -> pcidevs_locked(). Add __must_check to
pcidevs_locked() and pcidevs_trylock() declarations.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
15 files changed:
xen/arch/x86/domctl.c
xen/arch/x86/hvm/vmsi.c
xen/arch/x86/irq.c
xen/arch/x86/msi.c
xen/arch/x86/pci.c
xen/arch/x86/physdev.c
xen/common/sysctl.c
xen/drivers/passthrough/amd/iommu_init.c
xen/drivers/passthrough/amd/iommu_map.c
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/drivers/passthrough/pci.c
xen/drivers/passthrough/vtd/intremap.c
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/video/vga.c
xen/include/xen/pci.h