[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v8 13/15] hmp: Print "share" property of memory backends with "in
From: |
David Hildenbrand |
Subject: |
[PATCH v8 13/15] hmp: Print "share" property of memory backends with "info memdev" |
Date: |
Mon, 10 May 2021 13:43:26 +0200 |
Let's print the property.
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@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: Markus Armbruster <armbru@redhat.com>
Cc: Eric Blake <eblake@redhat.com>
Cc: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
---
hw/core/machine-hmp-cmds.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/core/machine-hmp-cmds.c b/hw/core/machine-hmp-cmds.c
index 58248cffa3..004a92b3d6 100644
--- a/hw/core/machine-hmp-cmds.c
+++ b/hw/core/machine-hmp-cmds.c
@@ -110,6 +110,8 @@ void hmp_info_memdev(Monitor *mon, const QDict *qdict)
m->value->dump ? "true" : "false");
monitor_printf(mon, " prealloc: %s\n",
m->value->prealloc ? "true" : "false");
+ monitor_printf(mon, " share: %s\n",
+ m->value->share ? "true" : "false");
monitor_printf(mon, " policy: %s\n",
HostMemPolicy_str(m->value->policy));
visit_complete(v, &str);
--
2.30.2
- [PATCH v8 02/15] util/mmap-alloc: Factor out reserving of a memory region to mmap_reserve(), (continued)
- [PATCH v8 02/15] util/mmap-alloc: Factor out reserving of a memory region to mmap_reserve(), David Hildenbrand, 2021/05/10
- [PATCH v8 04/15] softmmu/memory: Pass ram_flags to qemu_ram_alloc_from_fd(), David Hildenbrand, 2021/05/10
- [PATCH v8 03/15] util/mmap-alloc: Factor out activating of memory to mmap_activate(), David Hildenbrand, 2021/05/10
- [PATCH v8 06/15] softmmu/memory: Pass ram_flags to qemu_ram_alloc() and qemu_ram_alloc_internal(), David Hildenbrand, 2021/05/10
- [PATCH v8 05/15] softmmu/memory: Pass ram_flags to memory_region_init_ram_shared_nomigrate(), David Hildenbrand, 2021/05/10
- [PATCH v8 07/15] util/mmap-alloc: Pass flags instead of separate bools to qemu_ram_mmap(), David Hildenbrand, 2021/05/10
- [PATCH v8 09/15] util/mmap-alloc: Support RAM_NORESERVE via MAP_NORESERVE under Linux, David Hildenbrand, 2021/05/10
- [PATCH v8 08/15] memory: Introduce RAM_NORESERVE and wire it up in qemu_ram_mmap(), David Hildenbrand, 2021/05/10
- [PATCH v8 10/15] hostmem: Wire up RAM_NORESERVE via "reserve" property, David Hildenbrand, 2021/05/10
- [PATCH v8 11/15] qmp: Clarify memory backend properties returned via query-memdev, David Hildenbrand, 2021/05/10
- [PATCH v8 13/15] hmp: Print "share" property of memory backends with "info memdev",
David Hildenbrand <=
- [PATCH v8 12/15] qmp: Include "share" property of memory backends, David Hildenbrand, 2021/05/10
- [PATCH v8 15/15] hmp: Print "reserve" property of memory backends with "info memdev", David Hildenbrand, 2021/05/10
- [PATCH v8 14/15] qmp: Include "reserve" property of memory backends, David Hildenbrand, 2021/05/10