]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit01c08bf29438da8c21839c469418371eea8f9539
tree93a376747c77710e87f5f1e4f52b1eaf0fe2ffb9
parentd089966878bdc91856f689fa93706d5901142297
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