From: Marcelo Tosatti <mtosatti@redhat.com>
To: Avi Kivity <avi@redhat.com>
Cc: kvm@vger.kernel.org, Anthony Liguori <anthony@codemonkey.ws>
Subject: Re: [patch 1/2] qemu-kvm: use usptream eventfd code
Date: Tue, 7 Sep 2010 14:25:03 -0300 [thread overview]
Message-ID: <20100907172503.GA10311@amt.cnet> (raw)
In-Reply-To: <4C85F60C.3060700@redhat.com>
On Tue, Sep 07, 2010 at 11:21:32AM +0300, Avi Kivity wrote:
> On 09/06/2010 11:20 PM, Marcelo Tosatti wrote:
> >Upstream code is equivalent.
> >
> >Signed-off-by: Marcelo Tosatti<mtosatti@redhat.com>
> >
> >Index: qemu-kvm/cpus.c
> >===================================================================
> >--- qemu-kvm.orig/cpus.c
> >+++ qemu-kvm/cpus.c
> >@@ -290,11 +290,6 @@ void qemu_notify_event(void)
> > {
> > CPUState *env = cpu_single_env;
> >
> >- if (kvm_enabled()) {
> >- qemu_kvm_notify_work();
> >- return;
> >- }
> >-
> > qemu_event_increment ();
> > if (env) {
> > cpu_exit(env);
>
> qemu_event_increment() is indeed equivalent, but what about the
> rest? Are we guaranteed that cpu_single_env == NULL?
No, its not NULL. But env->current is, so its fine.
next prev parent reply other threads:[~2010-09-07 17:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-06 20:20 [patch 0/2] qemu-kvm cleanups Marcelo Tosatti
2010-09-06 20:20 ` [patch 1/2] qemu-kvm: use usptream eventfd code Marcelo Tosatti
2010-09-07 8:21 ` Avi Kivity
2010-09-07 17:25 ` Marcelo Tosatti [this message]
2010-09-08 8:25 ` Avi Kivity
2010-09-06 20:20 ` [patch 2/2] qemu-kvm: drop posix-aio-compat.cs signalfd usage Marcelo Tosatti
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=20100907172503.GA10311@amt.cnet \
--to=mtosatti@redhat.com \
--cc=anthony@codemonkey.ws \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.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