]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 1 Oct 2018 12:54:52 +0000 (14:54 +0200)
BugLink: http://bugs.launchpad.net/bugs/1794889
[ Upstream commit 2698d82e519413c6ad287e6f14b29e0373ed37f8 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c

index 715a1a7f2342855c8927aa7119a1c54851241539..37007852a8fcafad362dcb5ee900656006e25b51 100644 (file)
@@ -4777,9 +4777,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 32d40b438bd4f306f6e86dfa5dc7d4a8edc5f6ce..83e564b3e5bc498e3c38d58272dc96e2b9736414 100644 (file)
@@ -12468,7 +12468,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)