Skip to contentSkip to conversation

kvm: mmu: delay mmu audit activation

PATCH Applied Sasha Levin 2 participants 2 messages Nov 19, 2013 – Nov 20, 2013

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

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

---
 arch/x86/kvm/mmu_audit.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kvm/mmu_audit.c +1 -1
index daff69e..1185fe7 100644
@@ -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);
Signature · 1 line
1.7.10.4
Applied
#1 lore raw
Quoted 4 lines · Sasha Levin

We should not be using jump labels before they were initialized. Push back the callback to until after jump label initialization.

Applied, thanks.

Quoted 16 lines
---
 arch/x86/kvm/mmu_audit.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kvm/mmu_audit.c +1 -1
index daff69e..1185fe7 100644
@@ -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);
Signature · 1 line
1.7.10.4

--
Gleb.