qemu: support xen hvm direct kernel boot
commitb33a5bbfbaab6c1ce653a8e3665a18ca67de1456
authorChunyan Liu <cyliu@suse.com>
Mon, 7 Jul 2014 06:34:35 +0000 (7 14:34 +0800)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 1 Aug 2014 15:58:12 +0000 (1 15:58 +0000)
tree5befef70c0f64c002c1018854898d2bd4dd50fb4
parent8677de2b4d26f8878b7414d540a6b2e139bc4d91
qemu: support xen hvm direct kernel boot

qemu side patch to support xen HVM direct kernel boot:
if -kernel exists, calls xen_load_linux(), which will read kernel/initrd
and add a linuxboot.bin or multiboot.bin option rom. The
linuxboot.bin/multiboot.bin will load kernel/initrd and jump to execute
kernel directly. It's working when xen uses seabios.

During this work, found the 'kvmvapic' is in option_rom list, it should
not be there in xen case. Set s->vapic_control = 0 in xen_apic_realize()
to handle that.

Signed-off-by: Chunyan Liu <cyliu@suse.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/pc.c
hw/i386/pc_piix.c
hw/i386/xen/xen_apic.c
include/hw/i386/pc.h