From: Paolo Bonzini Date: Mon, 24 Nov 2014 09:57:42 +0000 (+0100) Subject: x86: export get_xsave_addr X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ba7b39203a3a18018173b87e73f27169bd8e5147;p=openwrt%2Fstaging%2Fblogic.git x86: export get_xsave_addr 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 Acked-by: Thomas Gleixner Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kernel/xsave.c b/arch/x86/kernel/xsave.c index 4c540c4719d8..0de1fae2bdf0 100644 --- a/arch/x86/kernel/xsave.c +++ b/arch/x86/kernel/xsave.c @@ -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);