diff options
author | Yi Min Zhao | 2016-05-04 09:06:44 +0200 |
---|---|---|
committer | Cornelia Huck | 2016-05-17 15:50:29 +0200 |
commit | 715838881fdcab07aff26ce2f5fd37a4af8f243f (patch) | |
tree | 05af0163de8d04f2c549b13ad162a8ab5ad64bae /hw/s390x/s390-pci-inst.c | |
parent | s390x/pci: separate s390_sclp_configure function (diff) | |
download | qemu-715838881fdcab07aff26ce2f5fd37a4af8f243f.tar.gz qemu-715838881fdcab07aff26ce2f5fd37a4af8f243f.tar.xz qemu-715838881fdcab07aff26ce2f5fd37a4af8f243f.zip |
s390x/pci: separate s390_pcihost_iommu_configure function
Split s390_pcihost_iommu_configure() into separate functions for
configuring and deconfiguring in order to make the code more readable.
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>
Diffstat (limited to 'hw/s390x/s390-pci-inst.c')
-rw-r--r-- | hw/s390x/s390-pci-inst.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/s390x/s390-pci-inst.c b/hw/s390x/s390-pci-inst.c index 90d9fda77c..eb03f480c4 100644 --- a/hw/s390x/s390-pci-inst.c +++ b/hw/s390x/s390-pci-inst.c @@ -705,18 +705,17 @@ static int reg_ioat(CPUS390XState *env, S390PCIBusDevice *pbdev, ZpciFib fib) pbdev->pal = pal; pbdev->g_iota = g_iota; - s390_pcihost_iommu_configure(pbdev, true); + s390_pci_iommu_enable(pbdev); return 0; } static void dereg_ioat(S390PCIBusDevice *pbdev) { + s390_pci_iommu_disable(pbdev); pbdev->pba = 0; pbdev->pal = 0; pbdev->g_iota = 0; - - s390_pcihost_iommu_configure(pbdev, false); } int mpcifc_service_call(S390CPU *cpu, uint8_t r1, uint64_t fiba, uint8_t ar) |