From: Ruslan Nikolaev Subject: Re: HVM hypercalls Date: Fri, 6 Aug 2010 14:58:20 -0700 (PDT) Message-ID: <363004.42397.qm@web113620.mail.gq1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org I tried these configs. The same result - it does not find root device.=0A= =0AHowever, if I disable 'CONFIG_XEN_PLATFORM_PCI', everything works. I can= see my disk as /dev/sda.=0A=0AIf CONFIG_XEN_PLATFORM_PCI is enabled (by de= fault), virtual ATA device appears, I can see GRUB, load the kernel. But wh= en kernel tries to mount root device, it cannot find it. There is no /dev/x= vda*, no /dev/hda*, no /dev/sda*, nothing! Apparently, it's a problem with = actual kernel disk driver (not configuration). I get the same result also i= f I specify physical device.=0A=0AAlso, I noted weird messages in dom0:=0AX= ENBUS: Unable to read cpu state=0A=0AP.S. For HVM domain I use Ubuntu 9.04= =0A=0AThanks,=0ARuslan.=0A=0A=0A=0A--- On Thu, 8/5/10, Stefano Stabellini <= stefano.stabellini@eu.citrix.com> wrote:=0A=0A> From: Stefano Stabellini =0A> Subject: Re: [Xen-devel] HVM hypercall= s=0A> To: "Ruslan Nikolaev" =0A> Cc: "xen-devel@li= sts.xensource.com" , "Jeremy Fitzhardinge" <= jeremy@goop.org>=0A> Date: Thursday, August 5, 2010, 2:31 PM=0A> On Wed, 4 = Aug 2010, Ruslan Nikolaev=0A> wrote:=0A> > Yes, I tried this but it does no= t seem to work. BTW in=0A> paravirtualized mode it works fine, the problem = is only with=0A> HVM.=0A> > =0A> > I tried to specify root=3D/dev/xvda (my = disk image has=0A> no partitions, entire disk image is a single file system= ).=0A> > =0A> =0A> If your disk file represents a single partition and in y= our=0A> pv config file you=0A> have a disk entry like this one:=0A> =0A> di= sk =3D [ 'file:/home/ruslan/fs1.img,xvda1,w' ]=0A> =0A> then your disk is n= ot going to work in HVM mode.=0A> Qemu must be able to handle your disk oth= erwise the=0A> bootloader won't be=0A> able to boot your kernel.=0A> =0A> = =0A> > My config is (I also tried to comment out device model=0A> but it do= es not help):=0A> > =0A> > import os, re=0A> > arch =3D os.uname()[4]=0A> >= if re.search('64', arch):=0A> >=A0 =A0=A0=A0arch_libdir =3D 'lib64'=0A> > = else:=0A> >=A0 =A0=A0=A0arch_libdir =3D 'lib'=0A> > =0A> =0A> remove this p= art if you are using xl=0A> =0A> > kernel =3D "/usr/lib/xen/boot/hvmloader"= =0A> > =0A> > builder=3D'hvm'=0A> > =0A> > vcpus=3D1=0A> > =0A> > memory = =3D 1024=0A> > shadow_memory =3D 8=0A> > name =3D "xenhvm1"=0A> > disk =3D = [ 'file:/home/ruslan/fs1.img,xvda,w' ]=0A> =0A> Even though xvda is current= ly supported it would be better=0A> to specify=0A> hda here if you only hav= e one disk, because you need at=0A> least an IDE=0A> interface to boot.=0A>= =0A> > device_model =3D '/usr/' + arch_libdir +=0A> '/xen/bin/qemu-dm'=0A>= =0A> device_model=3D'qemu-dm' especially if you are using xl=0A> =0A> =0A>= =0A=0A=0A=0A