On 10/17/25 4:14 PM, Roger Pau Monne wrote:
Otherwise it's not possible for device models to map IRQs of devices on
segments different than 0.  Keep the same function prototype and pass the
segment in the high 16bits of the bus parameter, like it's done for the
hypercall itself.

Fixes: 7620c0cf9a4d ("PCI multi-seg: add new physdevop-s")
Signed-off-by: Roger Pau MonnĂ©<[email protected]>
---
I think it's 4.21 material, as otherwise it's not possible to passthrough
PCI devices on segments != 0.

Make sense to me:
  Release-Acked-by: Oleksii Kurochko<[email protected]>

Thanks.

~ Oleksii

---
  tools/libs/ctrl/xc_physdev.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/libs/ctrl/xc_physdev.c b/tools/libs/ctrl/xc_physdev.c
index 25e686d7b389..1307d6836d72 100644
--- a/tools/libs/ctrl/xc_physdev.c
+++ b/tools/libs/ctrl/xc_physdev.c
@@ -79,7 +79,7 @@ int xc_physdev_map_pirq_msi(xc_interface *xch,
      }
      memset(&map, 0, sizeof(struct physdev_map_pirq));
      map.domid = domid;
-    map.type = MAP_PIRQ_TYPE_MSI;
+    map.type = MAP_PIRQ_TYPE_MSI_SEG;
      map.index = index;
      map.pirq = *pirq;
      map.bus = bus;

Reply via email to