WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel]qemu-dm: direct kernel boot to HVM regression

To: Chun Yan Liu <cyliu@xxxxxxxxxx>
Subject: Re: [Xen-devel]qemu-dm: direct kernel boot to HVM regression
From: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Date: Fri, 1 Apr 2011 16:12:12 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 01 Apr 2011 08:12:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <201104011557.24893.cyliu@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <201104011557.24893.cyliu@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)
On Fri, 1 Apr 2011, Chun Yan Liu wrote:
> Direct kernel boot to HVM doesn't work in xen-4.0.1-testing and xen-4.1.0-
> testing. In xen-3.3.1-testing, it works.
> There were two patches related to this:
> Daniel P. Berrange's patch: 
> # Direct linux kernel boot for HVM, add a fake boot sector to first disk.
> # http://lists.xensource.com/archives/html/xen-devel/2007-12/msg00723.html
> xen-3.3.1-testing uses this patch and works.
> 
> Anthony Liguori's patch:
> # use option rom instead of boot sector for -kernel
> # http://copilotco.com/mail-archives/qemu.2008/msg10186.html
> xen-4.0.1-testing and later adopts that. 
> It moves load_linux part to #ifndef CONFIG_DM case only:
> load_linux(phys_ram_base + option_rom_offset, kernel_filename, 
> initrd_filename, kernel_cmdline)
> But in a usual case, CONFIG_DM is set, that part of code is never executed. 
> Direct kernel boot to HVM doesn't work any more. It still calls bios to find 
> bootable disk.
> 

I wasn't even aware that xen supported this feature for HVM guests.
How is it exposed to users? Why is this better than using PV guests?


> And another question: 
> when I tried to move load_linux outside the #ifndef CONFIG_DM check, the code 
> could not be built succcessfully. It complains qemu_ram_alloc is undefined 
> reference. Removing CONFIG_DM form xen-config-host.h and let it enter the 
> #ifndef CONFIG_DM part, there is same complain.
> qemu_ram_alloc is defined in tools/ioemu/exec.c, but I didn't find exec.o is 
> built. Not very clear about the make rules of that part, any info? 

You need to provide a qemu_ram_alloc implementation that is compiled and
works on xen, the default one wouldn't do it.
Maybe you can give a look at what we were doing in qemu-xen 3.3 and
forward-port it.
In any case you should be aware that we are about to switch to upstream
qemu for development on xen-unstable.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>