From: Boris Derzhavets Subject: Re: HVM pvops failures (one more qemu-dm.strace obtained) Date: Wed, 25 Feb 2009 07:41:32 -0800 (PST) Message-ID: <344432.12504.qm@web56103.mail.re3.yahoo.com> References: Reply-To: bderzhavets@yahoo.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1088086735==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Andrew Lyon Cc: Jeremy Fitzhardinge , "xen-devel@lists.xensource.com" , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org --===============1088086735== Content-Type: multipart/alternative; boundary="0-1772771874-1235576492=:12504" --0-1772771874-1235576492=:12504 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable =A0 1.You can install a lot of PV DomUs i guess via two pygrub profiles, first one to install DomU, second one to load DomU, for guests having=20 distros on DVDs with xen-inified or pv_ops (DomU) enabled kernel.=20 It works fine, through my experience. Details here:- http://lxer.com/module/newswire/view/112300/index.html F10 has been tested. =A02. For Ubuntu( or Debian)=A0 DomUs=A0 "debootstrap port"=A0 to your Xen = Unstable Dom0 will allow straight forward installations. I prefer trick with HVM image prebuilt for corresponding PV DomU pygrub's profile at Xen 3.3.X Dom0= s. However, now i=A0 learned debootstrap (debian tool) and liked it very mu= ch ;). Details here:- http://lxer.com/module/newswire/view/114465/index.html Ubuntu Intrepid Server (64 bit) has been tested =A03. You can try to install OpenSolaris 2008/11 or Solaris Nevada PV DomU on ZFS. That's really tuff. Pygrub won't help you to read Sun's the most recent ZFS images.=20 Details here:- http://www.neuhalfen.name/drupal/node/3 --- On Wed, 2/25/09, Andrew Lyon wrote: From: Andrew Lyon Subject: Re: [Xen-devel] HVM pvops failures (one more qemu-dm.strace obtain= ed) To: "Boris Derzhavets" Cc: "Jeremy Fitzhardinge" , "xen-devel@lists.xensource.com= " , "Ian Jackson" , "Ian Campbell" Date: Wednesday, February 25, 2009, 9:28 AM On Tue, Feb 24, 2009 at 11:38 AM, Boris Derzhavets wrote: > I fixed error in hvm profile and got a similar qemu-dm.strace ( > /usr/lib64/.../qemu-dm). > > --- On Mon, 2/23/09, Jeremy Fitzhardinge wrote: > > From: Jeremy Fitzhardinge > Subject: Re: [Xen-devel] HVM pvops failures > To: "Ian Jackson" > Cc: "Andrew Lyon" , "xen-devel@lists.xensource.com" > , "Ian Campbell" > Date: Monday, February 23, 2009, 7:12 PM > > Ian Jackson wrote: >> Andrew Lyon writes ("Re: [Xen-devel] HVM guest question (was Re: > [PATCH] ioemu: Cleanup the code of PCI passthrough.)"): >> >>> On Mon, Feb 23, 2009 at 2:53 PM, Ian > Jackson > wrote: >>> >>>> These messages are not very surprising. Is it working ? >>>> >>> No, when try to start HVM on Xen unstable with pv_ops kernel I get > this error: >>> >> >> Ah. This is rather odd. Normally I would hope that xend would report >> an exit status. (I haven't tried pvops with qemu.) >> >> > Hm, I'm getting: > [2009-02-23 15:26:18 4380] WARNING (image:482) domain win7: device model > failure: pid 5409: died due to signal 7; see /var/log/xen/qemu-dm-win7.lo= g > > Hm, signal 7 - SIGBUS. I wonder if > > Using stub domains doesn't work either. > >> I would suggest running qemu-dm under strace. This can be done easily >> enough with a simple wrapper script, something like: >> #!/bin/sh >> set -e >> exec strace -vvs500 -f -o /root/qemu-dm.strace \ >> > /usr/lib/xen/bin/qemu-dm "$@" >> and then give the name of the script as device_model in your config file. Is there anything more I can do to help debug this problem? I am eager to do more testing with pv_ops and I have time to do it at the moment, but hvm support is currently broken so there is little I can do with my test box. Thx Andy >> > I see: > > ... > 5079 ioctl(10, EVIOCGKEYCODE, 0x7fffdfd52b70) =3D 0 > 5079 clock_gettime(CLOCK_MONOTONIC, {1324, 539747423}) =3D 0 > 5079 clock_gettime(CLOCK_MONOTONIC, {1324, 539837298}) =3D 0 > 5079 select(14, [3 6 10 11 13], [], [], {0, 10000}) =3D 1 (in [10], left {0, > 9995}) > 5079 read(10, "\36\0\0\0"..., 4) =3D 4 > 5079 write(10, "\36\0\0\0"..., 4) =3D 4 > 5079 ioctl(10, EVIOCGKEYCODE, 0x7fffdfd52b70) =3D 0 > 5079 clock_gettime(CLOCK_MONOTONIC, {1324, 540495964}) =3D 0 > 5079 clock_gettime(CLOCK_MONOTONIC, {1324, 540591278}) =3D 0 > 5079 select(14, [3 6 10 11 13], [], [], {0, 10000}) =3D 1 (in [10], left {0, > 9995}) > 5079 read(10, "\36\0\0\0"..., 4) =3D 4 > 5079 write(10, "\36\0\0\0"..., 4) =3D 4 > 5079 mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0) =3D > 0x7f1ad5f2b000 > 5079 > ioctl(4, SNDCTL_DSP_STEREO, 0x7fffdfd52230) =3D 0 > 5079 --- SIGBUS (Bus error) @ 0 (0) --- > 5157 +++ killed by SIGBUS +++ > > > This mmap and ioctl is from /proc/xen/privcmd. > > J > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > > _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-1772771874-1235576492=:12504 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
  1.You can install a lot of PV DomUs i = guess via two pygrub profiles,
