python/qmp.py: add QMPProtocolError
[qemu/ar7.git] / hw / virtio / virtio-mem-pci.h
blobb51a28b275f82b506ed9c47ce9c97b6fabc15e64
1 /*
2 * Virtio MEM PCI device
4 * Copyright (C) 2020 Red Hat, Inc.
6 * Authors:
7 * David Hildenbrand <david@redhat.com>
9 * This work is licensed under the terms of the GNU GPL, version 2.
10 * See the COPYING file in the top-level directory.
13 #ifndef QEMU_VIRTIO_MEM_PCI_H
14 #define QEMU_VIRTIO_MEM_PCI_H
16 #include "hw/virtio/virtio-pci.h"
17 #include "hw/virtio/virtio-mem.h"
19 typedef struct VirtIOMEMPCI VirtIOMEMPCI;
22 * virtio-mem-pci: This extends VirtioPCIProxy.
24 #define TYPE_VIRTIO_MEM_PCI "virtio-mem-pci-base"
25 #define VIRTIO_MEM_PCI(obj) \
26 OBJECT_CHECK(VirtIOMEMPCI, (obj), TYPE_VIRTIO_MEM_PCI)
28 struct VirtIOMEMPCI {
29 VirtIOPCIProxy parent_obj;
30 VirtIOMEM vdev;
31 Notifier size_change_notifier;
34 #endif /* QEMU_VIRTIO_MEM_PCI_H */