]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio: add vfio_device_get_irq_info() helper
authorJohn Levon <john.levon@nutanix.com>
Wed, 7 May 2025 15:20:09 +0000 (16:20 +0100)
committerCédric Le Goater <clg@redhat.com>
Fri, 9 May 2025 10:42:28 +0000 (12:42 +0200)
commit5321e623ebe27deef7cfb793a71d23affa77d157
treebcb604149b4311991eef9dbc241e3afbdf66d541
parentef73671f0bfc7bd852439e42ab4260104d902055
vfio: add vfio_device_get_irq_info() helper

Add a helper similar to vfio_device_get_region_info() and use it
everywhere.

Replace a couple of needless allocations with stack variables.

As a side-effect, this fixes a minor error reporting issue in the call
from vfio_msix_early_setup().

Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: John Levon <john.levon@nutanix.com>
Link: https://lore.kernel.org/qemu-devel/20250507152020.1254632-5-john.levon@nutanix.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/ap.c
hw/vfio/ccw.c
hw/vfio/device.c
hw/vfio/pci.c
hw/vfio/platform.c
include/hw/vfio/vfio-device.h