From: Paolo Bonzini Date: Thu, 17 Oct 2013 14:50:46 +0000 (+0200) Subject: KVM: x86: fix KVM_SET_XCRS for CPUs that do not support XSAVE X-Git-Tag: v3.13-rc1~80^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46c34cb059d519601fb567b55cf45c300fea2928;p=pandora-kernel.git 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 Signed-off-by: Paolo Bonzini --- Reading git-diff-tree failed