Skip to contentSkip to conversation

sign kvmclock as paravirt

PATCH Applied Glauber Costa 2 participants 2 messages Nov 24, 2008 – Nov 25, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/x86/kernel/kvmclock.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/x86/kernel/kvmclock.c +2 -0
index 1c9cc43..4a1ee5a 100644
@@ -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";
 	}
 }
Signature · 1 line
1.5.6.5
Applied
#1 lore raw
Quoted 5 lines · Glauber Costa

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.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function