qemu-cr16/hw/xen
Roger Pau Monne f74ce60226 hw/xen: pass PCI domain to xc_physdev_map_pirq_msi()
It's currently impossible for passthrough devices on segment different
than 0 to work correctly, as the PCI domain is not provided to
xc_physdev_map_pirq_msi(), and hence it's unconditionally assumed that
all devices are on segment 0.

Adjust the call to xc_physdev_map_pirq_msi() to pass the PCI domain in
the high 16bits of the bus parameter.  On versions of Xen where this
is not supported the passed segment will be ignored and assume to be 0,
no worse than the current state.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Frediano Ziglio <freddy77@gmail.com>
Reviewed-by: Anthony PERARD <anthony.perard@vates.tech>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
Message-ID: <20251017155136.16540-1-roger.pau@citrix.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2025-10-21 20:16:46 +02:00
..
Kconfig xen: add CONFIG_XEN_BUS and CONFIG_XEN_EMU options for Xen emulation 2023-03-01 08:22:49 +00:00
meson.build hw/xen: add stubs for various functions 2025-04-23 13:52:37 -07:00
trace-events hw/xen: Use xs_node_read() from xs_node_vscanf() 2025-01-15 17:07:04 +00:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
xen-backend.c hw/xen: do not repeatedly try to create a failing backend device 2023-11-07 08:54:20 +00:00
xen-bus-helper.c hw/xen: Use xs_node_read() from xs_node_vscanf() 2025-01-15 17:07:04 +00:00
xen-bus.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
xen-host-pci-device.c xen: fix stubdom PCI addr 2024-07-01 14:57:18 +02:00
xen-host-pci-device.h xen: fix stubdom PCI addr 2024-07-01 14:57:18 +02:00
xen-hvm-common.c hw/xen/hvm: Inline cpu_physical_memory_rw() in rw_phys_req_item() 2025-10-07 05:03:56 +02:00
xen-legacy-backend.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
xen-mapcache.c xen: mapcache: Split mapcache_grants by ro and rw 2025-05-06 18:39:44 +02:00
xen-operations.c xen: Drop support for Xen versions below 4.7.1 2023-06-07 15:07:10 +01:00
xen-pvh-common.c qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
xen_devconfig.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
xen_pt.c hw/xen/passthrough: add missing error-report include 2025-07-29 13:56:39 +02:00
xen_pt.h hw/xen: Extract 'xen_igd.h' from 'xen_pt.h' 2024-03-09 18:51:45 +01:00
xen_pt_config_init.c xen/pt: Emulate multifunction bit in header type 2024-03-12 14:13:08 +00:00
xen_pt_graphics.c qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
xen_pt_load_rom.c hw/pci: Replace -1 with UINT32_MAX for romsize 2024-07-03 18:14:07 -04:00
xen_pt_msi.c hw/xen: pass PCI domain to xc_physdev_map_pirq_msi() 2025-10-21 20:16:46 +02:00
xen_pt_stub.c hw/xen: Extract 'xen_igd.h' from 'xen_pt.h' 2024-03-09 18:51:45 +01:00
xen_pvdev.c hw/xen: Prefer QOM cast for XenLegacyDevice 2025-02-16 14:25:08 +01:00
xen_stubs.c hw/xen: add stubs for various functions 2025-04-23 13:52:37 -07:00