From: Ruslan Nikolaev Subject: Re: HVM hypercalls Date: Wed, 4 Aug 2010 10:41:20 -0700 (PDT) Message-ID: <779375.40829.qm@web113612.mail.gq1.yahoo.com> References: <4C588CBB.2010305@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4C588CBB.2010305@goop.org> 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 Cc: Jeremy Fitzhardinge List-Id: xen-devel@lists.xenproject.org Yes, I tried this but it does not seem to work. BTW in paravirtualized mode= it works fine, the problem is only with HVM.=0A=0AI tried to specify root= =3D/dev/xvda (my disk image has no partitions, entire disk image is a singl= e file system).=0A=0AMy config is (I also tried to comment out device model= but it does not help):=0A=0Aimport os, re=0Aarch =3D os.uname()[4]=0Aif re= .search('64', arch):=0A arch_libdir =3D 'lib64'=0Aelse:=0A arch_libdi= r =3D 'lib'=0A=0Akernel =3D "/usr/lib/xen/boot/hvmloader"=0A=0Abuilder=3D'h= vm'=0A=0Avcpus=3D1=0A=0Amemory =3D 1024=0Ashadow_memory =3D 8=0Aname =3D "x= enhvm1"=0Adisk =3D [ 'file:/home/ruslan/fs1.img,xvda,w' ]=0Adevice_model = =3D '/usr/' + arch_libdir + '/xen/bin/qemu-dm'=0A# boot on floppy (a), hard= disk (c) or CD-ROM (d)=0A# default: hard disk, cd-rom, floppy=0Aboot=3D"c"= =0A=0Asdl=3D1=0Avnc=3D0=0Avncviewer=3D0=0Avncpasswd=3D''=0Astdvga=3D1=0Aser= ial=3D'pty'=0Ausbdevice=3D'tablet'=0A=0AThanks,=0ARuslan=0A=0A--- On Wed, 8= /4/10, Jeremy Fitzhardinge wrote:=0A=0A> From: Jeremy Fit= zhardinge =0A> Subject: Re: [Xen-devel] HVM hypercalls=0A>= To: "Ruslan Nikolaev" =0A> Cc: xen-devel@lists.xe= nsource.com=0A> Date: Wednesday, August 4, 2010, 1:40 AM=0A> =A0 On 08/03/2= 010 12:48 PM, Ruslan=0A> Nikolaev wrote:=0A> > I've just tried to configure= newever version=0A> (2.6.32.16) from repositary. However, boot fails becau= se no=0A> root device is found. I am using disk image (the line in HVM=0A> = config is disk =3D [ 'file:/home/ruslan/fs1.img,hda,w' ])=0A> > I also trie= d to compile kernel with 'blktap' driver=0A> which is disabled in default k= ernel config, but it does not=0A> help.=0A> =0A> What is your root=3D param= eter?=A0 If you're using=0A> pv-on-hvm drivers, then =0A> the device will b= e named /dev/xvd[a-d] (for the=0A> moment).=A0 It's very =0A> strongly reco= mmended that you don't use a device-based root=0A> name (ie, =0A> use LABEL= =3D UUID=3D or LVM for your root device) so that your=0A> config is =0A> fa= ilsafe against root device name changes.=0A> =0A> =A0 =A0=A0=A0J=0A> =0A> >= The previous version (2.6.31.13) worked fine with the=0A> same disk image = and default configuration.=0A> >=0A> > Thanks,=0A> > Ruslan.=0A> >=0A> > --= - On Sat, 7/31/10, Jeremy Fitzhardinge=A0=0A> wrote:=0A> >= =0A> >> From: Jeremy Fitzhardinge=0A> >> Subject: Re: [Xen= -devel] HVM hypercalls=0A> >> To: "Ruslan Nikolaev"=0A> >> Cc: xen-devel@lists.xensource.com=0A> >> Date: Saturday, July 31, = 2010, 4:07 AM=0A> >>=A0 =A0 On 07/30/2010 09:06 AM, Ruslan=0A> >> Nikolaev = wrote:=0A> >>> I have 2 kernels:=0A> >>>=0A> >>> 1. From Xen repositary pvo= ps-git (2.6.31.13).=0A> >> You want 2.6.32.16 from xen.git - the branch is= =0A> >> xen/stable-2.6.32.x=0A> >>=0A> >>=A0 =A0 =A0=A0=A0J=0A> >>=0A> >>> = 2. From kernel.org: 2.6.32.16=0A> >>>=0A> >>> Thank you!=0A> >>> Ruslan.=0A= > >>>=0A> >>>=0A> >>> --- On Thu, 7/29/10, Jeremy Fitzhardinge=0A> >> wrote:=0A> >>>> From: Jeremy Fitzhardinge=0A> = >>>> Subject: Re: [Xen-devel] HVM hypercalls=0A> >>>> To: "Ruslan Nikolaev"= =0A> >>>> Cc: xen-devel@lists.xensource.com=0A> >>= >> Date: Thursday, July 29, 2010, 11:47 PM=0A> >>>>=A0 =A0=A0=A0On 07/29/20= 10=0A> 11:55 AM, Ruslan=0A> >>>> Nikolaev wrote:=0A> >>>>> Thank you very m= uch! I'll try this.=0A> BTW is it=0A> >> required=0A> >>>> to do this for e= very module with HVM=0A> hypercalls or=0A> >> there is=0A> >>>> some shared= initialization code in HVM=0A> guest=0A> >> (Linux) similar=0A> >>>> to on= e used in paravirtualized guests?=0A> >>>>> If it's supposed to be in a mod= ule, is=0A> there=0A> >> any good=0A> >>>> example I can look at?=0A> >>>>>= AFAIK hypercall_page is being=0A> initialized on=0A> >> Xen side=0A> >>>> = with appropriate vmcall/vmmcall code. Is=0A> this=0A> >> CPUID=0A> >>>> mec= hanism a standard way to obtain=0A> hypercall_page=0A> >> reference=0A> >>>= > on HVM domain?=0A> >>>>=0A> >>>> What kernel are you working with?=A0=0A>= There's=0A> >> already=0A> >>>> code to implement pv-on-hvm support for=0A= > various=0A> >> recent pvops=0A> >>>> kernels, so you can just base your w= ork on=0A> those.=0A> >>>>=0A> >>>>=A0 =A0 =A0 =A0 J=0A> >>>>=0A> >>>>=0A> = >>>=0A> >>>=0A> >>>=0A> _______________________________________________=0A>= >>> Xen-devel mailing list=0A> >>> Xen-devel@lists.xensource.com=0A> >>> h= ttp://lists.xensource.com/xen-devel=0A> >>>=0A> >>=0A> >> _________________= ______________________________=0A> >> Xen-devel mailing list=0A> >> Xen-dev= el@lists.xensource.com=0A> >> http://lists.xensource.com/xen-devel=0A> >>= =0A> >=0A> >=0A> >=0A> =0A> =0A> __________________________________________= _____=0A> Xen-devel mailing list=0A> Xen-devel@lists.xensource.com=0A> http= ://lists.xensource.com/xen-devel=0A> =0A=0A=0A