Xen on top of xen
Quoted 7 lines
-----Original Message-----
From: Koripella Srinivas [mailto:[email protected]]
Sent: 09 May 2007 19:53
To: Petersson, Mats
Subject: Re: [Xen-devel] Xen on top of xenCan 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 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...
[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
Quoted 107 lines
----- Original Message ----
From: "Petersson, Mats" <[email protected]>
To: pradeep singh rautela <[email protected]>; Koripella Srinivas <[email protected]>
Cc: [email protected]; [email protected]
Sent: Wednesday, 9 May, 2007 4:33:57 PM
Subject: RE: [Xen-devel] Xen on top of xenQuoted 25 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of pradeep singh rautela
Sent: 09 May 2007 10:11
To: Koripella Srinivas
Cc: [email protected]; [email protected]
Subject: Re: [Xen-devel] Xen on top of xenOn 5/9/07, pradeep singh rautela <[email protected]> wrote:
On 5/9/07, Koripella Srinivas <[email protected]
<mailto:[email protected]> > wrote:Hi,
Is it possible to run xen in a hvm guest which
itself is running on xen?Quoted 4 lines
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.--
MatsQuoted 30 lines
Thanks
~psrThanks
________________________________
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
[email protected]
<mailto:[email protected]>
http://lists.xensource.com/xen-develQuoted 15 lines
--
---
pradeep singh rautela"Genius is 1% inspiration, and 99% perspiration" - not me :)
Signature · 4 lines
--- 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>
Quoted 6 lines
Quoted 1 line
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.
Quoted 7 lines
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
Quoted 110 lines
[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.
--
MatsQuoted 86 lines
----- Original Message ----
From: "Petersson, Mats" <[email protected]>
To: pradeep singh rautela <[email protected]>; Koripella Srinivas <[email protected]>
Cc: [email protected]; [email protected]
Sent: Wednesday, 9 May, 2007 4:33:57 PM
Subject: RE: [Xen-devel] Xen on top of xenQuoted 25 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of pradeep singh rautela
Sent: 09 May 2007 10:11
To: Koripella Srinivas
Cc: [email protected]; [email protected]
Subject: Re: [Xen-devel] Xen on top of xenOn 5/9/07, pradeep singh rautela <[email protected]> wrote:
On 5/9/07, Koripella Srinivas <[email protected]
<mailto:[email protected]> > wrote:Hi,
Is it possible to run xen in a hvm guest which
itself is running on xen?Quoted 4 lines
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.--
MatsQuoted 40 lines
Thanks
~psrThanks
________________________________
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
[email protected]
<mailto:[email protected]>
http://lists.xensource.com/xen-devel--
---
pradeep singh rautela"Genius is 1% inspiration, and 99% perspiration" - not me :)
--
---
pradeep singh rautelaQuoted 8 lines
Quoted 1 line
"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
[email protected]
http://lists.xensource.com/xen-devel
Signature · 4 lines
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!
Quoted 16 lines
-----Original Message-----
From: M.A. Williamson [mailto:[email protected]] On Behalf Of Mark Williamson
Sent: 10 May 2007 10:45
To: [email protected]
Cc: Petersson, Mats; Koripella Srinivas
Subject: Re: [Xen-devel] Xen on top of xenQuoted 3 lines
Quoted 1 line
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
Quoted 1 line
allow another such setup on top of it. It would be
technically possible
Quoted 8 lines
Quoted 2 lines
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.
Yes, at least for SVM you could trap and emulate.
Quoted 10 lines
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.
I'm not sure if it's worth the effort tho'. It would be relatively slow (because you'd first get the penalty of the VMExit/VMRun pair, and then the additional code to emulate the VMExit/VMRun set.
Quoted 11 lines
Quoted 6 lines
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], atleast one of
Quoted 1 line
the two producers of virtualizable x86 processors would
have added such
Quoted 1 line
fearures...
Quoted 9 lines
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.
Of those, the management one is the more applicable to our engineering efforts (i.e. the one that will "sell more processors"), but I'm pretty sure that the effort is much greater than the gain.
Do you (or anyone else) know if the PPC version supports nested virtualization?
--
Mats
Quoted 129 lines
Cheers,
MarkQuoted 4 lines
[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
Quoted 1 line
also a potential performance penalty for nesting VM's,
since there is
Quoted 1 line
more logic involved. Depending on where that extra logic
ends up, it may
Quoted 104 lines
be necessary to add a further clock-cycle to some operation.
--
MatsQuoted 86 lines
----- Original Message ----
From: "Petersson, Mats" <[email protected]>
To: pradeep singh rautela <[email protected]>; Koripella Srinivas <[email protected]>
Cc: [email protected]; [email protected]
Sent: Wednesday, 9 May, 2007 4:33:57 PM
Subject: RE: [Xen-devel] Xen on top of xenQuoted 25 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of pradeep singh rautela
Sent: 09 May 2007 10:11
To: Koripella Srinivas
Cc: [email protected]; [email protected]
Subject: Re: [Xen-devel] Xen on top of xenOn 5/9/07, pradeep singh rautela <[email protected]> wrote:
On 5/9/07, Koripella Srinivas <[email protected]
<mailto:[email protected]> > wrote:Hi,
Is it possible to run xen in a hvm guest which
itself is running on xen?Quoted 4 lines
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.--
MatsQuoted 40 lines
Thanks
~psrThanks
________________________________
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
[email protected]
<mailto:[email protected]>
http://lists.xensource.com/xen-devel--
---
pradeep singh rautela"Genius is 1% inspiration, and 99% perspiration" - not me :)
--
---
pradeep singh rautelaQuoted 8 lines
Quoted 1 line
"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
[email protected]
http://lists.xensource.com/xen-develSignature · 5 lines
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!
Quoted 10 lines
Quoted 9 lines
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.
Quoted 3 lines
I'm not sure if it's worth the effort tho'. It would be relatively slow (because you'd first get the penalty of the VMExit/VMRun pair, and then the additional code to emulate the VMExit/VMRun set.
Mmmm. The thing that looks to me like it would really make performance nasty is jumping in and out of all the levels of nesting in order to do IO emulation...
What if IO emulation were being handled by a device model hidden in the guest's firmware (has been suggested before for different reasons)? You'd be running the innermost guest context on the host CPU directly, as previously suggested, then on an IO exit you could just reflect the IO instruction into the device model in that guest. You potentially wouldn't need to re-enter the nested Xen that "owned" the guest until the innermost guest's timeslice ran out naturally.
I may well be missing something here, as this ain't my forte ;-)
Quoted 10 lines
Quoted 9 lines
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.
Quoted 3 lines
Of those, the management one is the more applicable to our engineering efforts (i.e. the one that will "sell more processors"), but I'm pretty sure that the effort is much greater than the gain.
Yep. Also, the nested management problem could equally be tackled by modifying Xen to support some more advanced concept of rights to map memory, etc - or even changes at the tools level to make management "look" more nested.
Being able to nest Xen is just a /conceptually/ simple way to do this which (if it worked) gets us a load of stuff for free (CPU accounting for a domain group, atomic suspend/resume for a group, atomic migration for a group, etc.)
Quoted 2 lines
Do you (or anyone else) know if the PPC version supports nested virtualization?
I know z/VM supports it (no surprise - z/VM supports all sort of crazy but cool things), and it seems like the kind of thing IBM might do - precisely for management reasons ;-) I would guess that the PPC version of Xen doesn't support it (yet) but maybe the POWER hypervisor does? I've cc-ed Hollis who'll be able to set the record straight :-)
Cheers,
Mark
Signature · 4 lines
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!
Quoted 8 lines · Mark Williamson
Quoted 2 lines
Do you (or anyone else) know if the PPC version supports nested virtualization?
I know z/VM supports it (no surprise - z/VM supports all sort of crazy but cool things), and it seems like the kind of thing IBM might do - precisely for management reasons ;-) I would guess that the PPC version of Xen doesn't support it (yet) but maybe the POWER hypervisor does? I've cc-ed Hollis who'll be able to set the record straight :-)
The hardware extensions defined in the Power Architecture do not support nested virtualization.
Signature · 2 lines
Hollis Blanchard IBM Linux Technology Center