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-devel] Xen on top of xen

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Xen on top of xen
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Thu, 10 May 2007 10:44:43 +0100
Cc: "Petersson, Mats" <Mats.Petersson@xxxxxxx>, Koripella Srinivas <talkwithsrinivas@xxxxxxxxxxx>
Delivery-date: Thu, 10 May 2007 02:43:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <907625E08839C4409CE5768403633E0B018E1CD9@xxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <907625E08839C4409CE5768403633E0B018E1CD9@xxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6
> > Can u throw more light on  the non-nestability ??
>
> Well, to put it simply, once you set up the SVM/VMX feature, it doesn't
> allow another such setup on top of it. It would be technically possible
> to support this in a processor designed to do so, but at the moment,
> neither of AMD's or Intel's CPU's support this.

It could be trapped and emulated in Xen though, right?  The AMD manual was 
pretty clear on all the SVM instructions being trappable.  The VT-x manual I 
had access to when I looked into this was a bit vague in this area.

e.g. a scheme whereby the "outermost" Xen trapped SVM instructions issued by 
the current nested guest and built up a shadow copy of HVM-related data 
structures, then ran the "inner" HVM guest using these?  Future additions to 
SVM implementations (such as nested paging) would reduce the frequency with 
which you have to bounce back into the guests.

> It is clearly easier to 
> design a processor that only supports one level of "nesting" of
> virtualization[1], and it is also debatable what the REAL benefit of
> running nested virtual machines would be - I'm sure if it was a huge
> benefit compared to the effort of implementing it[2], at least one of
> the two producers of virtualizable x86 processors would have added such
> fearures...

Being able to run HVM Xen in HVM Xen could be useful for testing.  Also, from 
a management perspective it would make it possible to subdivide the machine 
between multiple users who each wanted to run a few virtual machines - just 
give them each a Xen in an HVM domain.  Further levels of nesting would be 
overkill, and probably give horrible performance.

Cheers,
Mark

> [1] Keeping one set of data for where to return to when the VMExit
> happens, for example, is easier than having a "stack" of such.
>
> [2] On top of the extra effort to design and test such feature, there is
> also a potential performance penalty for nesting VM's, since there is
> more logic involved. Depending on where that extra logic ends up, it may
> be necessary to add a further clock-cycle to some operation.
>
> --
> Mats
>
> > ----- Original Message ----
> > From: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
> > To: pradeep singh rautela <rautelap@xxxxxxxxx>; Koripella
> > Srinivas <talkwithsrinivas@xxxxxxxxxxx>
> > Cc: xen-devel@xxxxxxxxxxxxxxxxxxx;
> > xen-devel-request@xxxxxxxxxxxxxxxxxxx
> > Sent: Wednesday, 9 May, 2007 4:33:57 PM
> > Subject: RE: [Xen-devel] Xen on top of xen
> >
> > > -----Original Message-----
> > > From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
> > > [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of
> > > pradeep singh rautela
> > > Sent: 09 May 2007 10:11
> > > To: Koripella Srinivas
> > > Cc: xen-devel@xxxxxxxxxxxxxxxxxxx;
> > > xen-devel-request@xxxxxxxxxxxxxxxxxxx
> > > Subject: Re: [Xen-devel] Xen on top of xen
> > >
> > >
> > >
> > > On 5/9/07, pradeep singh rautela <rautelap@xxxxxxxxx> wrote:
> > >
> > >
> > >
> > >     On 5/9/07, Koripella Srinivas <
> > > talkwithsrinivas@xxxxxxxxxxx
> > > <mailto:talkwithsrinivas@xxxxxxxxxxx> > wrote:
> > >
> > >         Hi,
> > >         Is it possible to run xen in a hvm guest which
> > > itself is running on xen?
> > >
> > >
> > >     Yes, you can.
> > >
> > >
> > > Just to add only on hvm guests and not  on pv guests.
> >
> > And you can't run HVM guests inside the "xen on top of xen",
> > as the HVM
> > feature is not (in current CPU's) nestable.
> >
> > --
> > Mats
> >
> > >     Thanks
> > >     ~psr
> > >
> > >
> > >
> > >
> > >         Thanks
> > >
> > >
> > > ________________________________
> > >
> > >         Office firewalls, cyber cafes, college labs,
> > > don't allow you to download CHAT? Here's a solution!
> > > <http://us.rd.yahoo.com/mail/in/ymessenger/*http://in.messenge
> > > r.yahoo.com/webmessengerpromo.php>
> > >
> > >         _______________________________________________
> > >         Xen-devel mailing list
> > >         Xen-devel@xxxxxxxxxxxxxxxxxxx
> > > <mailto:Xen-devel@xxxxxxxxxxxxxxxxxxx>
> > >         http://lists.xensource.com/xen-devel
> > >
> > >
> > >
> > >
> > >
> > >
> > >     --
> > >     ---
> > >     pradeep singh rautela
> > >
> > >     "Genius is 1% inspiration, and 99% perspiration" - not me :)
> > >
> > >
> > >
> > >
> > > --
> > > ---
> > > pradeep singh rautela
> > >
> > > "Genius is 1% inspiration, and 99% perspiration" - not me :)
> >
> > ________________________________
> >
> > Office firewalls, cyber cafes, college labs, don't allow you
> > to download CHAT? Here's a solution!
> > <http://us.rd.yahoo.com/mail/in/ymessenger/*http://in.messenge
> > r.yahoo.com/webmessengerpromo.php>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

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

<Prev in Thread] Current Thread [Next in Thread>