[patch] KVM, hotplug: export register_cpu_notifier



Subject: [patch] KVM, hotplug: export register_cpu_notifier
From: Ingo Molnar <mingo@xxxxxxx>

KVM-trunk uses register_cpu_notifier() but it's a module and we only
export this if CONFIG_HOTPLUG_CPU. Export it otherwise too.

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
kernel/cpu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux/kernel/cpu.c
===================================================================
--- linux.orig/kernel/cpu.c
+++ linux/kernel/cpu.c
@@ -75,10 +75,10 @@ int __cpuinit register_cpu_notifier(stru
return ret;
}

-#ifdef CONFIG_HOTPLUG_CPU
-
EXPORT_SYMBOL(register_cpu_notifier);

+#ifdef CONFIG_HOTPLUG_CPU
+
void unregister_cpu_notifier(struct notifier_block *nb)
{
mutex_lock(&cpu_add_remove_lock);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [patch 2/6] mmu_notifier: Callbacks to invalidate address ranges
    ... Am I correct in assuming Andrea's original patch set did not have any SMP ... Yes my last patch was SMP safe, stable and feature complete for KVM. ... complete that our introduction of the range callouts have introduced ... Jack will need that too. ...
    (Linux-Kernel)
  • [PATCH] mmu notifiers #v2
    ... In short when the linux VM decides to free a page, ... This patch allows the shadow pagetables to be dropped and the page to ... behavior of the KVM gphysical memory. ...
    (Linux-Kernel)
  • [PATCH] KVM swapping (+ seqlock fix) with mmu notifiers #v6
    ... This is the same as before but against the mmu notifier #v6 patch, ... notifier patch (which also supports all sleeping users not just KVM, ... memslot lock mutex. ...
    (Linux-Kernel)
  • Re: panic: getnewvnode: free vnode isnt
    ... >> Could people seeing this panic try the following patch? ... >> callers of vcleanensure that the vnode is not on the free list, ... > The patch hasn't stopped the panics, but I've tracked down a series of ... I've just started using USB keyboard/mouse and a KVM. ...
    (freebsd-current)
  • [PATCH 00/20] KVM updates for 2.6.23, part 2
    ... This is the second set of updates for the 2.6.23 merge window. ... the patchset includes the cpu hotplug fixes (which also make ... KVM: VMX: Reinitialize the real-mode tss when entering real mode ... HOTPLUG: Add CPU_DYING notifier ...
    (Linux-Kernel)