diff mbox

kvm: mmu: delay mmu audit activation

Message ID 1384892567-20134-1-git-send-email-sasha.levin@oracle.com (mailing list archive)
State New, archived
Headers show

Commit Message

Sasha Levin Nov. 19, 2013, 8:22 p.m. UTC
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>
---
 arch/x86/kvm/mmu_audit.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Gleb Natapov Nov. 20, 2013, 9:36 a.m. UTC | #1
On Tue, Nov 19, 2013 at 03:22:47PM -0500, Sasha Levin wrote:
> 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>
Applied, thanks.

> ---
>  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);
> -- 
> 1.7.10.4

--
			Gleb.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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);