vl: Set machine ram_size, maxram_size and ram_slots earlier
commitee6850110c627d904a11b8d3851257b4f01da20e
authorEric Auger <eric.auger@redhat.com>
Mon, 4 Mar 2019 10:13:35 +0000 (4 11:13 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 5 Mar 2019 15:55:09 +0000 (5 15:55 +0000)
tree515e3a3e6081707039553d126aa49400ac74df49
parenta27382e2106c12a9761ca0954b4c0fba0e650682
vl: Set machine ram_size, maxram_size and ram_slots earlier

The machine RAM attributes will need to be analyzed during the
configure_accelerator() process. especially kvm_type() arm64
machine callback will use them to know how many IPA/GPA bits are
needed to model the whole RAM range. So let's assign those machine
state fields before calling configure_accelerator.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-id: 20190304101339.25970-7-eric.auger@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
vl.c