[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 06/30] qapi/qom: Add ObjectOptions for memory-backend-*
From: |
Eric Blake |
Subject: |
Re: [PATCH v3 06/30] qapi/qom: Add ObjectOptions for memory-backend-* |
Date: |
Mon, 8 Mar 2021 13:25:33 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 |
On 3/8/21 10:54 AM, Kevin Wolf wrote:
> This adds a QAPI schema for the properties of the memory-backend-*
> objects.
>
> HostMemPolicy has to be moved to an include file that can be used by the
> storage daemon, too, because ObjectOptions must be the same in all
> binaries if we don't want to compile the whole code multiple times.
>
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> Acked-by: Peter Krempa <pkrempa@redhat.com>
> ---
> qapi/common.json | 20 ++++++++
> qapi/machine.json | 22 +--------
> qapi/qom.json | 121 +++++++++++++++++++++++++++++++++++++++++++++-
> 3 files changed, 141 insertions(+), 22 deletions(-)
>
> @@ -287,7 +397,10 @@
> 'cryptodev-backend-builtin',
> 'cryptodev-vhost-user',
> 'dbus-vmstate',
> - 'iothread'
> + 'iothread',
> + 'memory-backend-file',
> + 'memory-backend-memfd',
> + 'memory-backend-ram'
Another leaked enum value...
> ] }
>
> ##
> @@ -315,7 +428,11 @@
> 'cryptodev-vhost-user': { 'type': 'CryptodevVhostUserProperties',
> 'if': 'defined(CONFIG_VIRTIO_CRYPTO)
> && defined(CONFIG_VHOST_CRYPTO)' },
> 'dbus-vmstate': 'DBusVMStateProperties',
> - 'iothread': 'IothreadProperties'
> + 'iothread': 'IothreadProperties',
> + 'memory-backend-file': 'MemoryBackendFileProperties',
> + 'memory-backend-memfd': { 'type': 'MemoryBackendMemfdProperties',
> + 'if': 'defined(CONFIG_LINUX)' },
> + 'memory-backend-ram': 'MemoryBackendProperties'
> } }
...when compared to the union branches.
Once fixed,
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
- [PATCH v3 00/30] qapi/qom: QAPIfy --object and object-add, Kevin Wolf, 2021/03/08
- [PATCH v3 01/30] qapi/qom: Drop deprecated 'props' from object-add, Kevin Wolf, 2021/03/08
- [PATCH v3 02/30] qapi/qom: Add ObjectOptions for iothread, Kevin Wolf, 2021/03/08
- [PATCH v3 03/30] qapi/qom: Add ObjectOptions for authz-*, Kevin Wolf, 2021/03/08
- [PATCH v3 04/30] qapi/qom: Add ObjectOptions for cryptodev-*, Kevin Wolf, 2021/03/08
- [PATCH v3 05/30] qapi/qom: Add ObjectOptions for dbus-vmstate, Kevin Wolf, 2021/03/08
- [PATCH v3 06/30] qapi/qom: Add ObjectOptions for memory-backend-*, Kevin Wolf, 2021/03/08
- Re: [PATCH v3 06/30] qapi/qom: Add ObjectOptions for memory-backend-*,
Eric Blake <=
- [PATCH v3 09/30] qapi/qom: Add ObjectOptions for secret*, deprecate 'loaded', Kevin Wolf, 2021/03/08
- [PATCH v3 07/30] qapi/qom: Add ObjectOptions for rng-*, deprecate 'opened', Kevin Wolf, 2021/03/08
- [PATCH v3 10/30] qapi/qom: Add ObjectOptions for tls-*, deprecate 'loaded', Kevin Wolf, 2021/03/08
- [PATCH v3 11/30] qapi/qom: Add ObjectOptions for can-*, Kevin Wolf, 2021/03/08
- [PATCH v3 13/30] qapi/qom: Add ObjectOptions for filter-*, Kevin Wolf, 2021/03/08
- [PATCH v3 12/30] qapi/qom: Add ObjectOptions for colo-compare, Kevin Wolf, 2021/03/08
- [PATCH v3 14/30] qapi/qom: Add ObjectOptions for pr-manager-helper, Kevin Wolf, 2021/03/08
- [PATCH v3 17/30] qapi/qom: Add ObjectOptions for x-remote-object, Kevin Wolf, 2021/03/08