qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 13/16] qmp/hmp: Expose "managed-size" for memory backends


From: Eric Blake
Subject: Re: [PATCH v2 13/16] qmp/hmp: Expose "managed-size" for memory backends
Date: Wed, 12 Feb 2020 08:17:13 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

On 2/12/20 7:35 AM, David Hildenbrand wrote:
Expose it, and document what it means and when it was added.

Signed-off-by: David Hildenbrand <address@hidden>
---
  hw/core/machine-hmp-cmds.c | 2 ++
  hw/core/machine-qmp-cmds.c | 3 +++
  qapi/machine.json          | 6 ++++++
  3 files changed, 11 insertions(+)

+++ b/qapi/machine.json
@@ -758,6 +758,9 @@
  #
  # @prealloc: enables or disables memory preallocation
  #
+# @managed-size: the owner manages the actual size, 'size' is an upper limit
+#                (since 5.1)
+#

There's still time to get this in 5.0, if the series is accepted before soft freeze.

  # @host-nodes: host nodes for its memory policy
  #
  # @policy: memory policy of memory backend
@@ -771,6 +774,7 @@
      'merge':      'bool',
      'dump':       'bool',
      'prealloc':   'bool',
+    'managed-size': 'bool',
      'host-nodes': ['uint16'],
      'policy':     'HostMemPolicy' }}
@@ -793,6 +797,7 @@
  #          "merge": false,
  #          "dump": true,
  #          "prealloc": false,
+#          "manmaged-size": false,

typo, managed-size

  #          "host-nodes": [0, 1],
  #          "policy": "bind"
  #        },
@@ -801,6 +806,7 @@
  #          "merge": false,
  #          "dump": true,
  #          "prealloc": true,
+#          "manmaged-size": false,

and again

  #          "host-nodes": [2, 3],
  #          "policy": "preferred"
  #        }


--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]