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-users] Re: [Xen-devel] State of Xen in upstream Linux

To: Grant McWilliams <grantmasterflash@xxxxxxxxx>
Subject: Re: [Xen-users] Re: [Xen-devel] State of Xen in upstream Linux
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Thu, 31 Jul 2008 13:14:54 -0700
Cc: Alexey Eremenko <al4321@xxxxxxxxx>, Virtualization Mailing List <virtualization@xxxxxxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Daniel P. Berrange" <berrange@xxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 31 Jul 2008 13:15:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <ed123fa30807311307j1687590bg31746d19f58d892d@xxxxxxxxxxxxxx>
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: <48910C99.10606@xxxxxxxx> <20080731090845.GH23888@xxxxxxxxxx> <ed123fa30807311054p4965f43bod78dafa6626c9c2d@xxxxxxxxxxxxxx> <4891FFBA.1020702@xxxxxxxx> <7fac565a0807311119p55e534f1hc15005aea46671a2@xxxxxxxxxxxxxx> <48920455.40204@xxxxxxxx> <ed123fa30807311148q6460d2d8nb012f1b4edeb042f@xxxxxxxxxxxxxx> <48920B4F.7010608@xxxxxxxx> <ed123fa30807311307j1687590bg31746d19f58d892d@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (X11/20080501)
Grant McWilliams wrote:
> I wasn't really trying to run VBox in the dom0. I'd been running the
> Xen kernel so long that I'd forgotten which
> kernel I was on. Like I said when you start VMware the guest OS just
> doesn't run which gives you a second
> to ponder why. VBox uses VT/SVM if you check a box in the config. It
> was not checked when it
> crashed the server.

Yes.  It looks to me like the VBox kernel code is constructing its own
pagetable entries without using the normal kernel API to do so, and is
therefore not taking the pfn to mfn translation that must be done when
constructing pagetable entries.  The upshot is that it will use invalid
pagetables which are bound to crash the dom0 kernel.

There are two possible fixes: 1) make VBox Xen (or pvops) aware by
making sure it always uses the normal kernel APIs for constructing
pagetables, 2a) refuse to build with CONFIG_PARAVIRT enables, or 2b)
detect at runtime we're running on a non-native platform and refuse to
run.  2[ab] probably being easiest to implement.

> Depending on the application I use VBox or Xen for virtualization
> projects. VBox acts as an HVM most of the time
> so it's great for those times I'm virtualizing a product that I have
> no control over. Xen is best for environments
> that I do have control over.

Yes, I use kvm in a similar way.

    J

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