s390x/pci: introduce S390PCIBusDevice.iommu_enabled
commitdf6a050c82e56fc7a0afeb62cf4bc2e0c4c6d888
authorYi Min Zhao <zyimin@linux.vnet.ibm.com>
Wed, 4 May 2016 07:07:11 +0000 (4 15:07 +0800)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 17 May 2016 13:50:29 +0000 (17 15:50 +0200)
treee773b5b4ae32fa83339747a3ab3268b8020256eb
parente141dbadfa405a4ae16515c80a0e215e462a259f
s390x/pci: introduce S390PCIBusDevice.iommu_enabled

We introduce iommu_enabled field for S390PCIBusDevice struct to
track whether the iommu has been enabled for the device. This allows
us to stop temporarily changing ->configured while en/disabling the
iommu and to do conditional cleanup later.

Signed-off-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/s390-pci-bus.c
hw/s390x/s390-pci-bus.h