diff options
author | Paolo Bonzini | 2020-10-28 11:24:22 +0100 |
---|---|---|
committer | Paolo Bonzini | 2020-12-10 18:15:10 +0100 |
commit | b326b6ea7998912d0bb0565ffef34efdfe9016dc (patch) | |
tree | 0c4dab1f43755ae5aee10d3a9257338ead2dc720 /monitor/qmp-cmds.c | |
parent | sparc64: do not use ram_size global (diff) | |
download | qemu-b326b6ea7998912d0bb0565ffef34efdfe9016dc.tar.gz qemu-b326b6ea7998912d0bb0565ffef34efdfe9016dc.tar.xz qemu-b326b6ea7998912d0bb0565ffef34efdfe9016dc.zip |
make ram_size local to vl.c
Use the machine properties for the leftovers too.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'monitor/qmp-cmds.c')
-rw-r--r-- | monitor/qmp-cmds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/monitor/qmp-cmds.c b/monitor/qmp-cmds.c index a08143b323..6299c0c8c7 100644 --- a/monitor/qmp-cmds.c +++ b/monitor/qmp-cmds.c @@ -392,8 +392,9 @@ ACPIOSTInfoList *qmp_query_acpi_ospm_status(Error **errp) MemoryInfo *qmp_query_memory_size_summary(Error **errp) { MemoryInfo *mem_info = g_malloc0(sizeof(MemoryInfo)); + MachineState *ms = MACHINE(qdev_get_machine()); - mem_info->base_memory = ram_size; + mem_info->base_memory = ms->ram_size; mem_info->plugged_memory = get_plugged_memory_size(); mem_info->has_plugged_memory = |