qmp: Include "reserve" property of memory backends
commit69647f9d51795ebea09eef05b5b2d14ffb835baf
authorDavid Hildenbrand <david@redhat.com>
Mon, 10 May 2021 11:43:27 +0000 (10 13:43 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Jun 2021 18:27:38 +0000 (15 20:27 +0200)
tree326a8992fa8012cd8d17667d05253ac1e418733d
parent7428e7ba15cbc2a1a801ea2697f5f47fe1153381
qmp: Include "reserve" property of memory backends

Let's include the new property. Instead of relying on CONFIG_LINUX,
let's try to unconditionally grab the property and treat errors as
"does not exist".

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Eduardo Habkost <ehabkost@redhat.com> for memory backend and machine core
Cc: Eric Blake <eblake@redhat.com>
Cc: Markus Armbruster <armbru@redhat.com>
Cc: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210510114328.21835-15-david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/machine-qmp-cmds.c
qapi/machine.json