kvm: mmu: delay mmu audit activation

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Nov 22 17:59:05 EST 2013


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=521ee0cfb876dd31ce4e0878e1163fe0817a7acc
Commit:     521ee0cfb876dd31ce4e0878e1163fe0817a7acc
Parent:     2ecd1aba597726c9053ba1a112e3d8fdc5ca08ff
Author:     Sasha Levin <sasha.levin at oracle.com>
AuthorDate: Tue Nov 19 15:22:47 2013 -0500
Committer:  Gleb Natapov <gleb at redhat.com>
CommitDate: Wed Nov 20 11:12:56 2013 +0200

    kvm: mmu: delay mmu audit activation
    
    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 at oracle.com>
    Signed-off-by: Gleb Natapov <gleb at redhat.com>
---
 arch/x86/kvm/mmu_audit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kvm/mmu_audit.c b/arch/x86/kvm/mmu_audit.c
index daff69e..1185fe7 100644
--- a/arch/x86/kvm/mmu_audit.c
+++ b/arch/x86/kvm/mmu_audit.c
@@ -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);



More information about the linux-mtd-cvs mailing list