KVM: x86: include pvclock MSRs in msrs_to_save
commita55770ccda90d9c1ed3b2408ea93f346278e6522
authorGlauber Costa <glommer@redhat.com>
Tue, 6 Oct 2009 17:24:50 +0000 (6 13:24 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Dec 2009 22:03:37 +0000 (18 14:03 -0800)
tree834886fd930d14b9a09783aa9adac3091ea5a97c
parent310c1a04807321c666445292db4b9147f1174c08
KVM: x86: include pvclock MSRs in msrs_to_save

commit e3267cbbbfbcbe9c18833e89b10beabb1117cb55 upstream.

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.

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/x86.c