kvm: selftests: vcpu_setup: set cr4.osfxsr
authorAndrew Jones <drjones@redhat.com>
Tue, 18 Sep 2018 17:54:24 +0000 (19:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Oct 2018 22:26:02 +0000 (00:26 +0200)
commit6c930268bcc4cef62194daf151097d2b94f67718
tree22049c548e5af74ca3432bbe333da3e37cc05986
parent3b8a5df6c4dc6df2ab17d099fb157032f80bdca2
kvm: selftests: vcpu_setup: set cr4.osfxsr

Guest code may want to call functions that have variable arguments.
To do so, we either need to compile with -mno-sse or enable SSE in
the VCPUs. As it should be pretty safe to turn on the feature, and
-mno-sse would make linking test code with standard libraries
difficult, we choose the feature enabling.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/lib/x86.c