first one to install DomU, second one to = load DomU, for guests having
distros on DVDs with xen-inified or pv_ops= (DomU) enabled kernel.
It works fine, through my experience. Details h= ere:-

http://lxer.com/module/newswire/view/112300/index.html

F10 has b= een tested.

 2. For Ubuntu( or Debian)  DomUs  "debootstrap port"&nb= sp; to your Xen Unstable
Dom0 will allow straight forward installations.= I prefer trick with HVM
image prebuilt for corresponding PV DomU pygrub= 's profile at Xen 3.3.X Dom0s. However, now i  learned debootstrap (de= bian tool) and liked it very much ;). Details here:-

http://lxer.com= /module/newswire/view/114465/index.html

Ubuntu Intrepid Server (64 b= it) has been tested

 3. You can try to install OpenSolaris 2008= /11 or Solaris Nevada
PV DomU on ZFS. That's really tuff. Pygrub won't h= elp you to
read Sun's the most recent ZFS images.

Details here:-=
http://www.neuhalfen.name/drupal/node/3


--- On Wed, 2/25/= 09, Andrew Lyon <andrew.lyon@gmail.com> wrote:
From: Andrew Lyon <andrew.lyon@gmail.com>
Subject: Re: [Xen-devel] HVM pvops failur= es (one more qemu-dm.strace obtained)
To: "Boris Derzhavets" <bderzha= vets@yahoo.com>
Cc: "Jeremy Fitzhardinge" <jeremy@goop.org>, "x= en-devel@lists.xensource.com" <xen-devel@lists.xensource.com>, "Ian J= ackson" <Ian.Jackson@eu.citrix.com>, "Ian Campbell" <Ian.Campbell@= citrix.com>
Date: Wednesday, February 25, 2009, 9:28 AM

