[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 3/8] s390x/pci: code cleanup
From: |
Christian Borntraeger |
Subject: |
[Qemu-devel] [PULL 3/8] s390x/pci: code cleanup |
Date: |
Fri, 30 Sep 2016 12:47:59 +0200 |
From: Yi Min Zhao <address@hidden>
Now that each S390 PCI device uses an IO region as MSIX region. The
code in s390_translate_iommu() will never be triggered. Let's remove
it.
Signed-off-by: Yi Min Zhao <address@hidden>
Reviewed-by: Pierre Morel <address@hidden>
Signed-off-by: Christian Borntraeger <address@hidden>
---
hw/s390x/s390-pci-bus.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/hw/s390x/s390-pci-bus.c b/hw/s390x/s390-pci-bus.c
index fe5fc4e..b7f8bca 100644
--- a/hw/s390x/s390-pci-bus.c
+++ b/hw/s390x/s390-pci-bus.c
@@ -404,17 +404,6 @@ static IOMMUTLBEntry s390_translate_iommu(MemoryRegion
*iommu, hwaddr addr,
DPRINTF("iommu trans addr 0x%" PRIx64 "\n", addr);
- /* s390 does not have an APIC mapped to main storage so we use
- * a separate AddressSpace only for msix notifications
- */
- if (addr == ZPCI_MSI_ADDR) {
- ret.iova = addr;
- ret.translated_addr = addr;
- ret.addr_mask = 0xfff;
- ret.perm = IOMMU_RW;
- return ret;
- }
-
if (addr < pbdev->pba || addr > pbdev->pal) {
return ret;
}
--
2.5.5
- [Qemu-devel] [PULL 0/8] next patches for s390x/kvm, Christian Borntraeger, 2016/09/30
- [Qemu-devel] [PULL 5/8] pc-bios/s390-ccw: enable subchannel for IPL I/O devices, Christian Borntraeger, 2016/09/30
- [Qemu-devel] [PULL 1/8] s390x/pci: re-arrange variable declarations, Christian Borntraeger, 2016/09/30
- [Qemu-devel] [PULL 8/8] s390x/kvm: fix build against qemu_uuid, Christian Borntraeger, 2016/09/30
- [Qemu-devel] [PULL 4/8] s390x/kvm: Fix potential deadlock in sigp handling, Christian Borntraeger, 2016/09/30
- [Qemu-devel] [PULL 3/8] s390x/pci: code cleanup,
Christian Borntraeger <=
- [Qemu-devel] [PULL 7/8] s390x/css: {c, h, t, r, x}sch: require enable AND device number valid, Christian Borntraeger, 2016/09/30
- [Qemu-devel] [PULL 6/8] pc-bios/s390-ccw.img: rebuild image, Christian Borntraeger, 2016/09/30
- [Qemu-devel] [PULL 2/8] s390x/pci: assign msix io region for each pci device, Christian Borntraeger, 2016/09/30
- Re: [Qemu-devel] [PULL 0/8] next patches for s390x/kvm, Peter Maydell, 2016/09/30