public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <aliguori-NZpS4cJIG2HvQtjrzfazuQ@public.gmane.org>
To: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: KVM & Xen coexist?
Date: Thu, 09 Nov 2006 20:27:06 -0600	[thread overview]
Message-ID: <4553E37A.1010302@cs.utexas.edu> (raw)
In-Reply-To: <4551A416.1050701-atKUWr5tajBWk0Htik3J/w@public.gmane.org>

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

      parent reply	other threads:[~2006-11-10  2:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4553E37A.1010302@cs.utexas.edu \
    --to=aliguori-nzps4cjig2hvqtjrzfazuq@public.gmane.org \
    --cc=avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox