mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
make ram_size local to vl.c
Use the machine properties for the leftovers too. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
48c0b1e45f
commit
b326b6ea79
6 changed files with 12 additions and 11 deletions
|
@ -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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue