Skip to content
Commit 412a3c41 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

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: default avatarRadim Krčmář <rkrcmar@redhat.com>
Reviewed-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
Tested-by: default avatarWanpeng Li <wanpeng.li@linux.intel.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 55412b2e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment