selftests: kvm: fix state save/load on processors without XSAVE
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 Aug 2019 15:35:52 +0000 (17:35 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Aug 2019 08:27:35 +0000 (10:27 +0200)
commit54577e5018a8c0cb79c9a0fa118a55c68715d398
tree93a376747c77710e87f5f1e4f52b1eaf0fe2ffb9
parentc930e19790bbbff31c018009907c813fa0925f63
selftests: kvm: fix state save/load on processors without XSAVE

state_test and smm_test are failing on older processors that do not
have xcr0.  This is because on those processor KVM does provide
support for KVM_GET/SET_XSAVE (to avoid having to rely on the older
KVM_GET/SET_FPU) but not for KVM_GET/SET_XCRS.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/lib/x86_64/processor.c