x86: export get_xsave_addr
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 24 Nov 2014 09:57:42 +0000 (10:57 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Dec 2014 12:55:44 +0000 (13:55 +0100)
get_xsave_addr is the API to access XSAVE states, and KVM would
like to use it.  Export it.

Cc: stable@vger.kernel.org
Cc: x86@kernel.org
Cc: H. Peter Anvin <hpa@linux.intel.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kernel/xsave.c

index 4c540c4719d80d14a9797648d2d65cfc768c2e10..0de1fae2bdf000b5ed6cfae68d76ca21d5c246b9 100644 (file)
@@ -738,3 +738,4 @@ void *get_xsave_addr(struct xsave_struct *xsave, int xstate)
 
        return (void *)xsave + xstate_comp_offsets[feature];
 }
+EXPORT_SYMBOL_GPL(get_xsave_addr);