Bug 53361 - Wrong CPUID data returned by KVM
Summary: Wrong CPUID data returned by KVM
Status: NEW
Alias: None
Product: Virtualization
Classification: Unclassified
Component: kvm (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: virtualization_kvm
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-02 20:22 UTC by Kaloyan Ganchev
Modified: 2019-04-08 15:02 UTC (History)
3 users (show)

See Also:
Kernel Version: 3.2.0-37
Subsystem:
Regression: No
Bisected commit-id:


Attachments

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?

Note You need to log in before you can comment on or make changes to this bug.