Hide Forgot
rhel7.0 also hit the same issue that the tray-open value of floppy disk has no any changes when eject it in HMP. host info: # uname -r && rpm -q qemu-kvm 3.10.0-41.el7.x86_64 qemu-kvm-1.5.3-14.el7.x86_64 # /usr/libexec/qemu-kvm -vnc :1 -monitor stdio -drive file=/home/floppy.vfd,if=none,id=drive-fdc0-0-0,readonly=on,format=qcow2 -global isa-fdc.driveA=drive-fdc0-0-0 QEMU 1.5.3 monitor - type 'help' for more information (qemu) info block drive-fdc0-0-0: removable=1 locked=0 tray-open=0 file=/home/floppy.vfd ro=1 drv=qcow2 encrypted=0 bps=0 bps_rd=0 bps_wr=0 iops=0 iops_rd=0 iops_wr=0 ide1-cd0: removable=1 locked=0 tray-open=0 io-status=ok [not inserted] sd0: removable=1 locked=0 tray-open=0 [not inserted] (qemu) eject drive-fdc0-0-0 (qemu) info block drive-fdc0-0-0: removable=1 locked=0 tray-open=0 [not inserted] ide1-cd0: removable=1 locked=0 tray-open=0 io-status=ok [not inserted] sd0: removable=1 locked=0 tray-open=0 [not inserted] (qemu) change drive-fdc0-0-0 /home/floppy.vfd (qemu) info block drive-fdc0-0-0: removable=1 locked=0 tray-open=0 file=/home/floppy.vfd ro=1 drv=qcow2 encrypted=0 bps=0 bps_rd=0 bps_wr=0 iops=0 iops_rd=0 iops_wr=0 ide1-cd0: removable=1 locked=0 tray-open=0 io-status=ok [not inserted] sd0: removable=1 locked=0 tray-open=0 [not inserted] (qemu) q Best Regards, sluo
Direct invocation of qemu-kvm and QMP/HMP usage (outside of libvirt) will not be supported in RHEL7. Closing as wontfix.
Sibiao, please try to reproduce this with the QMP eject and change commands instead.
(In reply to Paolo Bonzini from comment #3) > Sibiao, please try to reproduce this with the QMP eject and change commands > instead. Reopening until we hear back from QE.
(In reply to Paolo Bonzini from comment #3) > Sibiao, please try to reproduce this with the QMP eject and change commands > instead. this issue just hit by HMP monitor, QMP has changes, please refer to the following. e.g.: {"execute":"qmp_capabilities"} {"return": {}} {"execute":"query-block"} {"return": [...{"device": "drive-fdc0-0-0", "locked": false, "removable": true, "inserted": {"iops_rd": 0, "image": {"virtual-size": 1509888, "filename": "/home/floppy1.vfd", "cluster-size": 65536, "format": "qcow2", "actual-size": 139264, "format-specific": {"type": "qcow2", "data": {"compat": "1.1", "lazy-refcounts": false}}, "dirty-flag": false}, "iops_wr": 0, "ro": false, "backing_file_depth": 0, "drv": "qcow2", "iops": 0, "bps_wr": 0, "encrypted": false, "bps": 0, "bps_rd": 0, "file": "/home/floppy1.vfd", "encryption_key_missing": false}, "tray_open": false, "type": "unknown"}...]} {"execute":"eject","arguments":{"device":"drive-fdc0-0-0"}} {"timestamp": {"seconds": 1386729943, "microseconds": 57605}, "event": "DEVICE_TRAY_MOVED", "data": {"device": "drive-fdc0-0-0", "tray-open": true}} {"return": {}} {"execute":"query-block"} {"return": [...{"device": "drive-fdc0-0-0", "locked": false, "removable": true, "tray_open": false, "type": "unknown"}...]} {"execute":"change","arguments":{"device":"drive-fdc0-0-0","target":"/home/floppy2.vfd"}} {"timestamp": {"seconds": 1386729953, "microseconds": 678468}, "event": "DEVICE_TRAY_MOVED", "data": {"device": "drive-fdc0-0-0", "tray-open": true}} {"timestamp": {"seconds": 1386729953, "microseconds": 679231}, "event": "DEVICE_TRAY_MOVED", "data": {"device": "drive-fdc0-0-0", "tray-open": true}} {"timestamp": {"seconds": 1386729953, "microseconds": 679354}, "event": "DEVICE_TRAY_MOVED", "data": {"device": "drive-fdc0-0-0", "tray-open": false}} {"return": {}} {"execute":"query-block"} {"return": [...{"device": "drive-fdc0-0-0", "locked": false, "removable": true, "inserted": {"iops_rd": 0, "image": {"virtual-size": 1509888, "filename": "/home/floppy2.vfd", "cluster-size": 65536, "format": "qcow2", "actual-size": 139264, "format-specific": {"type": "qcow2", "data": {"compat": "1.1", "lazy-refcounts": false}}, "dirty-flag": false}, "iops_wr": 0, "ro": false, "backing_file_depth": 0, "drv": "qcow2", "iops": 0, "bps_wr": 0, "encrypted": false, "bps": 0, "bps_rd": 0, "file": "/home/floppy2.vfd", "encryption_key_missing": false}, "tray_open": false, "type": "unknown"}...]} Best Regards, sluo
(In reply to Sibiao Luo from comment #5) > (In reply to Paolo Bonzini from comment #3) > > Sibiao, please try to reproduce this with the QMP eject and change commands > > instead. > this issue just hit by HMP monitor, QMP has changes, please refer to the > following. Confirmed it's HMP only, closing bug.