]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit88364a2f37ada1cedd9f6db0727d16b92f6f19f7
tree22049c548e5af74ca3432bbe333da3e37cc05986
parent0ca11c83f85eadd69ee6b6b2b6f6665195e3e3da
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