Re: [PATCH v2 05/29] vfio: export PCI helpers needed for vfio-user

2025-05-21 Thread Cédric Le Goater
On 5/21/25 10:40, John Levon wrote: On Wed, May 21, 2025 at 09:39:42AM +0200, Cédric Le Goater wrote: These routines : Object *vfio_pci_get_object(VFIODevice *vbasedev); void vfio_pci_intx_eoi(VFIODevice *vbasedev); int vfio_pci_load_config(VFIODevice *vbasedev, QEMUFile *f); int v

Re: [PATCH v2 05/29] vfio: export PCI helpers needed for vfio-user

2025-05-21 Thread John Levon
On Wed, May 21, 2025 at 09:39:42AM +0200, Cédric Le Goater wrote: > These routines : > > Object *vfio_pci_get_object(VFIODevice *vbasedev); > void vfio_pci_intx_eoi(VFIODevice *vbasedev); > int vfio_pci_load_config(VFIODevice *vbasedev, QEMUFile *f); > int vfio_pci_save_config(VFIODevice

Re: [PATCH v2 05/29] vfio: export PCI helpers needed for vfio-user

2025-05-21 Thread Cédric Le Goater
On 5/20/25 17:03, John Levon wrote: The vfio-user code will need to re-use various parts of the vfio PCI code. Export them in hw/vfio/pci.h, and rename them to the vfio_pci_* namespace. Signed-off-by: John Levon --- hw/vfio/pci.h| 14 hw/vfio/pci.c| 54 ++