Igor Mammedov 82b911aaff machine: introduce convenience MachineState::ram
the new field will be used by boards to get access to main
RAM memory region and will help to save boiler plate in
boards which often introduce a field or variable just for
this purpose.

Memory region will be equivalent to what currently used
memory_region_allocate_system_memory() is returning apart
from that it will come from hostmem backend.
Followup patches will incrementally switch boards to using
RAM from MachineState::ram.

Patch takes care of non-NUMA case and follow up patch will
initialize MachineState::ram for NUMA case.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200219160953.13771-5-imammedo@redhat.com>
2020-02-19 16:49:53 +00:00
..
2020-01-07 17:24:29 +04:00
2020-01-07 17:24:29 +04:00
2019-12-17 19:33:51 +01:00
2020-01-17 14:27:16 +00:00
2019-10-28 19:06:47 +01:00
2020-02-10 12:01:37 -08:00
2019-11-06 17:19:40 +01:00
2019-11-05 23:33:12 +01:00
2020-01-07 16:06:59 +04:00