Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
DescriptionAndrea Bolognani
2016-08-01 07:56:22 UTC
Calling the query-hotpluggable-cpus QMP command with the
pseries-rhel7.2.0 machine type causes QEMU to crash:
$ /usr/libexec/qemu-kvm -M pseries-rhel7.2.0 -qmp stdio
{"QMP": {"version": {"qemu": {"micro": 0, "minor": 6, "major": 2},
"package": " (qemu-kvm-rhev-2.6.0-17.el7)"}, "capabilities": []}}
VNC server running on '::1;5900'
{"execute": "qmp_capabilities"}
{"return": {}}
{"execute": "query-hotpluggable-cpus"}
Segmentation fault
The same doesn't happen when using the pseries-rhel7.3.0
machine type.
kernel-3.10.0-481.el7.ppc64
qemu-kvm-rhev-2.6.0-17.el7.ppc64
I've confirmed the same problem exists upstream (for pseries-2.6 and earlier machine types). I've sent an upstream patch, and will backport it once merged.
Reproduced the issue on old version:
Version-Release number of selected component (if applicable):
kernel-3.10.0-470.el7.ppc64le
qemu-kvm-rhev-2.6.0-17.el7.ppc64le
Steps to Reproduce:
1.Boot up a guest with command:
/usr/libexec/qemu-kvm \
-name test \
-M pseries-rhel7.2.0 \
-smp 1,maxcpus=3,sockets=1,cores=1,threads=1 \
-m 1024 \
-monitor stdio \
-vnc :20 \
-qmp tcp:0:4444,server,nowait \
-device virtio-scsi-pci,bus=pci.0 \
-device scsi-hd,id=scsi-hd0,drive=scsi-hd0-dr0,bootindex=0 \
-drive file=/root/RHEL-7.2.qcow2,if=none,id=scsi-hd0-dr0,format=qcow2,cache=none \
-device virtio-net-pci,netdev=net0,id=nic0,mac=52:54:00:c4:e7:84 \
-netdev tap,id=net0,script=/etc/qemu-ifup,downscript=/etc/qemu-ifdown,vhost=on \
2.check hotpluggable cpus in qmp:
{ "execute": "qmp_capabilities"}
{"return": {}}
{"execute": "query-hotpluggable-cpus"}
Connection closed by foreign host.
Actual results:
Guest crashs with "Segmentation fault" error
Verified the issue on the latest build:
Version-Release number of selected component (if applicable):
kernel-3.10.0-470.el7.ppc64le
qemu-kvm-rhev-2.6.0-20.el7.ppc64le
Steps to Reproduce:
1.The same steps as above
2.check hotpluggable cpus in qmp:
{ "execute": "qmp_capabilities"}
{"return": {}}
{"execute": "query-hotpluggable-cpus"}
{"error": {"class": "GenericError", "desc": "The feature 'query-hotpluggable-cpus' is not enabled"}}
Actual results:
guest runs normally ,and it return "The feature 'query-hotpluggable-cpus' is not enabled" after query hotpluggable cpus command.
Base on the above results ,the bug has been fixed.
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, 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://rhn.redhat.com/errata/RHBA-2016-2673.html
Calling the query-hotpluggable-cpus QMP command with the pseries-rhel7.2.0 machine type causes QEMU to crash: $ /usr/libexec/qemu-kvm -M pseries-rhel7.2.0 -qmp stdio {"QMP": {"version": {"qemu": {"micro": 0, "minor": 6, "major": 2}, "package": " (qemu-kvm-rhev-2.6.0-17.el7)"}, "capabilities": []}} VNC server running on '::1;5900' {"execute": "qmp_capabilities"} {"return": {}} {"execute": "query-hotpluggable-cpus"} Segmentation fault The same doesn't happen when using the pseries-rhel7.3.0 machine type. kernel-3.10.0-481.el7.ppc64 qemu-kvm-rhev-2.6.0-17.el7.ppc64