mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: hu huajun <huhuajun@linux.alibaba.com>,
	joro@8bytes.org, rkrcmar@redhat.com, tglx@linutronix.de,
	mingo@redhat.com, hpa@zytor.com
Cc: x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] KVM: X86: fix incorrect reference of trace_kvm_pi_irte_update
Date: Wed, 11 Apr 2018 13:34:55 +0200	[thread overview]
Message-ID: <63adcbc6-95a4-48f4-e90d-34d3722b40ea@redhat.com> (raw)
In-Reply-To: <1523431000-44137-1-git-send-email-huhuajun@linux.alibaba.com>

On 11/04/2018 09:16, hu huajun wrote:
> In arch/x86/kvm/trace.h, this function is declared as host_irq the
> first input, and vcpu_id the second, instead of otherwise.
> 
> Signed-off-by: hu huajun <huhuajun@linux.alibaba.com>
> ---
>  arch/x86/kvm/svm.c | 5 ++---
>  arch/x86/kvm/vmx.c | 2 +-
>  2 files changed, 3 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
> index be9c839..f4e9fb4 100644
> --- a/arch/x86/kvm/svm.c
> +++ b/arch/x86/kvm/svm.c
> @@ -5118,9 +5118,8 @@ static int svm_update_pi_irte(struct kvm *kvm, unsigned int host_irq,
>  		}
>  
>  		if (!ret && svm) {
> -			trace_kvm_pi_irte_update(svm->vcpu.vcpu_id,
> -						 host_irq, e->gsi,
> -						 vcpu_info.vector,
> +			trace_kvm_pi_irte_update(host_irq, svm->vcpu.vcpu_id,
> +						 e->gsi, vcpu_info.vector,
>  						 vcpu_info.pi_desc_addr, set);
>  		}
>  
> diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
> index f0fd50b..86fd775 100644
> --- a/arch/x86/kvm/vmx.c
> +++ b/arch/x86/kvm/vmx.c
> @@ -12204,7 +12204,7 @@ static int vmx_update_pi_irte(struct kvm *kvm, unsigned int host_irq,
>  		vcpu_info.pi_desc_addr = __pa(vcpu_to_pi_desc(vcpu));
>  		vcpu_info.vector = irq.vector;
>  
> -		trace_kvm_pi_irte_update(vcpu->vcpu_id, host_irq, e->gsi,
> +		trace_kvm_pi_irte_update(host_irq, vcpu->vcpu_id, e->gsi,
>  				vcpu_info.vector, vcpu_info.pi_desc_addr, set);
>  
>  		if (set)
> 

Applied, thanks!

Paolo

      reply	other threads:[~2018-04-11 11:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-11  7:16 hu huajun
2018-04-11 11:34 ` Paolo Bonzini [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=63adcbc6-95a4-48f4-e90d-34d3722b40ea@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=hpa@zytor.com \
    --cc=huhuajun@linux.alibaba.com \
    --cc=joro@8bytes.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=rkrcmar@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=x86@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

all inboxes | Powered by JetHome®