diff options
author | Chunyan Liu <cyliu@suse.com> | 2014-07-07 14:34:35 +0800 |
---|---|---|
committer | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2014-08-01 15:58:12 +0000 |
commit | b33a5bbfbaab6c1ce653a8e3665a18ca67de1456 (patch) | |
tree | 5befef70c0f64c002c1018854898d2bd4dd50fb4 /hw/i386/xen | |
parent | 8677de2b4d26f8878b7414d540a6b2e139bc4d91 (diff) | |
download | qemu-b33a5bbfbaab6c1ce653a8e3665a18ca67de1456.zip qemu-b33a5bbfbaab6c1ce653a8e3665a18ca67de1456.tar.gz qemu-b33a5bbfbaab6c1ce653a8e3665a18ca67de1456.tar.bz2 |
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>
Diffstat (limited to 'hw/i386/xen')
-rw-r--r-- | hw/i386/xen/xen_apic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/i386/xen/xen_apic.c b/hw/i386/xen/xen_apic.c index 63bb7f7..f5acd6a 100644 --- a/hw/i386/xen/xen_apic.c +++ b/hw/i386/xen/xen_apic.c @@ -40,6 +40,7 @@ static void xen_apic_realize(DeviceState *dev, Error **errp) { APICCommonState *s = APIC_COMMON(dev); + s->vapic_control = 0; memory_region_init_io(&s->io_memory, OBJECT(s), &xen_apic_io_ops, s, "xen-apic-msi", APIC_SPACE_SIZE); |