diff options
author | Philippe Mathieu-Daudé | 2020-09-13 21:53:46 +0200 |
---|---|---|
committer | Markus Armbruster | 2020-09-29 15:41:36 +0200 |
commit | b495ec6c5e2926dc4c776a98d078bc241d8ef3e1 (patch) | |
tree | f7fb479b5a625f9d99644094d19dd740593a5769 /hw/virtio | |
parent | qapi: Restrict query-uuid command to machine code (diff) | |
download | qemu-b495ec6c5e2926dc4c776a98d078bc241d8ef3e1.tar.gz qemu-b495ec6c5e2926dc4c776a98d078bc241d8ef3e1.tar.xz qemu-b495ec6c5e2926dc4c776a98d078bc241d8ef3e1.zip |
qapi: Restrict device memory commands to machine code
Only qemu-system-FOO and qemu-storage-daemon provide QMP
monitors, therefore such declarations and definitions are
irrelevant for user-mode emulation.
Restricting the memory commands to machine.json pulls less
QAPI-generated code into user-mode.
Acked-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200913195348.1064154-7-philmd@redhat.com>
[Commit message tweaked]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'hw/virtio')
-rw-r--r-- | hw/virtio/virtio-mem-pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/virtio/virtio-mem-pci.c b/hw/virtio/virtio-mem-pci.c index 590cec041b..913f4a3326 100644 --- a/hw/virtio/virtio-mem-pci.c +++ b/hw/virtio/virtio-mem-pci.c @@ -14,6 +14,7 @@ #include "virtio-mem-pci.h" #include "hw/mem/memory-device.h" #include "qapi/error.h" +#include "qapi/qapi-events-machine.h" #include "qapi/qapi-events-misc.h" static void virtio_mem_pci_realize(VirtIOPCIProxy *vpci_dev, Error **errp) |