KVM: X86: fix incorrect reference of trace_kvm_pi_irte_update
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>hifive-unleashed-5.1
parent
8e9b29b618
commit
2698d82e51
|
@ -5266,9 +5266,8 @@ static int svm_update_pi_irte(struct kvm *kvm, unsigned int host_irq,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ret && svm) {
|
if (!ret && svm) {
|
||||||
trace_kvm_pi_irte_update(svm->vcpu.vcpu_id,
|
trace_kvm_pi_irte_update(host_irq, svm->vcpu.vcpu_id,
|
||||||
host_irq, e->gsi,
|
e->gsi, vcpu_info.vector,
|
||||||
vcpu_info.vector,
|
|
||||||
vcpu_info.pi_desc_addr, set);
|
vcpu_info.pi_desc_addr, set);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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.pi_desc_addr = __pa(vcpu_to_pi_desc(vcpu));
|
||||||
vcpu_info.vector = irq.vector;
|
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);
|
vcpu_info.vector, vcpu_info.pi_desc_addr, set);
|
||||||
|
|
||||||
if (set)
|
if (set)
|
||||||
|
|
Loading…
Reference in New Issue