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/RHBA-2019:2715
Tested with qemu-kvm-2.12.0-65.module+el8.0.0+3748+44021654.3, not hit this issue. So set status to VERIFIED. Versions: kernel-4.18.0-80.el8.x86_64 qemu-kvm-2.12.0-65.module+el8.0.0+3748+44021654.3 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/win2016-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-65.module+el8.0.0+3748+44021654.3"}, "capabilities": []}} {"execute":"qmp_capabilities"} {"return": {}} {"execute":"device_del","arguments":{"id":"data1"}} {"timestamp": {"seconds": 1564393716, "microseconds": 16860}, "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": 1564394142, "microseconds": 292419}, "event": "RESET", "data": {"guest": true}} {"timestamp": {"seconds": 1564394142, "microseconds": 315048}, "event": "RESET", "data": {"guest": true}} {"timestamp": {"seconds": 1564394172, "microseconds": 480594}, "event": "RTC_CHANGE", "data": {"offset": 25007}} {"timestamp": {"seconds": 1564394172, "microseconds": 481289}, "event": "RTC_CHANGE", "data": {"offset": 25067}} {"timestamp": {"seconds": 1564394241, "microseconds": 155088}, "event": "SHUTDOWN", "data": {"guest": true}}