From: Gleb Natapov <gleb@redhat.com>
To: avi@redhat.com, mtosatti@redhat.com
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH] correctly trace irq injection on SVM.
Date: Thu, 20 May 2010 13:20:54 +0300 [thread overview]
Message-ID: <20100520102054.GG15750@redhat.com> (raw)
In-Reply-To: <20100520101945.GF15750@redhat.com>
On Thu, May 20, 2010 at 01:19:45PM +0300, Gleb Natapov wrote:
> On SVM interrupts are injected by svm_set_irq() not svm_inject_irq().
> The later is used only to wait for irq window.
>
And of course ignore this. Haven't noticed compilation error.
> Signed-off-by: Gleb Natapov <gleb@redhat.com>
> diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
> index 58c91f5..cd70109 100644
> --- a/arch/x86/kvm/svm.c
> +++ b/arch/x86/kvm/svm.c
> @@ -2831,8 +2831,6 @@ static inline void svm_inject_irq(struct vcpu_svm *svm, int irq)
> {
> struct vmcb_control_area *control;
>
> - trace_kvm_inj_virq(irq);
> -
> ++svm->vcpu.stat.irq_injections;
> control = &svm->vmcb->control;
> control->int_vector = irq;
> @@ -2847,6 +2845,8 @@ static void svm_set_irq(struct kvm_vcpu *vcpu)
>
> BUG_ON(!(gif_set(svm)));
>
> + trace_kvm_inj_virq(irq);
> +
> svm->vmcb->control.event_inj = vcpu->arch.interrupt.nr |
> SVM_EVTINJ_VALID | SVM_EVTINJ_TYPE_INTR;
> }
> --
> Gleb.
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Gleb.
prev parent reply other threads:[~2010-05-20 10:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-20 10:19 [PATCH] correctly trace irq injection on SVM Gleb Natapov
2010-05-20 10:20 ` Gleb Natapov [this message]
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=20100520102054.GG15750@redhat.com \
--to=gleb@redhat.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@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 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.