KVM: x86: Prevent host from panicking on shared MSR writes.
authorAndy Honig <ahonig@google.com>
Wed, 27 Aug 2014 18:16:44 +0000 (11:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 16:59:54 +0000 (08:59 -0800)
commitfb07a1411e604987d1ca415d33aa16c1a22702bc
tree68f87c1de6690fd0856eda4ca94cc9ee712dde64
parent8c373cfce6904feccca7ccf2a61e236db56dedf4
KVM: x86: Prevent host from panicking on shared MSR writes.

commit 8b3c3104c3f4f706e99365c3e0d2aa61b95f969f upstream.

The previous patch blocked invalid writes directly when the MSR
is written.  As a precaution, prevent future similar mistakes by
gracefulling handle GPs caused by writes to shared MSRs.

Signed-off-by: Andrew Honig <ahonig@google.com>
[Remove parts obsoleted by Nadav's patch. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c