All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Glauber Costa <glommer@redhat.com>,
	qemu-devel@nongnu.org, kvm@vger.kernel.org,
	stefano.stabellini@eu.citrix.com
Subject: Re: [PATCH] hook cpu running at a higher level.
Date: Tue, 30 Dec 2008 15:54:53 +0200	[thread overview]
Message-ID: <495A282D.20809@redhat.com> (raw)
In-Reply-To: <18777.63215.125693.799799@mariner.uk.xensource.com>

Ian Jackson wrote:
> The Xen qemu process runs only in one thread which is fine because it
> doesn't need to be involved with actual processor execution.  In
> theory parallel execution (in different threads and thus on different
> physical cpus) of IO emulations requested by different guest vcpus
> might make some small performance difference but I doubt it would be
> worth our while.  So I think the Xen setup will still from qemu's
> point of view look like a single vcpu no matter how many vcpus the
> guest aactually has.
>   

I thing it makes sense for you to have multiple vcpus -- that is 
multiple CPUState objects.  You can still have just one thread (which 
would be the iothread in kvm's terminology).

So:

  tcg - multiplexes all vcpus and io on one thread
  kvm - iothread + per-vcpu thread
  xen - iothread, vcpus scheduled by hypervisor

tcg also ought to move to an iothread model, so it can take advantage of 
multicore for things like display updates.  For x86-on-x86, it may even 
be possible to have vcpus running in parallel (with some kind of 
shared/exclusive lock on softmmu).

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


WARNING: multiple messages have this Message-ID (diff)
From: Avi Kivity <avi@redhat.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Glauber Costa <glommer@redhat.com>,
	qemu-devel@nongnu.org, kvm@vger.kernel.org,
	stefano.stabellini@eu.citrix.com
Subject: [Qemu-devel] Re: [PATCH] hook cpu running at a higher level.
Date: Tue, 30 Dec 2008 15:54:53 +0200	[thread overview]
Message-ID: <495A282D.20809@redhat.com> (raw)
In-Reply-To: <18777.63215.125693.799799@mariner.uk.xensource.com>

Ian Jackson wrote:
> The Xen qemu process runs only in one thread which is fine because it
> doesn't need to be involved with actual processor execution.  In
> theory parallel execution (in different threads and thus on different
> physical cpus) of IO emulations requested by different guest vcpus
> might make some small performance difference but I doubt it would be
> worth our while.  So I think the Xen setup will still from qemu's
> point of view look like a single vcpu no matter how many vcpus the
> guest aactually has.
>   

I thing it makes sense for you to have multiple vcpus -- that is 
multiple CPUState objects.  You can still have just one thread (which 
would be the iothread in kvm's terminology).

So:

  tcg - multiplexes all vcpus and io on one thread
  kvm - iothread + per-vcpu thread
  xen - iothread, vcpus scheduled by hypervisor

tcg also ought to move to an iothread model, so it can take advantage of 
multicore for things like display updates.  For x86-on-x86, it may even 
be possible to have vcpus running in parallel (with some kind of 
shared/exclusive lock on softmmu).

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

  parent reply	other threads:[~2008-12-30 13:55 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-29 18:29 [PATCH] hook cpu running at a higher level Glauber Costa
2008-12-29 18:29 ` [Qemu-devel] " Glauber Costa
2008-12-30 10:24 ` Ian Jackson
2008-12-30 10:24   ` [Qemu-devel] " Ian Jackson
2008-12-30 10:44   ` Avi Kivity
2008-12-30 10:44     ` [Qemu-devel] " Avi Kivity
2008-12-30 13:45     ` Ian Jackson
2008-12-30 13:45       ` [Qemu-devel] " Ian Jackson
2008-12-30 11:35   ` Glauber Costa
2008-12-30 11:35     ` Glauber Costa
2008-12-30 17:25     ` Ian Jackson
2008-12-30 13:54   ` Avi Kivity [this message]
2008-12-30 13:54     ` Avi Kivity
2008-12-30 14:44     ` Ian Jackson
2008-12-30 14:44       ` [Qemu-devel] " Ian Jackson

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=495A282D.20809@redhat.com \
    --to=avi@redhat.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=glommer@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefano.stabellini@eu.citrix.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.