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 1673396 - qemu-kvm core dumped after hotplug the deleted disk with iothread parameter
Summary: qemu-kvm core dumped after hotplug the deleted disk with iothread parameter
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: qemu-kvm
Version: 8.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 8.0
Assignee: Markus Armbruster
QA Contact: Xueqiang Wei
URL:
Whiteboard:
Depends On: 1656276 1673397
Blocks: 1718992 1722710
TreeView+ depends on / blocked
 
Reported: 2019-02-07 12:39 UTC by Markus Armbruster
Modified: 2019-11-05 20:48 UTC (History)
12 users (show)

Fixed In Version: qemu-kvm-2.12.0-76.module+el8.1.0+3351+d11c20fa
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1656276
: 1718992 1722710 (view as bug list)
Environment:
Last Closed: 2019-11-05 20:47:34 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:3345 0 None None None 2019-11-05 20:48:12 UTC

Comment 11 Danilo de Paula 2019-06-11 18:38:43 UTC
Fix included in qemu-kvm-2.12.0-76.module+el8.1.0+3351+d11c20fa

Comment 13 Xueqiang Wei 2019-06-13 08:01:07 UTC
Tested with qemu-kvm-2.12.0-76.module+el8.1.0+3351+d11c20fa, not hit this issue. So set status to VERIFIED.

Versions:
kernel-4.18.0-100.el8.x86_64
qemu-kvm-2.12.0-76.module+el8.1.0+3351+d11c20fa


1. boot guest with two disks.

   /usr/libexec/qemu-kvm \
        -S \
        -M q35 \
        -smp 12,maxcpus=12,cores=6,threads=1,sockets=2  \
        -cpu 'Opteron_G5',+kvm_pv_unhalt \
        -enable-kvm \
        -m 4G \
        -smp 4 \
        -rtc base=utc,clock=host,driftfix=slew \
        -object iothread,id=iothread0 \
        -device pcie-root-port,id=pcie.0-root-port-2,slot=2,chassis=2,addr=0x2,bus=pcie.0 \
        -device virtio-scsi-pci,id=scsi0,iothread=iothread0,bus=pcie.0-root-port-2,addr=0x0 \
        -blockdev driver=file,cache.direct=on,cache.no-flush=off,filename=/home/kvm_autotest_root/images/win10-64-virtio-scsi.qcow2,node-name=win_disk \
        -blockdev driver=qcow2,node-name=drive_win,file=win_disk \
        -device scsi-hd,drive=drive_win,id=win1,write-cache=on \
        -blockdev driver=file,cache.direct=on,cache.no-flush=off,filename=/home/kvm_autotest_root/images/data.qcow2,node-name=data_disk1 \
        -blockdev driver=qcow2,node-name=drive_stg1,file=data_disk1 \
        -device scsi-hd,drive=drive_stg1,id=data1,write-cache=on \
        -device pcie-root-port,id=pcie.0-root-port-3,slot=3,chassis=3,addr=0x3,bus=pcie.0 \
        -device virtio-net-pci,mac=6c:ae:8b:20:80:59,id=netdev1,vectors=4,netdev=net1,bus=pcie.0-root-port-3,addr=0x0 \
        -netdev tap,id=net1,vhost=on \
        -qmp tcp:0:4446,server,nowait \
        -vga qxl \
        -vnc :0 \
        -monitor stdio \
        -boot menu=on \

2. Unplug the data disk:

# telnet localhost 4446
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
{"QMP": {"version": {"qemu": {"micro": 0, "minor": 12, "major": 2}, "package": "qemu-kvm-2.12.0-76.module+el8.1.0+3351+d11c20fa"}, "capabilities": []}}


{"execute":"qmp_capabilities"}
{"return": {}}


{"execute":"device_del","arguments":{"id":"data1"}}

{"timestamp": {"seconds": 1560411316, "microseconds": 320066}, "event": "DEVICE_DELETED", "data": {"device": "data1", "path": "/machine/peripheral/data1"}}
{"return": {}}


3. Hotplug the deleted disk:

{ 'execute':'device_add','arguments':{'driver':'scsi-hd','drive':'drive_stg1','id':'data1'}}
{"return": {}}


4.  I/O test on data disk.

Not hit any error.

5. reboot and shutdown guest.

(qemu) system_reset      
(qemu) system_powerdown

qmp monitor output:
{"timestamp": {"seconds": 1560411417, "microseconds": 966794}, "event": "RESET", "data": {"guest": false}}
{"timestamp": {"seconds": 1560411418, "microseconds": 52508}, "event": "RESET", "data": {"guest": true}}
{"timestamp": {"seconds": 1560411580, "microseconds": 409151}, "event": "POWERDOWN"}
{"timestamp": {"seconds": 1560411626, "microseconds": 126732}, "event": "SHUTDOWN", "data": {"guest": true}}

Comment 15 errata-xmlrpc 2019-11-05 20:47:34 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, 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-2019:3345


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