Re: [PATCH] hw/smbios/smbios: Use MachineState::ram_size instead of global one

2020-01-09 Thread Michael S. Tsirkin
On Thu, Jan 09, 2020 at 12:31:38AM +0100, Philippe Mathieu-Daudé wrote: > The smbios_get_tables() function has access the a machine state. the a -> the > Use the field the field -> the machine state field > instead of accessing the global ram_size variable. > > Signed-off-by: Philippe Mathieu-

Re: [PATCH] hw/smbios/smbios: Use MachineState::ram_size instead of global one

2020-01-09 Thread Igor Mammedov
On Thu, 9 Jan 2020 00:31:38 +0100 Philippe Mathieu-Daudé wrote: > The smbios_get_tables() function has access the a machine state. > Use the field instead of accessing the global ram_size variable. > > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Igor Mammedov > --- > hw/smbios/smbios

[PATCH] hw/smbios/smbios: Use MachineState::ram_size instead of global one

2020-01-08 Thread Philippe Mathieu-Daudé
The smbios_get_tables() function has access the a machine state. Use the field instead of accessing the global ram_size variable. Signed-off-by: Philippe Mathieu-Daudé --- hw/smbios/smbios.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/smbios/smbios.c b/hw/smbios/s