From: Paolo Bonzini Date: Fri, 21 Nov 2014 18:05:07 +0000 (+0100) Subject: KVM: x86: support XSAVES usage in the host X-Git-Tag: omap-for-v3.19/fixes-rc1~43^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df1daba7d1cb8ed7957f873cde5c9e953cbaa483;p=pandora-kernel.git KVM: x86: support XSAVES usage in the host Userspace is expecting non-compacted format for KVM_GET_XSAVE, but struct xsave_struct might be using the compacted format. Convert in order to preserve userspace ABI. Likewise, userspace is passing non-compacted format for KVM_SET_XSAVE but the kernel will pass it to XRSTORS, and we need to convert back. Fixes: f31a9f7c71691569359fa7fb8b0acaa44bce0324 Cc: Fenghua Yu Cc: stable@vger.kernel.org Cc: H. Peter Anvin Tested-by: Nadav Amit Reviewed-by: Radim Krčmář Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed