diff options
| author | David Hildenbrand <david@redhat.com> | 2023-07-11 17:34:39 +0200 |
|---|---|---|
| committer | David Hildenbrand <david@redhat.com> | 2023-07-12 09:27:25 +0200 |
| commit | 18129c15bcefc0064febe2dc7759b93f7c5aaab3 (patch) | |
| tree | 2fc7277cb448dd2974d443669f55b996bf9b6f45 /hw/virtio/virtio-mem-pci.h | |
| parent | b01fd4b67a8fdf5a9ecf4ad5b49b70d52424f0f7 (diff) | |
| download | focaccia-qemu-18129c15bcefc0064febe2dc7759b93f7c5aaab3.tar.gz focaccia-qemu-18129c15bcefc0064febe2dc7759b93f7c5aaab3.zip | |
virtio-md-pci: New parent type for virtio-mem-pci and virtio-pmem-pci
Let's add a new abstract "virtio memory device" type, and use it as parent class of virtio-mem-pci and virtio-pmem-pci. Message-ID: <20230711153445.514112-2-david@redhat.com> Tested-by: Mario Casquero <mcasquer@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'hw/virtio/virtio-mem-pci.h')
| -rw-r--r-- | hw/virtio/virtio-mem-pci.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/virtio/virtio-mem-pci.h b/hw/virtio/virtio-mem-pci.h index e636e1a48d..c50b51d608 100644 --- a/hw/virtio/virtio-mem-pci.h +++ b/hw/virtio/virtio-mem-pci.h @@ -13,21 +13,21 @@ #ifndef QEMU_VIRTIO_MEM_PCI_H #define QEMU_VIRTIO_MEM_PCI_H -#include "hw/virtio/virtio-pci.h" +#include "hw/virtio/virtio-md-pci.h" #include "hw/virtio/virtio-mem.h" #include "qom/object.h" typedef struct VirtIOMEMPCI VirtIOMEMPCI; /* - * virtio-mem-pci: This extends VirtioPCIProxy. + * virtio-mem-pci: This extends VirtIOMDPCI. */ #define TYPE_VIRTIO_MEM_PCI "virtio-mem-pci-base" DECLARE_INSTANCE_CHECKER(VirtIOMEMPCI, VIRTIO_MEM_PCI, TYPE_VIRTIO_MEM_PCI) struct VirtIOMEMPCI { - VirtIOPCIProxy parent_obj; + VirtIOMDPCI parent_obj; VirtIOMEM vdev; Notifier size_change_notifier; }; |