Benjamin Herrenschmidt <b...@kernel.crashing.org> writes: > On Thu, 2012-08-02 at 17:17 +0200, Paolo Bonzini wrote: >> >> On x86 we do not pre-load the kernel. Neither the kernel/initramfs >> and >> the option ROM that loads the kernel are written in memory, they are >> passed to the guest via fw_cfg. Then the option ROM is loaded by the >> BIOS, and loads the kernel/initramfs. > > How does it do ? IE. how does it access a random pair of files on the > host side ? Via some magic ports ?
Yes, see hw/fw_cfg.c Regards, Anthony Liguori > > Cheers, > Ben.