On 17 April 2012 22:33, Anthony Liguori<address@hidden> wrote:
Kernel loading is a hack. I'll go out on a limb and say that most non-x86
boards are doing it completely wrong. Messing around with CPU state has no
business in machine init. It creates horrible dependencies about RAM
initialization order and problems for reset/live migration.
The kernel should be presented as a virtual device (an emulated flash or
whatever) and there should be firmware that loads the kernel appropriately.
Then we wouldn't need changes like this in the first place.
Yeah, I tend to agree that that would be a cleaner approach, but so far
it hasn't been a requirement. Feel free to submit patches to fix kernel
loading for these boards if you want to be able to rely on this behaviour :-)