diff options
| author | Mark Cave-Ayland <mark.caveayland@nutanix.com> | 2025-07-15 10:25:42 +0100 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2025-09-08 16:46:31 +0200 |
| commit | 98c12de5aeb1cb464a9cde13cd7a53dd6520d3aa (patch) | |
| tree | 19c470f40bffe69486d00bf532e89d38ff946cb9 /include | |
| parent | 42875d256d204e69b608f2bd265f85fae32dd4bd (diff) | |
| download | focaccia-qemu-98c12de5aeb1cb464a9cde13cd7a53dd6520d3aa.tar.gz focaccia-qemu-98c12de5aeb1cb464a9cde13cd7a53dd6520d3aa.zip | |
vfio/vfio-container.h: update VFIOContainer declaration
Update the VFIOContainer declaration so that it is closer to our coding guidelines: emove the explicit typedef (this is already handled by the OBJECT_DECLARE_TYPE() macro) and add a blank line after the parent object. Signed-off-by: Mark Cave-Ayland <mark.caveayland@nutanix.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Link: https://lore.kernel.org/qemu-devel/20250715093110.107317-3-mark.caveayland@nutanix.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/vfio/vfio-container.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/hw/vfio/vfio-container.h b/include/hw/vfio/vfio-container.h index 21e5807e48..50c91788d5 100644 --- a/include/hw/vfio/vfio-container.h +++ b/include/hw/vfio/vfio-container.h @@ -25,13 +25,14 @@ typedef struct VFIOGroup { bool ram_block_discard_allowed; } VFIOGroup; -typedef struct VFIOContainer { +struct VFIOContainer { VFIOContainerBase bcontainer; + int fd; /* /dev/vfio/vfio, empowered by the attached groups */ unsigned iommu_type; QLIST_HEAD(, VFIOGroup) group_list; VFIOContainerCPR cpr; -} VFIOContainer; +}; OBJECT_DECLARE_SIMPLE_TYPE(VFIOContainer, VFIO_IOMMU_LEGACY); |