RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1005695 - QEMU should hide CPUID.0Dh values that it does not support
Summary: QEMU should hide CPUID.0Dh values that it does not support
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Paolo Bonzini
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 1007897
Blocks: 1007899
TreeView+ depends on / blocked
 
Reported: 2013-09-09 08:25 UTC by Paolo Bonzini
Modified: 2014-06-18 03:36 UTC (History)
8 users (show)

Fixed In Version: qemu-kvm-1.5.3-15.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1007897 1007899 (view as bug list)
Environment:
Last Closed: 2014-06-13 13:19:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Paolo Bonzini 2013-09-09 08:25:50 UTC
CPUID.0Dh reports in EAX/ECX/EDX the size of the supported save areas.  KVM guests should not be presented more information than that available in the chosen CPU model.

This is important to run QEMU on hosts that support AVX-512 or MPX.

Comment 2 Miroslav Rezanina 2013-11-07 08:23:18 UTC
Fix included in qemu-kvm-1.5.3-15.el7

Comment 4 FuXiangChun 2013-12-25 06:05:41 UTC
Paolo,
QE want to verify this bug, but do not know how to check register's value inside guest. could you tell me to check which register's value?  e.g

eax in: 0x00000000, eax = 00000005 ebx = 68747541 ecx = 444d4163 edx = 69746e65
eax in: 0x00000001, eax = 00000f61 ebx = 00040800 ecx = 80002001 edx = 178bfbfd
eax in: 0x00000002, eax = 00000001 ebx = 00000000 ecx = 00000000 edx = 002c307d
eax in: 0x00000003, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000
eax in: 0x00000004, eax = 04000121 ebx = 01c0003f ecx = 0000003f edx = 00000001
eax in: 0x00000005, eax = 00000000 ebx = 00000000 ecx = 00000003 edx = 00000000

eax in: 0x80000000, eax = 80000008 ebx = 68747541 ecx = 444d4163 edx = 69746e65
eax in: 0x80000001, eax = 00000f61 ebx = 00000000 ecx = 00000007 edx = 2193fbfd
eax in: 0x80000002, eax = 20444d41 ebx = 6574704f ecx = 206e6f72 edx = 78783232
eax in: 0x80000003, eax = 65472820 ebx = 2032206e ecx = 73616c43 edx = 704f2073
eax in: 0x80000004, eax = 6f726574 ebx = 0000296e ecx = 00000000 edx = 00000000
eax in: 0x80000005, eax = 01ff01ff ebx = 01ff01ff ecx = 40020140 edx = 40020140
eax in: 0x80000006, eax = 00000000 ebx = 42004200 ecx = 02008140 edx = 00000000
eax in: 0x80000007, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000
eax in: 0x80000008, eax = 00003028 ebx = 00000000 ecx = 00000003 edx = 00000000

Comment 5 juzhang 2014-01-13 07:00:10 UTC
Hi Paolo,

Could you have a look comment4 and add your comment?

Best Regards,
Junyi

Comment 6 Paolo Bonzini 2014-01-13 12:11:34 UTC
Sorry for the delay Junyi and Fu, I was on PTO.  You have to run on Sandy Bridge or newer, and look at "eax in: 0x0000000d".

Try with "-cpu SandyBridge" and "-cpu SandyBridge,-avx", and you should see different output in that line.

Comment 7 juzhang 2014-02-08 00:13:46 UTC
Thanks Paolo.

Hi Xiangchun,

Could you verify this bz according to comment6?

Best Regards,
Junyi

Comment 8 FuXiangChun 2014-02-08 02:58:25 UTC
(In reply to Paolo Bonzini from comment #6)
> Sorry for the delay Junyi and Fu, I was on PTO.  You have to run on Sandy
> Bridge or newer, and look at "eax in: 0x0000000d".
> 
> Try with "-cpu SandyBridge" and "-cpu SandyBridge,-avx", and you should see
> different output in that line.

Verify this bug with qemu-kvm-1.5.3-45.el7.x86_64 and Haswell host.

Scenaro-1
1.1 Boot RHEL7.0 guest() with -cpu SandyBridge. 
1.2 check register value inside guest via x86info tool
result:
eax in: 0x0000000d, eax = 00000007 ebx = 00000340 ecx = 00000340 edx = 00000000

Scenaro-2
2.1 Boot RHEL7.0 guest with -cpu SandyBridge,-axv
2.2 check register value inside guest via x86info tool
result:
eax in: 0x0000000d, eax = 00000003 ebx = 00000240 ecx = 00000240 edx = 00000000

Paolo,
According to comment 6, QE get register's values above. Base on this result. Is this bug fixed?

Comment 9 FuXiangChun 2014-02-08 08:46:47 UTC
Additional, Tested qemu-kvm-1.5.3-15.el7.x86_64(unfix version)
Boot RHEL7.0 guest with -cpu SandyBridge/-cpu SandyBridge,-axv, register's values is no change. always is this below.
eax in: 0x0000000d, eax = 00000007 ebx = 00000340 ecx = 00000340 edx = 00000000

Comment 10 FuXiangChun 2014-02-08 08:48:44 UTC
Ignore comment 9. 

correct comment9.
Tested qemu-kvm-1.5.3-14.el7.x86_64(unfix version)
Boot RHEL7.0 guest with -cpu SandyBridge/-cpu SandyBridge,-axv, register's values is no change. always is this below.
eax in: 0x0000000d, eax = 00000007 ebx = 00000340 ecx = 00000340 edx = 00000000

Comment 11 Paolo Bonzini 2014-02-13 23:48:50 UTC
Yes, the fix is verified.

Comment 13 Ludek Smid 2014-06-13 13:19:49 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


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