OSDN Git Service

qapi: Restrict balloon-related commands to machine code
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Sun, 13 Sep 2020 19:53:43 +0000 (21:53 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 29 Sep 2020 13:41:35 +0000 (15:41 +0200)
commita83e24ba1a52e2f0a00239c8b79edafaa61515aa
treeb31bf67b09917f2814b880718158845b431b3f7e
parent81e248ce7b5752f21c641a619b8301dccc773c44
qapi: Restrict balloon-related 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 balloon-related commands to machine.json pulls less
QAPI-generated code into user-mode.

Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200913195348.1064154-4-philmd@redhat.com>
[Commit message tweaked]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
hw/virtio/virtio-balloon.c
include/sysemu/balloon.h
monitor/hmp-cmds.c
qapi/machine.json
qapi/misc.json
softmmu/balloon.c