On 17 June 2016 at 11:39, Vijay Kilari <vijay.kil...@gmail.com> wrote: > On Fri, Jun 17, 2016 at 4:00 PM, Peter Maydell <peter.mayd...@linaro.org> > wrote: >> This won't work, because machvirt_init needs to be able to specify >> properties of the CPU. I think we need to solve the issues with >> dynamically reinitializing and reallocating the data structures, >> as rth suggests. > > In early init, only cpu object is created and does not specify > properties of the CPU. > machvirt_init will reuse already created cpu object and specify > properties of the CPU.
You don't know how many CPUs to create, though, and some of the properties defined by the machine init function include those which tell you whether the page size should be 1K or 4K. thanks -- PMM