public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* KVM & Xen coexist?
@ 2006-11-08  9:24 Jun Koi
       [not found] ` <fdaac4d50611080124q344c9cdei22e02a361c11f7f8-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Jun Koi @ 2006-11-08  9:24 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

hi,

i guess this question should be in your FAQ: does KVM work with Xen?
in the other word, is it possible to run KVM on Xen machine? (i.e
loading KVM on Dom0 or DomU. obviously it does not work on DomU, but i
am not sure about Dom0 case).

cheers,
J

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: KVM & Xen coexist?
       [not found] ` <fdaac4d50611080124q344c9cdei22e02a361c11f7f8-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2006-11-08  9:32   ` Avi Kivity
       [not found]     ` <4551A416.1050701-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Avi Kivity @ 2006-11-08  9:32 UTC (permalink / raw)
  To: Jun Koi; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Jun Koi wrote:
> hi,
>
> i guess this question should be in your FAQ: does KVM work with Xen?
> in the other word, is it possible to run KVM on Xen machine? (i.e
> loading KVM on Dom0 or DomU. obviously it does not work on DomU, but i
> am not sure about Dom0 case).
>   

Theoretically, you can run Xen for paravirtualization and kvm for full 
virtualization.  Realistically, that's not trivial to accomplish:

- Xen adds an additional addressing abstraction (machine addresses) that 
kvm has to be taught about
- kvm uses privileged instructions which cannot be executed by a Xen 
guest (and would thus need assists)
- VT returns to ring 0, and would need an assist to return to ring 1 
where Linux (and kvm) lives
- kvm wants to be pinned to a cpu while it's modifying VT state

Another option is to use a small subset of kvm to run paravirtualized 
Xen guests on top of kvm (without Xen itself).

-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: KVM & Xen coexist?
       [not found]     ` <4551A416.1050701-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
@ 2006-11-08 13:43       ` Arnd Bergmann
       [not found]         ` <200611081443.22464.arnd-r2nGTMty4D4@public.gmane.org>
  2006-11-10  2:27       ` Anthony Liguori
  1 sibling, 1 reply; 6+ messages in thread
From: Arnd Bergmann @ 2006-11-08 13:43 UTC (permalink / raw)
  To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On Wednesday 08 November 2006 10:32, Avi Kivity wrote:
> Another option is to use a small subset of kvm to run paravirtualized 
> Xen guests on top of kvm (without Xen itself).

How about running Xen inside of kvm? Since kvm can do full
virtualization, it should work for all versions of Xen that
don't use the HV instruction set extension themselves, right?

	Arnd <><

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: KVM & Xen coexist?
       [not found]         ` <200611081443.22464.arnd-r2nGTMty4D4@public.gmane.org>
@ 2006-11-08 13:46           ` Muli Ben-Yehuda
       [not found]             ` <20061108134629.GA4988-k73YwwB0fHlWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Muli Ben-Yehuda @ 2006-11-08 13:46 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On Wed, Nov 08, 2006 at 02:43:21PM +0100, Arnd Bergmann wrote:
> On Wednesday 08 November 2006 10:32, Avi Kivity wrote:
> > Another option is to use a small subset of kvm to run paravirtualized 
> > Xen guests on top of kvm (without Xen itself).
> 
> How about running Xen inside of kvm? Since kvm can do full
> virtualization, it should work for all versions of Xen that
> don't use the HV instruction set extension themselves, right?

Yes. I'm not quite sure why you would want to do this though, except
maybe because it's possible and thus someone, somewhere wants to see
it done.

Cheers,
Muli

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: KVM & Xen coexist?
       [not found]             ` <20061108134629.GA4988-k73YwwB0fHlWk0Htik3J/w@public.gmane.org>
@ 2006-11-08 13:50               ` Arnd Bergmann
  0 siblings, 0 replies; 6+ messages in thread
From: Arnd Bergmann @ 2006-11-08 13:50 UTC (permalink / raw)
  To: Muli Ben-Yehuda; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On Wednesday 08 November 2006 14:46, Muli Ben-Yehuda wrote:
> Yes. I'm not quite sure why you would want to do this though, except
> maybe because it's possible and thus someone, somewhere wants to see
> it done.

I don't know what tools exist for debugging xen itself, but I could
imagine that it's rather helpful if you can just attach gdb from
Linux to your running KVM guest to single-step through the xen
code. Other than that, there's probably not much point.

	Arnd <><

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: KVM & Xen coexist?
       [not found]     ` <4551A416.1050701-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
  2006-11-08 13:43       ` Arnd Bergmann
@ 2006-11-10  2:27       ` Anthony Liguori
  1 sibling, 0 replies; 6+ messages in thread
From: Anthony Liguori @ 2006-11-10  2:27 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Avi Kivity wrote:
> Jun Koi wrote:
>> hi,
>>
>> i guess this question should be in your FAQ: does KVM work with Xen?
>> in the other word, is it possible to run KVM on Xen machine? (i.e
>> loading KVM on Dom0 or DomU. obviously it does not work on DomU, but i
>> am not sure about Dom0 case).
>>   
> 
> Theoretically, you can run Xen for paravirtualization and kvm for full 
> virtualization.  Realistically, that's not trivial to accomplish:

It would be much more reasonable to do paravirtualization under Linux 
with something like lhype.  There was an announcement (although I never 
saw code) of a kernel module that could run Xen guests.

For all practical purposes, Xen's HVM support is already KVM under Xen. 
  Of course the Xen "version" of KVM has many more QEMU patches and has 
a lot of other fun stuff (like Xend/Xenstore--ugh).

> - Xen adds an additional addressing abstraction (machine addresses) that 
> kvm has to be taught about
> - kvm uses privileged instructions which cannot be executed by a Xen 
> guest (and would thus need assists)
> - VT returns to ring 0, and would need an assist to return to ring 1 
> where Linux (and kvm) lives
> - kvm wants to be pinned to a cpu while it's modifying VT state
> 
> Another option is to use a small subset of kvm to run paravirtualized 
> Xen guests on top of kvm (without Xen itself).

It would probably be more useful to run VMI guests (or to implement a 
set of paravirt_ops just for KVM).  The Xen guest ABI is awfully 
complicated.  The drivers would require a ton of userspace infrastructure.

Regards,

Anthony Liguori

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-11-10  2:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-08  9:24 KVM & Xen coexist? Jun Koi
     [not found] ` <fdaac4d50611080124q344c9cdei22e02a361c11f7f8-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2006-11-08  9:32   ` Avi Kivity
     [not found]     ` <4551A416.1050701-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2006-11-08 13:43       ` Arnd Bergmann
     [not found]         ` <200611081443.22464.arnd-r2nGTMty4D4@public.gmane.org>
2006-11-08 13:46           ` Muli Ben-Yehuda
     [not found]             ` <20061108134629.GA4988-k73YwwB0fHlWk0Htik3J/w@public.gmane.org>
2006-11-08 13:50               ` Arnd Bergmann
2006-11-10  2:27       ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox