kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Sylvain Leroux <sylvain@chicoree.fr>
Cc: Christoph Hellwig <hch@infradead.org>, kvm@vger.kernel.org
Subject: Re: KVM is type 1 hypervisor, but...
Date: Sun, 28 May 2017 04:51:00 -0700	[thread overview]
Message-ID: <20170528115100.GA25269@infradead.org> (raw)
In-Reply-To: <fffb3910-a12a-7adc-72cf-152b27282e3b@chicoree.fr>

On Sun, May 28, 2017 at 10:46:45AM +0200, Sylvain Leroux wrote:
> On 05/28/2017 08:34 AM, Christoph Hellwig wrote:
> > I think your mail just very much eplained why this arbitrary type 1
> > vs type 2 classification doesn't make any sense at all.
> > 
> 
> As of myself, I would consider more the "type 1 vs type 2" thing as a
> continuum rather than two distinct solutions. Most if not all modern
> virtualization solutions probably lies somewhere between those two
> extreme cases.

Not just all modern, but simply all, that's why the difference didn't
every make sense.

Each IBM's CP (aka VM) always allowed executing some code, and it's
been growing more and more.

Or VMWare ESXi supports running unmodified Linux binaries - it has
various limitations compared to modern Linux, but if you compare
it to early Linux or even early unix it's a fully featured OS.

At the same time if run Linux/KVM with a a totally cut down kernel
config and a root fs that contains nothing but kvmtool or qemu
it's about as useless for running general purpose programs on
the hypervisor kernel as it gets.

> It is somewhat more easy to answer that question for Xen or
> Hyper-V--since the dom0/Parent partition *is* really handled as a VM by
> those hypervisors. But I don't think there is a similar concept with
> KVM. Or is there?

There isn't.

> An other argument I read is KVM is "type 1" because the hypervisor runs
> in kernel space. Whereas (for example) VirtualBox is type 2 because the
> hypervisor runs in user space.

That's not the case.  Virtualbox has a (horrible) kernel module that
does all the low-level hypervisor work.  Think of it as a badly written
replacement for both kvm and kqemu.

  reply	other threads:[~2017-05-28 11:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-27 17:06 KVM is type 1 hypervisor, but Sylvain Leroux
2017-05-28  6:34 ` Christoph Hellwig
2017-05-28  8:46   ` Sylvain Leroux
2017-05-28 11:51     ` Christoph Hellwig [this message]
2017-05-28 19:06       ` Sylvain Leroux
2017-05-29  6:41         ` Jan Kiszka
2017-05-29  9:05           ` Sylvain Leroux
2017-05-29 20:34             ` Jan Kiszka
2017-06-05 15:00               ` Sylvain Leroux
     [not found]       ` <48902d71-d540-4cd6-b76b-196febf40db6@email.android.com>
2017-05-29  8:13         ` Christoph Hellwig
2017-05-29  9:12           ` Sylvain Leroux
2017-05-30 13:16 ` Paolo Bonzini
     [not found]   ` <CACJDEmor4xvd4t2cEW=MLJrQiwQP9rpON09CLXDouw_Oej3Cng@mail.gmail.com>
2017-05-31 14:21     ` Paolo Bonzini
2017-06-05 14:39   ` Sylvain Leroux
2017-06-05 15:40     ` Paolo Bonzini

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=20170528115100.GA25269@infradead.org \
    --to=hch@infradead.org \
    --cc=kvm@vger.kernel.org \
    --cc=sylvain@chicoree.fr \
    /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;
as well as URLs for NNTP newsgroup(s).