vfio: Rename vfio-common.h to vfio-device.h

"hw/vfio/vfio-common.h" has been emptied of most of its declarations
by the previous changes and the only declarations left are related to
VFIODevice. Rename it to "hw/vfio/vfio-device.h" and make the
necessary adjustments.

Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Link: https://lore.kernel.org/qemu-devel/20250326075122.1299361-36-clg@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
Cédric Le Goater 2025-03-26 08:51:20 +01:00
parent a9183378f5
commit 11b8b9d53d
18 changed files with 19 additions and 19 deletions

View file

@ -18,7 +18,7 @@
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "monitor/monitor.h" #include "monitor/monitor.h"
#include "trace.h" #include "trace.h"
#include "hw/vfio/vfio-common.h" #include "hw/vfio/vfio-device.h"
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <linux/iommufd.h> #include <linux/iommufd.h>

View file

@ -15,7 +15,7 @@
#include <linux/vfio.h> #include <linux/vfio.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include "qapi/error.h" #include "qapi/error.h"
#include "hw/vfio/vfio-common.h" #include "hw/vfio/vfio-device.h"
#include "system/iommufd.h" #include "system/iommufd.h"
#include "hw/s390x/ap-device.h" #include "hw/s390x/ap-device.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"

View file

@ -21,7 +21,7 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include "qapi/error.h" #include "qapi/error.h"
#include "hw/vfio/vfio-common.h" #include "hw/vfio/vfio-device.h"
#include "system/iommufd.h" #include "system/iommufd.h"
#include "hw/s390x/s390-ccw.h" #include "hw/s390x/s390-ccw.h"
#include "hw/s390x/vfio-ccw.h" #include "hw/s390x/vfio-ccw.h"

View file

@ -19,7 +19,7 @@
#include "qapi/error.h" #include "qapi/error.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "hw/vfio/vfio-container-base.h" #include "hw/vfio/vfio-container-base.h"
#include "hw/vfio/vfio-common.h" /* vfio_reset_handler */ #include "hw/vfio/vfio-device.h" /* vfio_reset_handler */
#include "system/reset.h" #include "system/reset.h"
#include "vfio-helpers.h" #include "vfio-helpers.h"

View file

@ -22,7 +22,7 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <linux/vfio.h> #include <linux/vfio.h>
#include "hw/vfio/vfio-common.h" #include "hw/vfio/vfio-device.h"
#include "system/address-spaces.h" #include "system/address-spaces.h"
#include "system/memory.h" #include "system/memory.h"
#include "system/ram_addr.h" #include "system/ram_addr.h"

View file

@ -6,7 +6,7 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "hw/vfio/vfio-common.h" #include "hw/vfio/vfio-device.h"
#include "migration/misc.h" #include "migration/misc.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "system/runstate.h" #include "system/runstate.h"

View file

@ -21,7 +21,7 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include "hw/vfio/vfio-common.h" #include "hw/vfio/vfio-device.h"
#include "hw/vfio/pci.h" #include "hw/vfio/pci.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "trace.h" #include "trace.h"

View file

@ -23,7 +23,7 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include "system/kvm.h" #include "system/kvm.h"
#include "hw/vfio/vfio-common.h" #include "hw/vfio/vfio-device.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "vfio-helpers.h" #include "vfio-helpers.h"

View file

@ -15,7 +15,7 @@
#include <linux/vfio.h> #include <linux/vfio.h>
#include <linux/iommufd.h> #include <linux/iommufd.h>
#include "hw/vfio/vfio-common.h" #include "hw/vfio/vfio-device.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "trace.h" #include "trace.h"
#include "qapi/error.h" #include "qapi/error.h"

View file

@ -25,7 +25,7 @@
#endif #endif
#include <linux/vfio.h> #include <linux/vfio.h>
#include "hw/vfio/vfio-common.h" #include "hw/vfio/vfio-device.h"
#include "hw/vfio/pci.h" #include "hw/vfio/pci.h"
#include "system/address-spaces.h" #include "system/address-spaces.h"
#include "system/memory.h" #include "system/memory.h"

