x86: KVM guest: sign kvmclock as paravirt
authorGlauber Costa <glommer@redhat.com>
Mon, 24 Nov 2008 17:45:23 +0000 (15:45 -0200)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:55:00 +0000 (16:55 +0200)
Currently, we only set the KVM paravirt signature in case
of CONFIG_KVM_GUEST. However, it is possible to have it turned
off, while CONFIG_KVM_CLOCK is turned on. This is also a paravirt
case, and should be shown accordingly.

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kernel/kvmclock.c

index e169ae9..b38e801 100644 (file)
@@ -194,5 +194,7 @@ void __init kvmclock_init(void)
 #endif
                kvm_get_preset_lpj();
                clocksource_register(&kvm_clock);
+               pv_info.paravirt_enabled = 1;
+               pv_info.name = "KVM";
        }
 }