qapi: Restrict device memory commands to machine code
commitb495ec6c5e2926dc4c776a98d078bc241d8ef3e1
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Sun, 13 Sep 2020 19:53:46 +0000 (13 21:53 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 29 Sep 2020 13:41:36 +0000 (29 15:41 +0200)
treef7fb479b5a625f9d99644094d19dd740593a5769
parentf68c01470b25d89fe4f48e2ecce77c78e42b62ca
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>
hw/acpi/memory_hotplug.c
hw/virtio/virtio-mem-pci.c
include/hw/mem/memory-device.h
include/hw/virtio/virtio-pmem.h
qapi/machine.json
qapi/misc.json