From: Marcelo Tosatti <mtosatti@redhat.com>
To: Gleb Natapov <gleb@redhat.com>
Cc: avi@redhat.com, kvm@vger.kernel.org
Subject: Re: [PATCH] No need to kick cpu if not in a guest mode.
Date: Tue, 7 Jul 2009 11:56:02 -0300 [thread overview]
Message-ID: <20090707145602.GA3797@amt.cnet> (raw)
In-Reply-To: <20090707122732.GG28046@redhat.com>
ACK
On Tue, Jul 07, 2009 at 03:27:32PM +0300, Gleb Natapov wrote:
> This will save a couple of IPIs.
>
> Signed-off-by: Gleb Natapov <gleb@redhat.com>
> diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
> index efb0b68..1e30400 100644
> --- a/arch/x86/kvm/x86.c
> +++ b/arch/x86/kvm/x86.c
> @@ -3498,6 +3498,7 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
> smp_mb__after_clear_bit();
>
> if (vcpu->requests || need_resched() || signal_pending(current)) {
> + set_bit(KVM_REQ_KICK, &vcpu->requests);
> local_irq_enable();
> preempt_enable();
> r = 1;
> --
> Gleb.
next prev parent reply other threads:[~2009-07-07 14:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-07 12:27 [PATCH] No need to kick cpu if not in a guest mode Gleb Natapov
2009-07-07 14:56 ` Marcelo Tosatti [this message]
2009-07-07 15:39 ` Avi Kivity
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=20090707145602.GA3797@amt.cnet \
--to=mtosatti@redhat.com \
--cc=avi@redhat.com \
--cc=gleb@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 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.