]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 13 Nov 2014 18:02:27 +0000 (19:02 +0100)
commit9f9a1ce3932ca0b1bd52932d70929eab6e574d97
tree1d84ee2637a26478dde804b3b86393c77b90e227
parent248541357433e3035d954435dafcdb9e70afee4e
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: Jiri Slaby <jslaby@suse.cz>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.c