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 2029582 - [8.6] machine types: 6.2: Fix prefer_sockets
Summary: [8.6] machine types: 6.2: Fix prefer_sockets
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: qemu-kvm
Version: 8.6
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: 8.6
Assignee: Dr. David Alan Gilbert
QA Contact: liunana
URL:
Whiteboard:
Depends On: 2027716 2028623
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-06 19:58 UTC by Dr. David Alan Gilbert
Modified: 2022-05-10 13:43 UTC (History)
9 users (show)

Fixed In Version: qemu-kvm-6.2.0-4.module+el8.6.0+13919+adb438db
Doc Type: No Doc Update
Doc Text:
Clone Of: 2028623
Environment:
Last Closed: 2022-05-10 13:24:19 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gitlab redhat/rhel/src/qemu-kvm qemu-kvm merge_requests 96 0 None None None 2022-01-06 18:21:33 UTC
Red Hat Issue Tracker RHELPLAN-104899 0 None None None 2021-12-06 20:05:30 UTC

Description Dr. David Alan Gilbert 2021-12-06 19:58:08 UTC
+++ This bug was initially created as a clone of Bug #2028623 +++

Description of problem:
cohuck spotted that I'd missed the prefer_sockets line in the machine option compatibility for the x86 machine types; it looks like th_huth nailed it for s390.
(We'll also need this on 8.6, so probably need it for Power and hmm aarch?)

Version-Release number of selected component (if applicable):
6.2 rebase

How reproducible:
100%

Steps to Reproduce:
1. start a guest with -smp 8
2. lscpu


Actual results:
    Core(s) per socket:  8
    Socket(s):           1

Expected results:
    Core(s) per socket:  1
    Socket(s):           8


Additional info:

Comment 2 liunana 2021-12-20 03:33:18 UTC
Could you help to set the ITR so that I can set the ITM? Thanks.



Best regards
Liu Nana

Comment 5 Danilo de Paula 2021-12-23 18:49:49 UTC
Hi David,


Can you please check that this changes are indeed fixed in the 8.6 branch?

Comment 9 Yanan Fu 2022-01-18 08:54:56 UTC
QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass.

Comment 10 liunana 2022-01-24 15:26:20 UTC
Test Env:
    4.18.0-360.el8.x86_64
    qemu-kvm-6.2.0-4.module+el8.6.0+13930+1ccead3d.x86_64
    dell-per750-05.lab.eng.pek2.redhat.com
Guest: 4.18.0-359.el8.x86_64

Test steps:
   1. Boot guest with '-smp 8'
  2. lscpu inside guest.
# lscpu
CPU(s):              8
On-line CPU(s) list: 0-7
Thread(s) per core:  1
Core(s) per socket:  1
Socket(s):           8
BIOS Model name:     RHEL-8.5.0 PC (Q35 + ICH9, 2009)


  3. check 'pc' machine type, get the same results:
# lscpu
CPU(s):              8
On-line CPU(s) list: 0-7
Thread(s) per core:  1
Core(s) per socket:  1
Socket(s):           8
BIOS Model name:     RHEL 7.6.0 PC (i440FX + PIIX, 1996)


Please help to check this, if no more comments I will move this bug to VERIFIED, thanks.



Best regards
Liu Nana

Comment 11 Dr. David Alan Gilbert 2022-01-24 15:33:38 UTC
Yes, that's right - you see the 'smp 8' has turned into 8 sockets x 1 core.
I think if you try it with the 8.6.0 q35 machine type you'll see probably 1 socket, 8 cores.

Comment 12 liunana 2022-01-25 14:25:21 UTC
(In reply to Dr. David Alan Gilbert from comment #11)
> Yes, that's right - you see the 'smp 8' has turned into 8 sockets x 1 core.
> I think if you try it with the 8.6.0 q35 machine type you'll see probably 1
> socket, 8 cores.

Yes,I can see the difference with 8.6.0 q35 machine type with qemu-kvm-6.2.0-5.module+el8.6.0+14006+80bd780c

Inside guest:
# lscpu

Thread(s) per core:  1
Core(s) per socket:  8
Socket(s):           1
BIOS Model name:     RHEL-8.6.0 PC (Q35 + ICH9, 2009)



Move this bug to verified now, thanks.

Comment 14 errata-xmlrpc 2022-05-10 13:24:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: virt:rhel and virt-devel:rhel security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:1759


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