View file

@ -10,7 +10,7 @@
*/ */
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include "hw/vfio/vfio-common.h" #include "hw/vfio/vfio-device.h"
#include "migration/misc.h" #include "migration/misc.h"
#include "qapi/error.h" #include "qapi/error.h"
#include "qemu/bswap.h" #include "qemu/bswap.h"

View file

@ -12,7 +12,7 @@
#ifndef HW_VFIO_MIGRATION_MULTIFD_H #ifndef HW_VFIO_MIGRATION_MULTIFD_H
#define HW_VFIO_MIGRATION_MULTIFD_H #define HW_VFIO_MIGRATION_MULTIFD_H
#include "hw/vfio/vfio-common.h" #include "hw/vfio/vfio-device.h"
bool vfio_multifd_setup(VFIODevice *vbasedev, bool alloc_multifd, Error **errp); bool vfio_multifd_setup(VFIODevice *vbasedev, bool alloc_multifd, Error **errp);
void vfio_multifd_cleanup(VFIODevice *vbasedev); void vfio_multifd_cleanup(VFIODevice *vbasedev);

View file

@ -16,7 +16,7 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include "system/runstate.h" #include "system/runstate.h"
#include "hw/vfio/vfio-common.h" #include "hw/vfio/vfio-device.h"
#include "hw/vfio/vfio-migration.h" #include "hw/vfio/vfio-migration.h"
#include "migration/misc.h" #include "migration/misc.h"
#include "migration/savevm.h" #include "migration/savevm.h"

View file

@ -14,7 +14,7 @@
#include "system/memory.h" #include "system/memory.h"
#include "hw/pci/pci_device.h" #include "hw/pci/pci_device.h"
#include "hw/vfio/vfio-common.h" #include "hw/vfio/vfio-device.h"
#include "hw/vfio/vfio-region.h" #include "hw/vfio/vfio-region.h"
#include "qemu/event_notifier.h" #include "qemu/event_notifier.h"
#include "qemu/queue.h" #include "qemu/queue.h"

View file

@ -21,8 +21,8 @@
#include "qemu/osdep.h" #include "qemu/osdep.h"
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include "hw/vfio/vfio-common.h" #include "hw/vfio/vfio-region.h"
#include "hw/vfio/pci.h" #include "hw/vfio/vfio-device.h"
#include "hw/hw.h" #include "hw/hw.h"
#include "trace.h" #include "trace.h"
#include "qapi/error.h" #include "qapi/error.h"

View file

@ -14,7 +14,7 @@
#ifndef HW_VFIO_CCW_H #ifndef HW_VFIO_CCW_H
#define HW_VFIO_CCW_H #define HW_VFIO_CCW_H
#include "hw/vfio/vfio-common.h" #include "hw/vfio/vfio-device.h"
#include "hw/s390x/s390-ccw.h" #include "hw/s390x/s390-ccw.h"
#include "hw/s390x/ccw-device.h" #include "hw/s390x/ccw-device.h"
#include "qom/object.h" #include "qom/object.h"

View file

@ -1,5 +1,5 @@
/* /*
* common header for vfio based device assignment support * VFIO Device interface
* *
* Copyright Red Hat, Inc. 2012 * Copyright Red Hat, Inc. 2012
* *

View file

@ -17,7 +17,7 @@
#define HW_VFIO_VFIO_PLATFORM_H #define HW_VFIO_VFIO_PLATFORM_H
#include "hw/sysbus.h" #include "hw/sysbus.h"
#include "hw/vfio/vfio-common.h" #include "hw/vfio/vfio-device.h"
#include "qemu/event_notifier.h" #include "qemu/event_notifier.h"
#include "qemu/queue.h" #include "qemu/queue.h"
#include "qom/object.h" #include "qom/object.h"