aboutsummaryrefslogtreecommitdiffstats
path: root/unmodified_drivers/linux-2.6/platform-pci/panic-handler.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-02-01 11:18:15 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-02-01 11:18:15 +0000
commit6cc641c89f236d8d12ba7cca989bc0d3ae65bdcc (patch)
tree64b65813dcd23197615dd487b55fea61e943fb3c /unmodified_drivers/linux-2.6/platform-pci/panic-handler.c
parent042397126c8e75019b4c74483d7bfdff7f501a0a (diff)
downloadxen-6cc641c89f236d8d12ba7cca989bc0d3ae65bdcc.tar.gz
xen-6cc641c89f236d8d12ba7cca989bc0d3ae65bdcc.tar.bz2
xen-6cc641c89f236d8d12ba7cca989bc0d3ae65bdcc.zip
Direct Linux boot: XenD changes for HVM direct Linux boot.
This patch provides the tools support for direct kernel boot of HVM guests. Currently the config files in /etc/xen support the args 'kernel', 'ramdisk' and 'extra'. For PV guests these have the obvious meaning. Unfortunately HVM guest configs hijacked the 'kernel' parameter and use it to refer to the path of the HVM firmware. So, this patch adds a new config file parameter called 'loader' which is used to refer to the HVM firmware instead. The conventions for loading the initrd image say that it should live at the end of memory. This requires QEMU to know the size of the guest's initial RAM allocation, so image.py is changed to pass the '-m' flag to QEMU. The HVMImageHandler class in image.py is changed so that if the 'kernel', 'ramdisk' or 'extra' params were given in the config these are passed to QEMU with the '-kernel', '-initrd' and '-append' flags respectively. Finally, the 'loader' param is used as the arg to 'xc_hvm_build' instead of the old 'kernel' param. For the sake of compatability with old HVM guest config files, if the config file has a 'kernel' param whose path matches that of the HVM firmware, then we automatically convert this 'kernel' param into the 'loader' param. This ensures existing HVM guests work without changes required. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'unmodified_drivers/linux-2.6/platform-pci/panic-handler.c')
0 files changed, 0 insertions, 0 deletions