From: Glauber Costa Date: Tue, 11 May 2010 16:17:44 +0000 (-0400) Subject: x86: KVM guest: Try using new kvm clock msrs X-Git-Tag: v2.6.35-rc1~436^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=838815a78785022f6611e5c48386567aea7b818b;p=pandora-kernel.git x86: KVM guest: Try using new kvm clock msrs We now added a new set of clock-related msrs in replacement of the old ones. In theory, we could just try to use them and get a return value indicating they do not exist, due to our use of kvm_write_msr_save. However, kvm clock registration happens very early, and if we ever try to write to a non-existant MSR, we raise a lethal #GP, since our idt handlers are not in place yet. So this patch tests for a cpuid feature exported by the host to decide which set of msrs are supported. Signed-off-by: Glauber Costa Acked-by: Zachary Amsden Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed