KVM: do not #GP on perf MSR writes when vPMU is disabled
authorGleb Natapov <gleb@redhat.com>
Sun, 15 Jan 2012 12:17:22 +0000 (14:17 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 1 Feb 2012 09:44:46 +0000 (11:44 +0200)
commit5753785fa97742d2723ed8ebb29ae59cac912705
tree8fee6007a7e79acad183ce1805c48cf3e51c5ca7
parentc2226fc9e87ba3da060e47333657cd6616652b84
KVM: do not #GP on perf MSR writes when vPMU is disabled

Return to behaviour perf MSR had before introducing vPMU in case vPMU
is disabled. Some guests access those registers unconditionally and do
not expect it to fail.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c