From: Boris Derzhavets Subject: Re: Re: Problem with Xen 4.1 on Ubuntu 11.10 ( Oneiric Ocelot) (HVM DomUs crash) Date: Tue, 19 Jul 2011 12:01:18 -0700 (PDT) Message-ID: <1311102078.60664.YahooMailClassic@web65907.mail.ac4.yahoo.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1342168591==" 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: Stefano Stabellini , Stefano Stabellini Cc: "xen-devel@lists.xensource.com" , Keir Fraser , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org --===============1342168591== Content-Type: multipart/alternative; boundary="0-1208873002-1311102078=:60664" --0-1208873002-1311102078=:60664 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I downloaded and installed=A0 source . Went to=A0 xen-4.0.1/debian/patches. It contains *.patch=A0 and *.diff files listed in file series ( to apply) . First i tried=20 # cat=A0 *.patch | grep hvmloader # cat=A0=A0 *.diff =A0 =A0 | grep hvmloader All what i was able find :- In file tools-python-xen-relative-path.diff=20 =A0=A0=A0=A0=A0=A0=A0=A0 elif vals.kernel =3D=3D 'hvmloader': =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 # Keep hvmloader w/o a path and let xe= nd find it. -=A0=A0=A0=A0=A0=A0=A0 elif vals.loader =3D=3D 'hvmloader': +=A0=A0=A0=A0=A0=A0=A0 if vals.loader =3D=3D 'hvmloader': =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 # Keep hvmloader w/o a path and let xe= nd find it. =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 # Old configs may have hvm= loader set as PV_kernel param =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 if self['PV_ke= rnel'] =3D=3D 'hvmloader': -=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 self= ['PV_kernel'] =3D auxbin.pathTo("hvmloader") +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 self= ['PV_kernel'] =3D auxbin.path_boot("hvmloader") -=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 self['platform']= ['loader'] =3D auxbin.pathTo("hvmloader") +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 self['platform']= ['loader'] =3D auxbin.path_boot("hvmloader") =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 elif self['platform']['loader'] =3D=3D= 'hvmloader': -=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 self['platform']['loader'] = =3D auxbin.pathTo("hvmloader") +=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 self['platform']['loader'] = =3D auxbin.path_boot("hvmloader") So, Ubuntu doesn't touch original source of "hvmloader" coming with=A0 xen-= 4.1.0.tar.gz Boris. --- On Tue, 7/19/11, Stefano Stabellini = wrote: From: Stefano Stabellini Subject: [Xen-devel] Re: Problem with Xen 4.1 on Ubuntu 11.10 ( Oneiric Oce= lot) (HVM DomUs crash) To: "Stefano Stabellini" Cc: "Boris Derzhavets" , "xen-devel@lists.xensource.= com" , "Keir Fraser" , "Konrad= Rzeszutek Wilk" Date: Tuesday, July 19, 2011, 2:01 PM On Tue, 19 Jul 2011, Stefano Stabellini wrote: > On Tue, 19 Jul 2011, Boris Derzhavets wrote: > > Alpha 2 already has Xen 4.1 packaged and ready for testing. > > It appears to be known bug that HVM=A0 DomUs crash at Xen 4.1 Dom0 with= different "pvops'' > > kernels ( in particular 3.0.0-5-generic Ubuntu) , but not only on Ubunt= u . > > Here is report for Fedora 15 : > >=20 > > http://www.gossamer-threads.com/lists/xen/users/213049?nohighlight=3D1#= 213049 > >=20 > > Ubuntu developers are pretty sure that Xen Host will be built with no p= roblems. > > Would it=A0 be possible to issue a patch for Xen=A0 4.1 to fix the=A0 p= roblem ? > > Actually two distros are affected Fedora 16 and Ubuntu 11.10 ( maybe De= bian=A0 - here > > i am not sure ) >=20 > First we need to understand what the problem is. I wasn't aware of this > issue before you started a thread yesterday and nothing meaningful > appears in any of the logs posted. >=20 > Now I am trying to reproduce the problem but so far I didn't have any > luck: I am testing with the same kernel config and VM config you use > with plain Linux 3.0.0 rc7, I tried both xen 4.1.0 and xen 4.1.1 but I > still can start hvm guests with no troubles. >=20 > However all my tests are on Debian 6.0.1, I am downloading alpha 2 to > see if I can reproduce the bug there. I managed to repro the issue on alpha 2. These are the error logs that I get on the xen serial when starting an HVM guest: (XEN) HVM1: HVM Loader (XEN) io.c:194:d1 MMIO emulation failed @ 0018:9ffff: 00 e0 de be 00 83 (XEN) hvm.c:1099:d1 Triple fault on VCPU0 - invoking HVM system reset. The problem appears to be hvmloader, in fact I replaced the hvmloader that comes with ubuntu alpha 2 with the one I compiled myself out of xen 4.1.1 and everything worked as expected. Do you have any patches to xen that might have broken hvmloader? -----Inline Attachment Follows----- _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --0-1208873002-1311102078=:60664 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
I downloaded and installed  source . Wen= t to  xen-4.0.1/debian/patches.
It contains *.patch  and *.dif= f files listed in file series ( to apply) .

