Bug 53361

Summary: Wrong CPUID data returned by KVM
Product: Virtualization Reporter: Kaloyan Ganchev (kaloqn.ganchev)
Component: kvmAssignee: virtualization_kvm
Status: NEW ---    
Severity: normal CC: consume.noise, IFAllison, ironiridis
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.2.0-37 Subsystem:
Regression: No Bisected commit-id:

Description Kaloyan Ganchev 2013-02-02 20:22:31 UTC
When booted like this
 kvm -cpu core2duo,+xsave -enable-kvm -m 8192 -drive file=freebsd-9.1-qcow2.img -boot d -net nic -net user -nographic -vnc :0  -cdrom ./isos/FreeBSD-9.1-RELEASE-amd64-disc1.iso 

Freebsd crash immediately after the loader with error;

CPU0 does not support X87 or SSE2 : 0

Without the xsave instruction the FreeBSD boot as expected.
I had response from the FreeBSD developers that CPUID should return  presence of the FPU extensions and since long mode capable CPU  , X87 and SSE2 should be present according to Unix amd64 ABI .
It seems this is not the case when xsave flag is set.
Comment 1 Chris Harrington 2014-08-04 16:55:19 UTC
Looks like the QEMU folks had a relevant change on this bug:

https://lists.gnu.org/archive/html/qemu-devel/2014-02/msg04140.html

Could you retest?
Comment 2 Ian Allison 2014-08-09 02:10:00 UTC
seems to be working for me now.
Comment 3 Daniel Martin 2019-04-08 15:02:06 UTC
(In reply to Ian Allison from comment #2)
> seems to be working for me now.

Could anyone close this bug, please?