瀏覽代碼

x86: KVM guest: sign kvmclock as paravirt

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>
Glauber Costa 16 年之前
父節點
當前提交
423cd25a5a
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      arch/x86/kernel/kvmclock.c

+ 2 - 0
arch/x86/kernel/kvmclock.c

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