]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio: add vfio-pci-base class
authorJohn Levon <john.levon@nutanix.com>
Wed, 7 May 2025 15:20:18 +0000 (16:20 +0100)
committerCédric Le Goater <clg@redhat.com>
Fri, 9 May 2025 10:42:28 +0000 (12:42 +0200)
commitd4e392d0a99b8018453e26f907e33b89724697a6
tree26cb84d77ef36df78793c88cd5513083e39e1166
parent776066ac90a2b57fedb6b0186b30c5a9e9e1c9bd
vfio: add vfio-pci-base class

Split out parts of TYPE_VFIO_PCI into a base TYPE_VFIO_PCI_BASE,
although we have not yet introduced another subclass, so all the
properties have remained in TYPE_VFIO_PCI.

Note that currently there is no need for additional data for
TYPE_VFIO_PCI, so it shares the same C struct type as
TYPE_VFIO_PCI_BASE, VFIOPCIDevice.

Originally-by: John Johnson <john.g.johnson@oracle.com>
Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com>
Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Signed-off-by: John Levon <john.levon@nutanix.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250507152020.1254632-14-john.levon@nutanix.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/device.c
hw/vfio/pci.c
hw/vfio/pci.h