]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Don't update vcpu->arch.pv_eoi.msr_val when a bogus value was written to...
authorVitaly Kuznetsov <vkuznets@redhat.com>
Mon, 8 Nov 2021 15:28:19 +0000 (16:28 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Nov 2021 15:56:22 +0000 (10:56 -0500)
commit8f8292a0ebaf2d45c97c30a99b116a92a146394b
tree5006cc7979a0dc9dd63d9c9a52381abcc04a8f46
parentba20e239598248cff836380c5eade63ae77af567
KVM: x86: Don't update vcpu->arch.pv_eoi.msr_val when a bogus value was written to MSR_KVM_PV_EOI_EN

When kvm_gfn_to_hva_cache_init() call from kvm_lapic_set_pv_eoi() fails,
MSR write to MSR_KVM_PV_EOI_EN results in #GP so it is reasonable to
expect that the value we keep internally in KVM wasn't updated.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20211108152819.12485-3-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c