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)
commite3267cbbbfbcbe9c18833e89b10beabb1117cb55
tree8d9ffc473a0a32fb7c0454069a30ac85a9a41e62
parent91586a3b7d79432772a3cdcb81473cd08a237c79
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