]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: include pvclock MSRs in msrs_to_save
authorGlauber Costa <glommer@redhat.com>
Tue, 6 Oct 2009 17:24:50 +0000 (13:24 -0400)
committerAvi Kivity <avi@redhat.com>
Thu, 3 Dec 2009 07:32:14 +0000 (09:32 +0200)
commit57777203d48d364e8cd52f591882de219333db6e
tree8d9ffc473a0a32fb7c0454069a30ac85a9a41e62
parent1fc2c07ff822a85cbf8133007fa6e69a7d42f209
KVM: x86: include pvclock MSRs in msrs_to_save

For a while now, we are issuing a rdmsr instruction to find out which
msrs in our save list are really supported by the underlying machine.
However, it fails to account for kvm-specific msrs, such as the pvclock
ones.

This patch moves then to the beginning of the list, and skip testing them.

Cc: stable@kernel.org
Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c