First i tried
# cat&= nbsp; *.patch | grep hvmloader
# cat   *.diff     | = grep hvmloader

All what i was able find :-

In file tools-pyth= on-xen-relative-path.diff

       = ;  elif vals.kernel =3D=3D 'hvmloader':
    &nb= sp;        # Keep hvmloader w/o a path a= nd let xend find it.
-        elif va= ls.loader =3D=3D 'hvmloader':
+       = ; if vals.loader =3D=3D 'hvmloader':
      = ;       # Keep hvmloader w/o a path and let x= end find it.
           &= nbsp;     # Old configs may have hvmloader set as PV_ke= rnel param
          &= nbsp;          if self['PV_ker= nel'] =3D=3D 'hvmloader':
-       &nb= sp;            =     self['PV_kernel'] =3D auxbin.pathTo("hvmloader")
+&nb= sp;            =            self['PV_kerne= l'] =3D auxbin.path_boot("hvmloader")
-     &nb= sp;            =   self['platform']['loader'] =3D auxbin.pathTo("hvmloader")
+       &= nbsp;            sel= f['platform']['loader'] =3D auxbin.path_boot("hvmloader")
  &n= bsp;          elif self['platf= orm']['loader'] =3D=3D 'hvmloader':
-      = ;          self['platform']['l= oader'] =3D auxbin.pathTo("hvmloader")
+     &n= bsp;          self['platform']= ['loader'] =3D auxbin.path_boot("hvmloader")

So, Ubuntu doesn't touc= h original source of "hvmloader" coming with  xen-4.1.0.tar.gz

= Boris.


--- On Tue, 7/19/11, Stefano Stabellini <stefano= .stabellini@eu.citrix.com> wrote:

From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>= ;
Subject: [Xen-devel] Re: Problem with Xen 4.1 on Ubuntu 11.10 ( Oneiri= c Ocelot) (HVM DomUs crash)
To: "Stefano Stabellini" <Stefano.Stabell= ini@eu.citrix.com>
Cc: "Boris Derzhavets" <bderzhavets@yahoo.com&g= t;, "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>, = "Keir Fraser" <keir@xen.org>, "Konrad Rzeszutek Wilk" <konrad.wilk= @oracle.com>
Date: Tuesday, July 19, 2011, 2:01 PM

On Tue, 19 Jul 2011, Stefano Stabellini wrote:
> On Tu= e, 19 Jul 2011, Boris Derzhavets wrote:
> > Alpha 2 already has Xe= n 4.1 packaged and ready for testing.
> > It appears to be known b= ug that HVM  DomUs crash at Xen 4.1 Dom0 with different "pvops''
&g= t; > kernels ( in particular 3.0.0-5-generic Ubuntu) , but not only on U= buntu .
> > Here is report for Fedora 15 :
> >
> > http://www.gossamer-threads= .com/lists/xen/users/213049?nohighlight=3D1#213049
> >
>= ; > Ubuntu developers are pretty sure that Xen Host will be built with n= o problems.
> > Would it  be possible to issue a patch for Xe= n  4.1 to fix the  problem ?
> > Actually two distros ar= e affected Fedora 16 and Ubuntu 11.10 ( maybe Debian  - here
> &= gt; i am not sure )
>
> First we need to understand what the p= roblem is. I wasn't aware of this
> issue before you started a thread= yesterday and nothing meaningful
> appears in any of the logs posted= .
>
> Now I am trying to reproduce the problem but so far I di= dn't have any
> luck: I am testing with the same kernel config and VM= config you use
> with plain Linux 3.0.0 rc7, I tried both xen 4.1.0 and xen 4.1.1 but I
> still can start hvm guests with no troubles.>
> However all my tests are on Debian 6.0.1, I am downloading = alpha 2 to
> see if I can reproduce the bug there.


I manag= ed to repro the issue on alpha 2.
These are the error logs that I get on= the xen serial when starting an
HVM guest:

(XEN) HVM1: HVM Loade= r
(XEN) io.c:194:d1 MMIO emulation failed @ 0018:9ffff: 00 e0 de be 00 8= 3
(XEN) hvm.c:1099:d1 Triple fault on VCPU0 - invoking HVM system reset.=

The problem appears to be hvmloader, in fact I replaced the hvmload= er
that comes with ubuntu alpha 2 with the one I compiled myself out of = xen
4.1.1 and everything worked as expected.
Do you have any patches = to xen that might have broken hvmloader?

-----Inline Attachment Fo= llows-----

________________________________= _______________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xe= nsource.com/xen-devel
--0-1208873002-1311102078=:60664-- --===============1342168591== 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 --===============1342168591==--