KVM: x86: Do not change ICR on write to APIC_SELF_IPI
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 24 Feb 2022 14:53:36 +0000 (09:53 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 1 Mar 2022 13:50:45 +0000 (08:50 -0500)
commitd22a81b304a27fca6124174a8e842e826c193466
treec9ce4508e91d461adfba4777470488249ef118ae
parentf66af9f222f08d5b11ea41c1bd6c07a0f12daa07
KVM: x86: Do not change ICR on write to APIC_SELF_IPI

Emulating writes to SELF_IPI with a write to ICR has an unwanted side effect:
the value of ICR in vAPIC page gets changed.  The lists SELF_IPI as write-only,
with no associated MMIO offset, so any write should have no visible side
effect in the vAPIC page.

Reported-by: Chao Gao <chao.gao@intel.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c