O=
n Tue, Feb 24, 2009 at 11:38 AM, Boris Derzhavets
<bderzhavets@yahoo.= com> wrote:
> I fixed error in hvm profile and got a similar qemu-= dm.strace (
> /usr/lib64/.../qemu-dm).
>
> --- On Mon, 2/= 23/09, Jeremy Fitzhardinge <jeremy@goop.org> wrote:
>
> F= rom: Jeremy Fitzhardinge <jeremy@goop.org>
> Subject: Re: [Xen-= devel] HVM pvops failures
> To: "Ian Jackson" <Ian.Jackson@eu.citr= ix.com>
> Cc: "Andrew Lyon" <andrew.lyon@gmail.com>,
"xen-devel@lists.xensource.com"
> = <xen-devel@lists.xensource.com>, "Ian Campbell"
<Ian.Campbell@c= itrix.com>
> Date: Monday, February 23, 2009, 7:12 PM
>
&= gt; Ian Jackson wrote:
>> Andrew Lyon writes ("Re: [Xen-devel] HVM= guest question (was Re:
> [PATCH] ioemu: Cleanup the code of PCI pas= sthrough.)"):
>>
>>> On Mon, Feb 23, 2009 at 2:53 PM, = Ian
> Jackson
> <Ian.Jackson@eu.citrix.com> wrote:
&g= t;>>
>>>> These messages are not very surprising. Is = it working ?
>>>>
>>> No, when try to start HVM = on Xen unstable with pv_ops kernel I get
> this error:
>>>= ;
>>
>> Ah. This is rather odd. Normally I would hope t= hat xend would report
>> an exit status. (I haven't tried pvops w= ith qemu.)
>>
>>
> Hm, I'm getting:
> [2009-02-23 15:26:18 4380] WARNING (image:482) domain win7: device model> failure: pid 5409: died due to signal 7; see /var/log/xen/qemu-dm-wi= n7.log
>
> Hm, signal 7 - SIGBUS. I wonder if
>
> = Using stub domains doesn't work either.
>
>> I would suggest= running qemu-dm under strace. This can be done easily
>> enough = with a simple wrapper script, something like:
>> #!/bin/sh
&g= t;> set -e
>> exec strace -vvs500 -f -o /root/qemu-dm.strac= e \
>>
> /usr/lib/xen/bin/qemu-dm "$@"
>> and then= give the name of the script as device_model in your config
file.

Is there anything more I can do to help debug this problem? I am eager=
to do more testing with pv_ops and I have time to do it at the moment,<= br>but hvm support is currently broken so there is little I can do with
= my test box.

Thx
Andy

>>
> I see:
>
> ...
> 5079 ioctl(10, EVIOCGKEYCODE, 0x7fffdfd5= 2b70) =3D 0
> 5079 clock_gettime(CLOCK_MONOTONIC, {1324, 539747423})= =3D 0
> 5079 clock_gettime(CLOCK_MONOTONIC, {1324, 539837298}) =3D = 0
> 5079 select(14, [3 6 10 11 13], [], [], {0, 10000}) =3D 1 (in [1= 0], left
{0,
> 9995})
> 5079 read(10, "\36\0\0\0"..., 4) = =3D 4
> 5079 write(10, "\36\0\0\0"..., 4) =3D 4
> 507= 9 ioctl(10, EVIOCGKEYCODE, 0x7fffdfd52b70) =3D 0
> 5079 clock_getti= me(CLOCK_MONOTONIC, {1324, 540495964}) =3D 0
> 5079 clock_gettime(CL= OCK_MONOTONIC, {1324, 540591278}) =3D 0
> 5079 select(14, [3 6 10 11= 13], [], [], {0, 10000}) =3D 1 (in [10], left
{0,
> 9995})
>= ; 5079 read(10, "\36\0\0\0"..., 4) =3D 4
> 5079 write(10, "\3= 6\0\0\0"..., 4) =3D 4
> 5079 mmap(NULL, 1048576, PROT_READ|PROT= _WRITE, MAP_SHARED, 4, 0) =3D
> 0x7f1ad5f2b000
> 5079
> = ioctl(4, SNDCTL_DSP_STEREO, 0x7fffdfd52230) =3D 0
> 5079 --- SIGBUS (Bus err= or) @ 0 (0) ---
> 5157 +++ killed by SIGBUS +++
>
>
&= gt; This mmap and ioctl is from /proc/xen/privcmd.
>
> J>
> _______________________________________________
> Xen-d= evel mailing list
> Xen-devel@lists.xensource.com
> http://list= s.xensource.com/xen-devel
>
>

__________________________= _____________________
Xen-devel mailing list
Xen-devel@lists.xensourc= e.com
http://lists.xensource.com/xen-devel

=0A=0A=0A=0A --0-1772771874-1235576492=:12504-- --===============1088086735== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1088086735==--