Paolo Bonzini 46c34cb059 KVM: x86: fix KVM_SET_XCRS for CPUs that do not support XSAVE
The KVM_SET_XCRS ioctl must accept anything that KVM_GET_XCRS
could return.  XCR0's bit 0 is always 1 in real processors with
XSAVE, and KVM_GET_XCRS will always leave bit 0 set even if the
emulated processor does not have XSAVE.  So, KVM_SET_XCRS must
ignore that bit when checking for attempts to enable unsupported
save states.

Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2013-10-31 11:30:46 +01:00
..
2013-10-30 18:54:41 +01:00
2013-10-30 18:54:39 +01:00
2013-10-30 18:54:41 +01:00
2013-10-30 19:02:03 +01:00
2013-10-30 19:02:03 +01:00
2012-08-06 16:04:57 +03:00
2013-06-27 14:20:51 +03:00