]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: always allow writing '0' to MSR_KVM_ASYNC_PF_EN
authorVitaly Kuznetsov <vkuznets@redhat.com>
Fri, 11 Sep 2020 09:31:47 +0000 (11:31 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Sep 2020 17:26:47 +0000 (13:26 -0400)
commit67a88d880a5d738f0694aaa9fe492e4f536f7c6b
treec9f90eb09f762b9cdaff3767e4a1755d66b63837
parent2ca1d0b9c47625f2ae8ff75e096b59ffd610b8e5
KVM: x86: always allow writing '0' to MSR_KVM_ASYNC_PF_EN

Even without in-kernel LAPIC we should allow writing '0' to
MSR_KVM_ASYNC_PF_EN as we're not enabling the mechanism. In
particular, QEMU with 'kernel-irqchip=off' fails to start
a guest with

qemu-system-x86_64: error: failed to set MSR 0x4b564d02 to 0x0

Fixes: 5c6abe771f05b ("KVM: X86: Fix async pf caused null-ptr-deref")
Reported-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20200911093147.484565-1-vkuznets@redhat.com>
[Actually commit the version proposed by Sean Christopherson. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c