qemu-thread: fix qemu_event without futexes
[qemu.git] / tests / qemu-iotests / 067.out
blob13ff3cd7aac8ea0f3e3a9d33907df0f7b31f56a3
1 QA output created by 067
2 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
4 === -drive/-device and device_del ===
6 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,if=none,id=disk -device virtio-blk-pci,drive=disk,id=virtio0
8     QMP_VERSION
11     "return": {
12     }
15     "return": [
16         {
17             "io-status": "ok",
18             "device": "disk",
19             "locked": false,
20             "removable": false,
21             "inserted": {
22                 "iops_rd": 0,
23                 "detect_zeroes": "off",
24                 "image": {
25                     "virtual-size": 134217728,
26                     "filename": "TEST_DIR/t.qcow2",
27                     "cluster-size": 65536,
28                     "format": "qcow2",
29                     "actual-size": SIZE,
30                     "format-specific": {
31                         "type": "qcow2",
32                         "data": {
33                             "compat": "1.1",
34                             "lazy-refcounts": false,
35                             "corrupt": false
36                         }
37                     },
38                     "dirty-flag": false
39                 },
40                 "iops_wr": 0,
41                 "ro": false,
42                 "backing_file_depth": 0,
43                 "drv": "qcow2",
44                 "iops": 0,
45                 "bps_wr": 0,
46                 "encrypted": false,
47                 "bps": 0,
48                 "bps_rd": 0,
49                 "cache": {
50                     "no-flush": false,
51                     "direct": false,
52                     "writeback": true
53                 },
54                 "file": "TEST_DIR/t.qcow2",
55                 "encryption_key_missing": false
56             },
57             "type": "unknown"
58         },
59         {
60             "io-status": "ok",
61             "device": "ide1-cd0",
62             "locked": false,
63             "removable": true,
64             "tray_open": false,
65             "type": "unknown"
66         },
67         {
68             "device": "floppy0",
69             "locked": false,
70             "removable": true,
71             "tray_open": false,
72             "type": "unknown"
73         },
74         {
75             "device": "sd0",
76             "locked": false,
77             "removable": true,
78             "tray_open": false,
79             "type": "unknown"
80         }
81     ]
84     "return": {
85     }
88     "return": {
89     }
92     "timestamp": {
93         "seconds":  TIMESTAMP,
94         "microseconds":  TIMESTAMP
95     },
96     "event": "DEVICE_DELETED",
97     "data": {
98         "path": "/machine/peripheral/virtio0/virtio-backend"
99     }
102     "timestamp": {
103         "seconds":  TIMESTAMP,
104         "microseconds":  TIMESTAMP
105     },
106     "event": "DEVICE_DELETED",
107     "data": {
108         "device": "virtio0",
109         "path": "/machine/peripheral/virtio0"
110     }
113     "timestamp": {
114         "seconds":  TIMESTAMP,
115         "microseconds":  TIMESTAMP
116     },
117     "event": "RESET"
120     "return": [
121         {
122             "io-status": "ok",
123             "device": "ide1-cd0",
124             "locked": false,
125             "removable": true,
126             "tray_open": false,
127             "type": "unknown"
128         },
129         {
130             "device": "floppy0",
131             "locked": false,
132             "removable": true,
133             "tray_open": false,
134             "type": "unknown"
135         },
136         {
137             "device": "sd0",
138             "locked": false,
139             "removable": true,
140             "tray_open": false,
141             "type": "unknown"
142         }
143     ]
146     "return": {
147     }
150     "timestamp": {
151         "seconds":  TIMESTAMP,
152         "microseconds":  TIMESTAMP
153     },
154     "event": "SHUTDOWN"
157     "timestamp": {
158         "seconds":  TIMESTAMP,
159         "microseconds":  TIMESTAMP
160     },
161     "event": "DEVICE_TRAY_MOVED",
162     "data": {
163         "device": "ide1-cd0",
164         "tray-open": true
165     }
168     "timestamp": {
169         "seconds":  TIMESTAMP,
170         "microseconds":  TIMESTAMP
171     },
172     "event": "DEVICE_TRAY_MOVED",
173     "data": {
174         "device": "floppy0",
175         "tray-open": true
176     }
180 === -drive/device_add and device_del ===
182 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,if=none,id=disk
184     QMP_VERSION
187     "return": {
188     }
191     "return": [
192         {
193             "device": "disk",
194             "locked": false,
195             "removable": true,
196             "inserted": {
197                 "iops_rd": 0,
198                 "detect_zeroes": "off",
199                 "image": {
200                     "virtual-size": 134217728,
201                     "filename": "TEST_DIR/t.qcow2",
202                     "cluster-size": 65536,
203                     "format": "qcow2",
204                     "actual-size": SIZE,
205                     "format-specific": {
206                         "type": "qcow2",
207                         "data": {
208                             "compat": "1.1",
209                             "lazy-refcounts": false,
210                             "corrupt": false
211                         }
212                     },
213                     "dirty-flag": false
214                 },
215                 "iops_wr": 0,
216                 "ro": false,
217                 "backing_file_depth": 0,
218                 "drv": "qcow2",
219                 "iops": 0,
220                 "bps_wr": 0,
221                 "encrypted": false,
222                 "bps": 0,
223                 "bps_rd": 0,
224                 "cache": {
225                     "no-flush": false,
226                     "direct": false,
227                     "writeback": true
228                 },
229                 "file": "TEST_DIR/t.qcow2",
230                 "encryption_key_missing": false
231             },
232             "tray_open": false,
233             "type": "unknown"
234         },
235         {
236             "io-status": "ok",
237             "device": "ide1-cd0",
238             "locked": false,
239             "removable": true,
240             "tray_open": false,
241             "type": "unknown"
242         },
243         {
244             "device": "floppy0",
245             "locked": false,
246             "removable": true,
247             "tray_open": false,
248             "type": "unknown"
249         },
250         {
251             "device": "sd0",
252             "locked": false,
253             "removable": true,
254             "tray_open": false,
255             "type": "unknown"
256         }
257     ]
260     "return": {
261     }
264     "return": {
265     }
268     "return": {
269     }
272     "timestamp": {
273         "seconds":  TIMESTAMP,
274         "microseconds":  TIMESTAMP
275     },
276     "event": "DEVICE_DELETED",
277     "data": {
278         "path": "/machine/peripheral/virtio0/virtio-backend"
279     }
282     "timestamp": {
283         "seconds":  TIMESTAMP,
284         "microseconds":  TIMESTAMP
285     },
286     "event": "DEVICE_DELETED",
287     "data": {
288         "device": "virtio0",
289         "path": "/machine/peripheral/virtio0"
290     }
293     "timestamp": {
294         "seconds":  TIMESTAMP,
295         "microseconds":  TIMESTAMP
296     },
297     "event": "RESET"
300     "return": [
301         {
302             "io-status": "ok",
303             "device": "ide1-cd0",
304             "locked": false,
305             "removable": true,
306             "tray_open": false,
307             "type": "unknown"
308         },
309         {
310             "device": "floppy0",
311             "locked": false,
312             "removable": true,
313             "tray_open": false,
314             "type": "unknown"
315         },
316         {
317             "device": "sd0",
318             "locked": false,
319             "removable": true,
320             "tray_open": false,
321             "type": "unknown"
322         }
323     ]
326     "return": {
327     }
330     "timestamp": {
331         "seconds":  TIMESTAMP,
332         "microseconds":  TIMESTAMP
333     },
334     "event": "SHUTDOWN"
337     "timestamp": {
338         "seconds":  TIMESTAMP,
339         "microseconds":  TIMESTAMP
340     },
341     "event": "DEVICE_TRAY_MOVED",
342     "data": {
343         "device": "ide1-cd0",
344         "tray-open": true
345     }
348     "timestamp": {
349         "seconds":  TIMESTAMP,
350         "microseconds":  TIMESTAMP
351     },
352     "event": "DEVICE_TRAY_MOVED",
353     "data": {
354         "device": "floppy0",
355         "tray-open": true
356     }
360 === drive_add/device_add and device_del ===
362 Testing:
364     QMP_VERSION
367     "return": {
368     }
371     "return": "OK\r\n"
374     "return": [
375         {
376             "io-status": "ok",
377             "device": "ide1-cd0",
378             "locked": false,
379             "removable": true,
380             "tray_open": false,
381             "type": "unknown"
382         },
383         {
384             "device": "floppy0",
385             "locked": false,
386             "removable": true,
387             "tray_open": false,
388             "type": "unknown"
389         },
390         {
391             "device": "sd0",
392             "locked": false,
393             "removable": true,
394             "tray_open": false,
395             "type": "unknown"
396         },
397         {
398             "device": "disk",
399             "locked": false,
400             "removable": true,
401             "inserted": {
402                 "iops_rd": 0,
403                 "detect_zeroes": "off",
404                 "image": {
405                     "virtual-size": 134217728,
406                     "filename": "TEST_DIR/t.qcow2",
407                     "cluster-size": 65536,
408                     "format": "qcow2",
409                     "actual-size": SIZE,
410                     "format-specific": {
411                         "type": "qcow2",
412                         "data": {
413                             "compat": "1.1",
414                             "lazy-refcounts": false,
415                             "corrupt": false
416                         }
417                     },
418                     "dirty-flag": false
419                 },
420                 "iops_wr": 0,
421                 "ro": false,
422                 "backing_file_depth": 0,
423                 "drv": "qcow2",
424                 "iops": 0,
425                 "bps_wr": 0,
426                 "encrypted": false,
427                 "bps": 0,
428                 "bps_rd": 0,
429                 "cache": {
430                     "no-flush": false,
431                     "direct": false,
432                     "writeback": true
433                 },
434                 "file": "TEST_DIR/t.qcow2",
435                 "encryption_key_missing": false
436             },
437             "tray_open": false,
438             "type": "unknown"
439         }
440     ]
443     "return": {
444     }
447     "return": {
448     }
451     "return": {
452     }
455     "timestamp": {
456         "seconds":  TIMESTAMP,
457         "microseconds":  TIMESTAMP
458     },
459     "event": "DEVICE_DELETED",
460     "data": {
461         "path": "/machine/peripheral/virtio0/virtio-backend"
462     }
465     "timestamp": {
466         "seconds":  TIMESTAMP,
467         "microseconds":  TIMESTAMP
468     },
469     "event": "DEVICE_DELETED",
470     "data": {
471         "device": "virtio0",
472         "path": "/machine/peripheral/virtio0"
473     }
476     "timestamp": {
477         "seconds":  TIMESTAMP,
478         "microseconds":  TIMESTAMP
479     },
480     "event": "RESET"
483     "return": [
484         {
485             "io-status": "ok",
486             "device": "ide1-cd0",
487             "locked": false,
488             "removable": true,
489             "tray_open": false,
490             "type": "unknown"
491         },
492         {
493             "device": "floppy0",
494             "locked": false,
495             "removable": true,
496             "tray_open": false,
497             "type": "unknown"
498         },
499         {
500             "device": "sd0",
501             "locked": false,
502             "removable": true,
503             "tray_open": false,
504             "type": "unknown"
505         }
506     ]
509     "return": {
510     }
513     "timestamp": {
514         "seconds":  TIMESTAMP,
515         "microseconds":  TIMESTAMP
516     },
517     "event": "SHUTDOWN"
520     "timestamp": {
521         "seconds":  TIMESTAMP,
522         "microseconds":  TIMESTAMP
523     },
524     "event": "DEVICE_TRAY_MOVED",
525     "data": {
526         "device": "ide1-cd0",
527         "tray-open": true
528     }
531     "timestamp": {
532         "seconds":  TIMESTAMP,
533         "microseconds":  TIMESTAMP
534     },
535     "event": "DEVICE_TRAY_MOVED",
536     "data": {
537         "device": "floppy0",
538         "tray-open": true
539     }
543 === blockdev_add/device_add and device_del ===
545 Testing:
547     QMP_VERSION
550     "return": {
551     }
554     "return": {
555     }
558     "return": [
559         {
560             "io-status": "ok",
561             "device": "ide1-cd0",
562             "locked": false,
563             "removable": true,
564             "tray_open": false,
565             "type": "unknown"
566         },
567         {
568             "device": "floppy0",
569             "locked": false,
570             "removable": true,
571             "tray_open": false,
572             "type": "unknown"
573         },
574         {
575             "device": "sd0",
576             "locked": false,
577             "removable": true,
578             "tray_open": false,
579             "type": "unknown"
580         },
581         {
582             "device": "disk",
583             "locked": false,
584             "removable": true,
585             "inserted": {
586                 "iops_rd": 0,
587                 "detect_zeroes": "off",
588                 "image": {
589                     "virtual-size": 134217728,
590                     "filename": "TEST_DIR/t.qcow2",
591                     "cluster-size": 65536,
592                     "format": "qcow2",
593                     "actual-size": SIZE,
594                     "format-specific": {
595                         "type": "qcow2",
596                         "data": {
597                             "compat": "1.1",
598                             "lazy-refcounts": false,
599                             "corrupt": false
600                         }
601                     },
602                     "dirty-flag": false
603                 },
604                 "iops_wr": 0,
605                 "ro": false,
606                 "backing_file_depth": 0,
607                 "drv": "qcow2",
608                 "iops": 0,
609                 "bps_wr": 0,
610                 "encrypted": false,
611                 "bps": 0,
612                 "bps_rd": 0,
613                 "cache": {
614                     "no-flush": false,
615                     "direct": false,
616                     "writeback": true
617                 },
618                 "file": "TEST_DIR/t.qcow2",
619                 "encryption_key_missing": false
620             },
621             "tray_open": false,
622             "type": "unknown"
623         }
624     ]
627     "return": {
628     }
631     "return": {
632     }
635     "return": {
636     }
639     "timestamp": {
640         "seconds":  TIMESTAMP,
641         "microseconds":  TIMESTAMP
642     },
643     "event": "DEVICE_DELETED",
644     "data": {
645         "path": "/machine/peripheral/virtio0/virtio-backend"
646     }
649     "timestamp": {
650         "seconds":  TIMESTAMP,
651         "microseconds":  TIMESTAMP
652     },
653     "event": "DEVICE_DELETED",
654     "data": {
655         "device": "virtio0",
656         "path": "/machine/peripheral/virtio0"
657     }
660     "timestamp": {
661         "seconds":  TIMESTAMP,
662         "microseconds":  TIMESTAMP
663     },
664     "event": "RESET"
667     "return": [
668         {
669             "io-status": "ok",
670             "device": "ide1-cd0",
671             "locked": false,
672             "removable": true,
673             "tray_open": false,
674             "type": "unknown"
675         },
676         {
677             "device": "floppy0",
678             "locked": false,
679             "removable": true,
680             "tray_open": false,
681             "type": "unknown"
682         },
683         {
684             "device": "sd0",
685             "locked": false,
686             "removable": true,
687             "tray_open": false,
688             "type": "unknown"
689         },
690         {
691             "io-status": "ok",
692             "device": "disk",
693             "locked": false,
694             "removable": true,
695             "inserted": {
696                 "iops_rd": 0,
697                 "detect_zeroes": "off",
698                 "image": {
699                     "virtual-size": 134217728,
700                     "filename": "TEST_DIR/t.qcow2",
701                     "cluster-size": 65536,
702                     "format": "qcow2",
703                     "actual-size": SIZE,
704                     "format-specific": {
705                         "type": "qcow2",
706                         "data": {
707                             "compat": "1.1",
708                             "lazy-refcounts": false,
709                             "corrupt": false
710                         }
711                     },
712                     "dirty-flag": false
713                 },
714                 "iops_wr": 0,
715                 "ro": false,
716                 "backing_file_depth": 0,
717                 "drv": "qcow2",
718                 "iops": 0,
719                 "bps_wr": 0,
720                 "encrypted": false,
721                 "bps": 0,
722                 "bps_rd": 0,
723                 "cache": {
724                     "no-flush": false,
725                     "direct": false,
726                     "writeback": true
727                 },
728                 "file": "TEST_DIR/t.qcow2",
729                 "encryption_key_missing": false
730             },
731             "tray_open": false,
732             "type": "unknown"
733         }
734     ]
737     "return": {
738     }
741     "timestamp": {
742         "seconds":  TIMESTAMP,
743         "microseconds":  TIMESTAMP
744     },
745     "event": "SHUTDOWN"
748     "timestamp": {
749         "seconds":  TIMESTAMP,
750         "microseconds":  TIMESTAMP
751     },
752     "event": "DEVICE_TRAY_MOVED",
753     "data": {
754         "device": "ide1-cd0",
755         "tray-open": true
756     }
759     "timestamp": {
760         "seconds":  TIMESTAMP,
761         "microseconds":  TIMESTAMP
762     },
763     "event": "DEVICE_TRAY_MOVED",
764     "data": {
765         "device": "floppy0",
766         "tray-open": true
767     }
770 *** done