From: Paolo Bonzini Date: Wed, 3 Dec 2014 13:38:01 +0000 (+0100) Subject: KVM: cpuid: set CPUID(EAX=0xd,ECX=1).EBX correctly X-Git-Tag: omap-for-v3.20/drop-legacy-3517~40^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=412a3c411e6df54179f300e8d8d6247327865a2d;p=pandora-kernel.git KVM: cpuid: set CPUID(EAX=0xd,ECX=1).EBX correctly This is the size of the XSAVES area. This starts providing guest support for XSAVES (with no support yet for supervisor states, i.e. XSS == 0 always in guests for now). Wanpeng Li suggested testing XSAVEC as well as XSAVES, since in practice no real processor exists that only has one of them, and there is no other way for userspace programs to compute the area of the XSAVEC save area. CPUID(EAX=0xd,ECX=1).EBX provides an upper bound. Suggested-by: Radim Krčmář Reviewed-by: Radim Krčmář Tested-by: Wanpeng Li Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed