Bug 2214502 - [RHEL8][CPU-hotplug][s390x] after hotplug CPU by qmp command /proc/cpuinfo still shows the wrong info
Summary: [RHEL8][CPU-hotplug][s390x] after hotplug CPU by qmp command /proc/cpuinfo st...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: systemd
Version: 8.9
Hardware: s390x
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: systemd-maint
QA Contact: Frantisek Sumsal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-13 07:38 UTC by bfu
Modified: 2023-07-05 06:50 UTC (History)
19 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-06-13 08:39:40 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-159693 0 None None None 2023-06-13 07:39:42 UTC

Description bfu 2023-06-13 07:38:40 UTC
Description of problem:
/proc/cpuinfo cannot shows correct CPU number after hotplug vCPU by qmp command

Version-Release number of selected component (if applicable):
kernel: 4.18.0-496.el8.s390x
qemu-kvm: qemu-kvm-6.2.0-35.module+el8.9.0+19024+8193e2ac.s390x

How reproducible:
100%

1. boot up guest with
"-smp 5,maxcpus=6,cores=3,threads=1,sockets=2  \"
2. hot-plug 1 vCPU by command in qmp:
"{"execute": "device_add", "arguments": {"id": "vcpu1", "driver": "host-s390x-cpu", "core-id": 5}, "id": "F13T8uRq"}"
3. search the CPU info in /proc/cpuinfo
"grep -c "^processor\b" /proc/cpuinfo"

Actual results:
[root@localhost ~]# grep -c "^processor\b" /proc/cpuinfo
5


Expected results:
[root@localhost ~]# grep -c "^processor\b" /proc/cpuinfo
6

Additional info:
Didn't hit this issue with:

kernel version: 4.18.0-492.el8.s390x
qemu version: qemu-kvm-6.2.0-34.module+el8.9.0+18868+5565e56d.s390x


http://10.0.136.47/7944438/test-results/101-Host_RHEL.m8.u9.v0.product_rhel.nographic.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.3.0.s390x.io-github-autotest-qemu.cpu_device_hotpluggable.hotplug.single_vcpu.with_reboot.shell_reboot.s390-virtio/debug.log

Comment 2 bfu 2023-06-13 08:39:40 UTC
sorry, wrong bug reported


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