Bug 1673396
| Summary: | qemu-kvm core dumped after hotplug the deleted disk with iothread parameter | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Markus Armbruster <armbru> | |
| Component: | qemu-kvm | Assignee: | Markus Armbruster <armbru> | |
| Status: | CLOSED ERRATA | QA Contact: | Xueqiang Wei <xuwei> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 8.0 | CC: | armbru, chayang, coli, jinzhao, juzhang, knoel, mtessun, ngu, rbalakri, toneata, virt-maint, xuwei | |
| Target Milestone: | rc | Keywords: | ZStream | |
| Target Release: | 8.0 | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| 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: | Story Points: | --- | ||
| Clone Of: | 1656276 | |||
| : | 1718992 1722710 (view as bug list) | Environment: | ||
| Last Closed: | 2019-11-05 20:47:34 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: | 1656276, 1673397 | |||
| Bug Blocks: | 1718992, 1722710 | |||
|
Comment 11
Danilo de Paula
2019-06-11 18:38:43 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}}
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 |