Re: [KERNEL PATCH v10 3/3] xen/privcmd: Add new syscall to get gsi from dev

2024-09-24 Thread Stefano Stabellini
On Tue, 24 Sep 2024, Jiqian Chen wrote: > On PVH dom0, when passthrough a device to domU, QEMU and xl tools > want to use gsi number to do pirq mapping, see QEMU code > xen_pt_realize->xc_physdev_map_pirq, and xl code > pci_add_dm_done->xc_physdev_map_pirq, but in current codes, the gsi > number is

[KERNEL PATCH v10 3/3] xen/privcmd: Add new syscall to get gsi from dev

2024-09-23 Thread Jiqian Chen
On PVH dom0, when passthrough a device to domU, QEMU and xl tools want to use gsi number to do pirq mapping, see QEMU code xen_pt_realize->xc_physdev_map_pirq, and xl code pci_add_dm_done->xc_physdev_map_pirq, but in current codes, the gsi number is got from file /sys/bus/pci/devices//irq, that is