mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-31 14:23:53 -06:00
![]() In PVH dom0, when passthrough a device to domU, QEMU code xen_pt_realize->xc_physdev_map_pirq wants to use gsi, but in current codes the gsi number is got from file /sys/bus/pci/devices/<sbdf>/irq, that is wrong, because irq is not equal with gsi, they are in different spaces, so pirq mapping fails. To solve above problem, use new interface of Xen, xc_pcidev_get_gsi to get gsi and use xc_physdev_map_pirq_gsi to map pirq when dom0 is PVH. Signed-off-by: Jiqian Chen <Jiqian.Chen@amd.com> Signed-off-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Jiqian Chen <Jiqian.Chen@amd.com> Acked-by: Anthony PERARD <anthony@xenproject.org> Reviewed-by: Stewart Hildebrand <stewart.hildebrand@amd.com> Message-Id: <20241106061418.3655304-1-Jiqian.Chen@amd.com> Signed-off-by: Anthony PERARD <anthony.perard@vates.tech> |
||
---|---|---|
.. | ||
msi.h | ||
msix.h | ||
pci.h | ||
pci_bridge.h | ||
pci_bus.h | ||
pci_device.h | ||
pci_host.h | ||
pci_ids.h | ||
pci_regs.h | ||
pcie.h | ||
pcie_aer.h | ||
pcie_doe.h | ||
pcie_host.h | ||
pcie_port.h | ||
pcie_regs.h | ||
pcie_sriov.h | ||
shpc.h | ||
slotid_cap.h |