Bug 2091166
| Summary: | Q35: dmidecode doesn't display number of cpus (>255) correctly | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Julia Suvorova <jusual> |
| Component: | qemu-kvm | Assignee: | Julia Suvorova <jusual> |
| qemu-kvm sub component: | Machine Types | QA Contact: | Yiqian Wei <yiwei> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | unspecified | ||
| Priority: | unspecified | CC: | coli, jinzhao, juzhang, mrezanin, nanliu, nilal, virt-maint, xuwei, yiwei, ymankad |
| Version: | unspecified | Keywords: | Triaged |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | qemu-kvm-7.2.0-1.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-05-09 07:19:33 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 2135806 | ||
| Bug Blocks: | 1788991, 1906077 | ||
|
Description
Julia Suvorova
2022-05-27 17:21:17 UTC
Posted patches to upstream QEMU:
[PATCH 0/5] hw/smbios: add core_count2 to smbios table type 4
[PATCH 1/5] hw/smbios: add core_count2 to smbios table type 4
[PATCH 2/5] bios-tables-test: teach test to use smbios 3.0 tables
[PATCH 3/5] tests/acpi: allow changes for core_count2 test
[PATCH 4/5] bios-tables-test: add test for number of cores > 255
[PATCH 5/5] tests/acpi: update tables for new core count test
@nilal Which release do you think it should go to? (In reply to Julia Suvorova from comment #2) > @nilal Which release do you think it should go to? I would say 9.1, however, it will mainly depend on how quickly this gets picked upstream. Hit this bug with smbios 2.8
host version:
kernel-5.14.0-100.el9.x86_64
qemu-kvm-7.0.0-4.el9.x86_64
seabios-1.16.0-3.el9.x86_64
guest: rhel9.1.0
1.boot a guest with 280 vcpus
/usr/libexec/qemu-kvm \
-name 'avocado-vt-vm1' \
-sandbox on \
-machine q35,memory-backend=mem-machine_mem,kernel-irqchip=split \
-device pcie-root-port,id=pcie-root-port-0,multifunction=on,bus=pcie.0,addr=0x1,chassis=1 \
-device pcie-pci-bridge,id=pcie-pci-bridge-0,addr=0x0,bus=pcie-root-port-0 \
-nodefaults \
-device VGA,bus=pcie.0,addr=0x2 \
-m 16G \
-object memory-backend-ram,size=16G,id=mem-machine_mem \
-smp 280 \
-cpu 'SandyBridge',enforce \
-chardev socket,server=on,wait=off,path=/tmp/monitor-qmpmonitor1-20220520-212200-9Qt88GNK,id=qmp_id_qmpmonitor1 \
-mon chardev=qmp_id_qmpmonitor1,mode=control \
-chardev socket,server=on,wait=off,path=/tmp/monitor-catch_monitor-20220520-212200-9Qt88GNK,id=qmp_id_catch_monitor \
-mon chardev=qmp_id_catch_monitor,mode=control \
-device pvpanic,ioport=0x505,id=idr2aDG3 \
-chardev socket,server=on,wait=off,path=/tmp/serial-serial0-20220520-212200-9Qt88GNK,id=chardev_serial0 \
-device isa-serial,id=serial0,chardev=chardev_serial0 \
-chardev socket,id=seabioslog_id_20220520-212200-9Qt88GNK,path=/tmp/seabios-20220520-212200-9Qt88GNK,server=on,wait=off \
-device isa-debugcon,chardev=seabioslog_id_20220520-212200-9Qt88GNK,iobase=0x402 \
-device pcie-root-port,id=pcie-root-port-1,port=0x1,addr=0x1.0x1,bus=pcie.0,chassis=2 \
-device qemu-xhci,id=usb1,bus=pcie-root-port-1,addr=0x0 \
-device usb-tablet,id=usb-tablet1,bus=usb1.0,port=1 \
-device pcie-root-port,id=pcie-root-port-2,port=0x2,addr=0x1.0x2,bus=pcie.0,chassis=3 \
-device virtio-scsi-pci,id=virtio_scsi_pci0,bus=pcie-root-port-2,addr=0x0 \
-blockdev node-name=file_image1,driver=file,auto-read-only=on,discard=unmap,aio=threads,filename=/home/rhel910-64-virtio-scsi.qcow2,cache.direct=on,cache.no-flush=off \
-blockdev node-name=drive_image1,driver=qcow2,read-only=off,cache.direct=on,cache.no-flush=off,file=file_image1 \
-device scsi-hd,id=image1,drive=drive_image1,write-cache=on \
-device pcie-root-port,id=pcie-root-port-3,port=0x3,addr=0x1.0x3,bus=pcie.0,chassis=4 \
-device virtio-net-pci,mac=9a:5d:b0:f5:04:0f,id=idlokhzs,netdev=id4YbMcO,bus=pcie-root-port-3,addr=0x0 \
-netdev tap,id=id4YbMcO,vhost=on \
-vnc :1 \
-rtc base=utc,clock=host,driftfix=slew \
-boot menu=off,order=cdn,once=c,strict=off \
-enable-kvm \
-monitor stdio \
-qmp tcp:0:4444,server=on,wait=off \
2.run dmidecode in the guest
# dmidecode -t 4
Test results:
# dmidecode -t 4
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 2.8 present.
Handle 0x0400, DMI type 4, 42 bytes
Processor Information
Socket Designation: CPU 0
Type: Central Processor
Family: Other
Manufacturer: Red Hat
ID: A1 06 02 00 FF FB 8B 07
Version: RHEL-9.0.0 PC (Q35 + ICH9, 2009)
Voltage: Unknown
External Clock: Unknown
Max Speed: 2000 MHz
Current Speed: 2000 MHz
Status: Populated, Enabled
Upgrade: Other
L1 Cache Handle: Not Provided
L2 Cache Handle: Not Provided
L3 Cache Handle: Not Provided
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Core Count: 24
Core Enabled: 24
Thread Count: 1
Characteristics: None
v3 posted and mostly ack'd upstream: https://lists.nongnu.org/archive/html/qemu-devel/2022-10/msg01640.html Updating ITR=9.2 - let's try to get this into qemu-7.2 for RHEL 9.2 via rebase. Merged upstream: b22fbc5bcb tests/acpi: update tables for new core count test 2d80b33843 bios-tables-test: add test for number of cores > 255 159a0da5b0 tests/acpi: allow changes for core_count2 test 33bff4a85a bios-tables-test: teach test to use smbios 3.0 tables 05e27d74c7 hw/smbios: add core_count2 to smbios table type 4 QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass. 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: qemu-kvm 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-2023:2162 |