KVM: x86: VMX: __kvm_apic_update_irr must update the IRR atomically
authorMaxim Levitsky <mlevitsk@redhat.com>
Wed, 26 Jul 2023 13:59:43 +0000 (16:59 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 29 Jul 2023 15:05:24 +0000 (11:05 -0400)
commit514946d1436341bae57f647ee633cef5edb19ee2
treed7e96c23f99d909a44427c9600dfa0e267b02027
parent6eaae198076080886b9e7d57f4ae06fa782f90ef
KVM: x86: VMX: __kvm_apic_update_irr must update the IRR atomically

If APICv is inhibited, then IPIs from peer vCPUs are done by
atomically setting bits in IRR.

This means, that when __kvm_apic_update_irr copies PIR to IRR,
it has to modify IRR atomically as well.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20230726135945.260841-2-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c