kvm: remove redundant registration of BSP's hv_clock area
authorFernando Luis Vázquez Cao <fernando_b1@lab.ntt.co.jp>
Tue, 18 Feb 2014 10:09:11 +0000 (19:09 +0900)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 22 Feb 2014 14:53:32 +0000 (15:53 +0100)
These days hv_clock allocation is memblock based (i.e. the percpu
allocator is not involved), which means that the physical address
of each of the per-cpu hv_clock areas is guaranteed to remain
unchanged through all its lifetime and we do not need to update
its location after CPU bring-up.

Signed-off-by: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kernel/kvm.c
arch/x86/kernel/kvmclock.c

index 713f1b3bad52a6478d65a153e986b4b533dff801..0331cb389d6861481ea819c74067a08da785ccf7 100644 (file)
@@ -417,7 +417,6 @@ void kvm_disable_steal_time(void)
 #ifdef CONFIG_SMP
 static void __init kvm_smp_prepare_boot_cpu(void)
 {
-       WARN_ON(kvm_register_clock("primary cpu clock"));
        kvm_guest_cpu_init();
        native_smp_prepare_boot_cpu();
        kvm_spinlock_init();
index e6041094ff265b48383b2e1e67b63a931f99032a..d9156ceecdff03ca0d55ab2834df0d4f7e828203 100644 (file)
@@ -242,7 +242,7 @@ void __init kvmclock_init(void)
        hv_clock = __va(mem);
        memset(hv_clock, 0, size);
 
-       if (kvm_register_clock("boot clock")) {
+       if (kvm_register_clock("primary cpu clock")) {
                hv_clock = NULL;
                memblock_free(mem, size);
                return;
This page took 0.080372 seconds and 5 git commands to generate.