kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: Chris Metcalf <cmetcalf@tilera.com>
Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org,
	Paolo Bonzini <pbonzini@redhat.com>,
	Jan Kiszka <jan.kiszka@siemens.com>
Subject: Re: [PATCH v2] tile: support KVM for tilegx
Date: Mon, 26 Aug 2013 15:04:45 +0300	[thread overview]
Message-ID: <20130826120445.GD8218@redhat.com> (raw)
In-Reply-To: <521AAED7.4080407@tilera.com>

On Sun, Aug 25, 2013 at 09:26:47PM -0400, Chris Metcalf wrote:
> On 8/25/2013 7:39 AM, Gleb Natapov wrote:
> > On Mon, Aug 12, 2013 at 04:24:11PM -0400, Chris Metcalf wrote:
> >> This change provides the initial framework support for KVM on tilegx.
> >> Basic virtual disk and networking is supported.
> >>
> > This needs to be broken down to more reviewable patches.
> 
> I already broke out one pre-requisite patch that wasn't strictly KVM-related:
> 
> https://lkml.org/lkml/2013/8/12/339
> 
> In addition, we've separately arranged to support booting our kernels in a way that is compatible with the Tilera booter running at the highest privilege level, which enables multiple kernel privilege levels:
> 
> https://lkml.org/lkml/2013/5/2/468
> 
> How would you recommend further breaking down this patch?  It's pretty much just the basic support for minimal KVM.  I suppose I could break out all the I/O related stuff into a separate patch, though it wouldn't amount to much; perhaps the console could also be broken out separately.  Any other suggestions?
>
First of all please break out host and guest bits. Also I/O related stuff,
like you suggest (so that guest PV bits will be in separate patch) and
change to a common code (not much as far as I see) with explanation why
it is needed. (Why kvm_vcpu_kick() is not needed for instance?)
 
> > Also can you
> > describe the implementation a little bit? Does tile arch has vitalization
> > extension this implementation uses, or is it trap and emulate approach?
> > If later does it run unmodified guest kernels? What userspace are you
> > using with this implementation?
> 
> We could do full virtualization via trap and emulate, but we've elected to do a para-virtualized approach.  Userspace runs at PL (privilege level) 0, the guest kernel runs at PL1, and the host runs at PL2.  We have available per-PL resources for various things, and take advantage of having two on-chip timers (for example) to handle timing for the host and guest kernels.  We run the same userspace with either the host or the guest.
> 
OK, thanks for explanation. Why have you decided to do PV over trap and
emulate?

--
			Gleb.

  reply	other threads:[~2013-08-26 12:04 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-12 15:24 [PATCH] tile: support KVM for tilegx Chris Metcalf
2013-08-12 17:08 ` Jan Kiszka
2013-08-12 20:24   ` [PATCH v2] " Chris Metcalf
2013-08-25 11:39     ` Gleb Natapov
2013-08-26  1:26       ` Chris Metcalf
2013-08-26 12:04         ` Gleb Natapov [this message]
2013-08-28 19:45           ` [PATCH v3 1/3] tile: support KVM host mode Chris Metcalf
2013-09-10 10:53             ` Gleb Natapov
2013-09-10 11:59               ` Paolo Bonzini
2013-09-30 20:11               ` Chris Metcalf
2013-10-01 15:21                 ` Gleb Natapov
2013-08-28 20:57           ` [PATCH v3 2/3] tile: enable building as a paravirtualized KVM_GUEST Chris Metcalf
2013-08-28 20:58           ` [PATCH v3 3/3] tile: enable VIRTIO support for KVM Chris Metcalf
2013-09-10 12:47             ` Paolo Bonzini
2013-09-30 20:11               ` Chris Metcalf
2013-10-01  6:39                 ` Paolo Bonzini
2013-08-29  0:26           ` [PATCH v2] tile: support KVM for tilegx Chris Metcalf
2013-09-03 17:32           ` Chris Metcalf
2013-09-03 17:39             ` Gleb Natapov
2013-09-03 17:46               ` Chris Metcalf
2013-09-03 18:13               ` [PATCH 1/3] tile: clean up relocate_kernel_64 debug code Chris Metcalf
2013-09-03 18:41               ` [PATCH 3/3] tile: parameterize VA and PA space more cleanly Chris Metcalf
2013-09-03 18:45               ` [PATCH 2/3] tile: don't assume user privilege is zero Chris Metcalf
2013-09-03 19:09               ` [PATCH 0/3] tile prerequisites for KVM support Chris Metcalf

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=20130826120445.GD8218@redhat.com \
    --to=gleb@redhat.com \
    --cc=cmetcalf@tilera.com \
    --cc=jan.kiszka@siemens.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    /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).