mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
s390x/pci: code cleanup
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 <zyimin@linux.vnet.ibm.com> Reviewed-by: Pierre Morel <pmorel@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
This commit is contained in:
parent
8f95595072
commit
bfcec59a23
1 changed files with 0 additions and 11 deletions
|
@ -404,17 +404,6 @@ static IOMMUTLBEntry s390_translate_iommu(MemoryRegion *iommu, hwaddr addr,
|
||||||
|
|
||||||
DPRINTF("iommu trans addr 0x%" PRIx64 "\n", 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) {
|
if (addr < pbdev->pba || addr > pbdev->pal) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue