Re: [PATCH for-10.1 21/32] vfio: Move vfio_kvm_device_fd() into helpers.c

2025-03-20 Thread John Levon
On Tue, Mar 18, 2025 at 10:54:04AM +0100, Cédric Le Goater wrote: > The vfio_kvm_device_add/del_fd() routines opening the VFIO pseudo > device are defined in "helpers.c". Move 'vfio_kvm_device_fd' > definition there and its declaration into "helpers.h" to reduce > exposure of VFIO internals in "hw

[PATCH for-10.1 21/32] vfio: Move vfio_kvm_device_fd() into helpers.c

2025-03-18 Thread Cédric Le Goater
The vfio_kvm_device_add/del_fd() routines opening the VFIO pseudo device are defined in "helpers.c". Move 'vfio_kvm_device_fd' definition there and its declaration into "helpers.h" to reduce exposure of VFIO internals in "hw/vfio/vfio-common.h". Signed-off-by: Cédric Le Goater --- hw/vfio/helper