Skip to content

Commit d9ff274

Browse files
Liran Alonbonzini
authored andcommitted
KVM: VMX: Fix comment to specify PID.ON instead of PIR.ON
The Outstanding Notification (ON) bit is part of the Posted Interrupt Descriptor (PID) as opposed to the Posted Interrupts Register (PIR). The latter is a bitmap for pending vectors. Reviewed-by: Joao Martins <[email protected]> Signed-off-by: Liran Alon <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 7a5ee6e commit d9ff274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kvm/vmx/vmx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6137,7 +6137,7 @@ static int vmx_sync_pir_to_irr(struct kvm_vcpu *vcpu)
61376137
if (pi_test_on(&vmx->pi_desc)) {
61386138
pi_clear_on(&vmx->pi_desc);
61396139
/*
6140-
* IOMMU can write to PIR.ON, so the barrier matters even on UP.
6140+
* IOMMU can write to PID.ON, so the barrier matters even on UP.
61416141
* But on x86 this is just a compiler barrier anyway.
61426142
*/
61436143
smp_mb__after_atomic();

0 commit comments

Comments
 (0)