[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 14/14] hmp: Print "reserve" property of memory backends with "
From: |
David Hildenbrand |
Subject: |
[PATCH v5 14/14] hmp: Print "reserve" property of memory backends with "info memdev" |
Date: |
Tue, 13 Apr 2021 11:14:21 +0200 |
Let's print the new property.
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
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 004a92b3d6..9bedc77bb4 100644
--- a/hw/core/machine-hmp-cmds.c
+++ b/hw/core/machine-hmp-cmds.c
@@ -112,6 +112,8 @@ void hmp_info_memdev(Monitor *mon, const QDict *qdict)
m->value->prealloc ? "true" : "false");
monitor_printf(mon, " share: %s\n",
m->value->share ? "true" : "false");
+ monitor_printf(mon, " reserve: %s\n",
+ m->value->reserve ? "true" : "false");
monitor_printf(mon, " policy: %s\n",
HostMemPolicy_str(m->value->policy));
visit_complete(v, &str);
--
2.30.2
- Re: [PATCH v5 07/14] memory: Introduce RAM_NORESERVE and wire it up in qemu_ram_mmap(), (continued)
- [PATCH v5 06/14] util/mmap-alloc: Pass flags instead of separate bools to qemu_ram_mmap(), David Hildenbrand, 2021/04/13
- [PATCH v5 08/14] util/mmap-alloc: Support RAM_NORESERVE via MAP_NORESERVE under Linux, David Hildenbrand, 2021/04/13
- [PATCH v5 09/14] hostmem: Wire up RAM_NORESERVE via "reserve" property, David Hildenbrand, 2021/04/13
- [PATCH v5 10/14] qmp: Clarify memory backend properties returned via query-memdev, David Hildenbrand, 2021/04/13
- [PATCH v5 11/14] qmp: Include "share" property of memory backends, David Hildenbrand, 2021/04/13
- [PATCH v5 13/14] qmp: Include "reserve" property of memory backends, David Hildenbrand, 2021/04/13
- [PATCH v5 14/14] hmp: Print "reserve" property of memory backends with "info memdev",
David Hildenbrand <=
- [PATCH v5 12/14] hmp: Print "share" property of memory backends with "info memdev", David Hildenbrand, 2021/04/13