]> git.baikalelectronics.ru Git - kernel.git/commitdiff
KVM: X86: fix incorrect reference of trace_kvm_pi_irte_update
authorhu huajun <huhuajun@linux.alibaba.com>
Wed, 11 Apr 2018 07:16:40 +0000 (15:16 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 11 Apr 2018 11:34:48 +0000 (13:34 +0200)
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>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c

index e0a3f56a791d579da61fe325f0515d02b8c2348a..b3ebc8ad6891996771aafdf1c5095a0556e52116 100644 (file)
@@ -5266,9 +5266,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);
                }
 
index e7024ad586f7148d362fdeaec2ed05d0b02fcd50..fe3e13edf2018ae8f99b7487dddc2f90628cf8ba 100644 (file)
@@ -12533,7 +12533,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)