kvm: mmu: delay mmu audit activation
authorSasha Levin <sasha.levin@oracle.com>
Tue, 19 Nov 2013 20:22:47 +0000 (15:22 -0500)
committerGleb Natapov <gleb@redhat.com>
Wed, 20 Nov 2013 09:12:56 +0000 (11:12 +0200)
We should not be using jump labels before they were initialized. Push back
the callback to until after jump label initialization.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/mmu_audit.c

index daff69e21150d054a109a889630f730702088b76..1185fe7a7f47b053ba3c0fcb1b079d1614581e57 100644 (file)
@@ -296,4 +296,4 @@ static struct kernel_param_ops audit_param_ops = {
        .get = param_get_bool,
 };
 
-module_param_cb(mmu_audit, &audit_param_ops, &mmu_audit, 0644);
+arch_param_cb(mmu_audit, &audit_param_ops, &mmu_audit, 0644);