diff options
| author | Igor Mammedov | 2020-02-19 17:08:40 +0100 |
|---|---|---|
| committer | Patchew Importer | 2020-02-19 17:49:54 +0100 |
| commit | a1b18df9a4848fc8a906e40c275063bfe9ca2047 (patch) | |
| tree | 00f0eecff29d1e85542565577e6fc010c4913347 /include | |
| parent | initialize MachineState::ram in NUMA case (diff) | |
| download | qemu-a1b18df9a4848fc8a906e40c275063bfe9ca2047.tar.gz qemu-a1b18df9a4848fc8a906e40c275063bfe9ca2047.tar.xz qemu-a1b18df9a4848fc8a906e40c275063bfe9ca2047.zip | |
vl.c: move -m parsing after memory backends has been processed
It will be possible for main RAM to come from memory-backend
and we should check that size specified in -m matches the size
of the backend and [MachineState::]ram_size also matches
backend's size.
However -m parsing (set_memory_options()) happens before backends
are intialized (object_create_delayed()) which complicates it.
Consolidate set_memory_options() and assigning parsed results to
current_machine after backends are initialized, so it would be
possible access the initialized backend instance to compare
sizes.
This patch only consolidates scattered places touching ram_size
within vl.c. And follow up patch will integrate backend handling
to set_memory_options().
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20200219160953.13771-7-imammedo@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
