blob: ae3fccb15fbee9bb25f636b48d3e01b16006f435 [file] [log] [blame]
Kevin Wolfa9b43392013-09-18 16:47:41 +02001QA output created by 067
Fam Zheng74864582014-12-09 15:38:03 +08002Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
Kevin Wolfa9b43392013-09-18 16:47:41 +02003
4=== -drive/-device and device_del ===
5
Bo Tu2711fd32015-07-03 15:28:47 +08006Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,if=none,id=disk -device virtio-blk,drive=disk,id=virtio0
Max Reitz2389eea2014-11-17 13:31:06 +01007{
8 QMP_VERSION
9}
10{
11 "return": {
12 }
13}
14{
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,
Max Reitz0709c5a2015-02-10 15:28:44 -050035 "refcount-bits": 16,
Max Reitz2389eea2014-11-17 13:31:06 +010036 "corrupt": false
37 }
38 },
39 "dirty-flag": false
40 },
41 "iops_wr": 0,
42 "ro": false,
Jeff Cody15489c72015-10-12 19:36:50 -040043 "node-name": "NODE_NAME",
Max Reitz2389eea2014-11-17 13:31:06 +010044 "backing_file_depth": 0,
45 "drv": "qcow2",
46 "iops": 0,
47 "bps_wr": 0,
Francesco Romanie2462112015-01-12 14:11:13 +010048 "write_threshold": 0,
Max Reitz2389eea2014-11-17 13:31:06 +010049 "encrypted": false,
50 "bps": 0,
51 "bps_rd": 0,
Kevin Wolf9e193c52014-05-22 13:28:45 +020052 "cache": {
53 "no-flush": false,
54 "direct": false,
55 "writeback": true
56 },
Max Reitz2389eea2014-11-17 13:31:06 +010057 "file": "TEST_DIR/t.qcow2",
58 "encryption_key_missing": false
59 },
60 "type": "unknown"
Max Reitz2389eea2014-11-17 13:31:06 +010061 }
62 ]
63}
64{
65 "return": {
66 }
67}
68{
69 "return": {
70 }
71}
72{
73 "timestamp": {
74 "seconds": TIMESTAMP,
75 "microseconds": TIMESTAMP
76 },
77 "event": "DEVICE_DELETED",
78 "data": {
79 "path": "/machine/peripheral/virtio0/virtio-backend"
80 }
81}
82{
83 "timestamp": {
84 "seconds": TIMESTAMP,
85 "microseconds": TIMESTAMP
86 },
87 "event": "DEVICE_DELETED",
88 "data": {
89 "device": "virtio0",
90 "path": "/machine/peripheral/virtio0"
91 }
92}
93{
94 "timestamp": {
95 "seconds": TIMESTAMP,
96 "microseconds": TIMESTAMP
97 },
98 "event": "RESET"
99}
100{
101 "return": [
Max Reitz2389eea2014-11-17 13:31:06 +0100102 ]
103}
104{
105 "return": {
106 }
107}
108{
109 "timestamp": {
110 "seconds": TIMESTAMP,
111 "microseconds": TIMESTAMP
112 },
113 "event": "SHUTDOWN"
114}
Kevin Wolfa9b43392013-09-18 16:47:41 +0200115
116
117=== -drive/device_add and device_del ===
118
119Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,if=none,id=disk
Max Reitz2389eea2014-11-17 13:31:06 +0100120{
121 QMP_VERSION
122}
123{
124 "return": {
125 }
126}
127{
128 "return": [
129 {
130 "device": "disk",
131 "locked": false,
132 "removable": true,
133 "inserted": {
134 "iops_rd": 0,
135 "detect_zeroes": "off",
136 "image": {
137 "virtual-size": 134217728,
138 "filename": "TEST_DIR/t.qcow2",
139 "cluster-size": 65536,
140 "format": "qcow2",
141 "actual-size": SIZE,
142 "format-specific": {
143 "type": "qcow2",
144 "data": {
145 "compat": "1.1",
146 "lazy-refcounts": false,
Max Reitz0709c5a2015-02-10 15:28:44 -0500147 "refcount-bits": 16,
Max Reitz2389eea2014-11-17 13:31:06 +0100148 "corrupt": false
149 }
150 },
151 "dirty-flag": false
152 },
153 "iops_wr": 0,
154 "ro": false,
Jeff Cody15489c72015-10-12 19:36:50 -0400155 "node-name": "NODE_NAME",
Max Reitz2389eea2014-11-17 13:31:06 +0100156 "backing_file_depth": 0,
157 "drv": "qcow2",
158 "iops": 0,
159 "bps_wr": 0,
Francesco Romanie2462112015-01-12 14:11:13 +0100160 "write_threshold": 0,
Max Reitz2389eea2014-11-17 13:31:06 +0100161 "encrypted": false,
162 "bps": 0,
163 "bps_rd": 0,
Kevin Wolf9e193c52014-05-22 13:28:45 +0200164 "cache": {
165 "no-flush": false,
166 "direct": false,
167 "writeback": true
168 },
Max Reitz2389eea2014-11-17 13:31:06 +0100169 "file": "TEST_DIR/t.qcow2",
170 "encryption_key_missing": false
171 },
Max Reitz2389eea2014-11-17 13:31:06 +0100172 "type": "unknown"
Max Reitz2389eea2014-11-17 13:31:06 +0100173 }
174 ]
175}
176{
177 "return": {
178 }
179}
180{
181 "return": {
182 }
183}
184{
185 "return": {
186 }
187}
188{
189 "timestamp": {
190 "seconds": TIMESTAMP,
191 "microseconds": TIMESTAMP
192 },
193 "event": "DEVICE_DELETED",
194 "data": {
195 "path": "/machine/peripheral/virtio0/virtio-backend"
196 }
197}
198{
199 "timestamp": {
200 "seconds": TIMESTAMP,
201 "microseconds": TIMESTAMP
202 },
203 "event": "DEVICE_DELETED",
204 "data": {
205 "device": "virtio0",
206 "path": "/machine/peripheral/virtio0"
207 }
208}
209{
210 "timestamp": {
211 "seconds": TIMESTAMP,
212 "microseconds": TIMESTAMP
213 },
214 "event": "RESET"
215}
216{
217 "return": [
Max Reitz2389eea2014-11-17 13:31:06 +0100218 ]
219}
220{
221 "return": {
222 }
223}
224{
225 "timestamp": {
226 "seconds": TIMESTAMP,
227 "microseconds": TIMESTAMP
228 },
229 "event": "SHUTDOWN"
230}
Kevin Wolfa9b43392013-09-18 16:47:41 +0200231
232
233=== drive_add/device_add and device_del ===
234
235Testing:
Max Reitz2389eea2014-11-17 13:31:06 +0100236{
237 QMP_VERSION
238}
239{
240 "return": {
241 }
242}
243{
244 "return": "OK\r\n"
245}
246{
247 "return": [
248 {
Max Reitz2389eea2014-11-17 13:31:06 +0100249 "device": "disk",
250 "locked": false,
251 "removable": true,
252 "inserted": {
253 "iops_rd": 0,
254 "detect_zeroes": "off",
255 "image": {
256 "virtual-size": 134217728,
257 "filename": "TEST_DIR/t.qcow2",
258 "cluster-size": 65536,
259 "format": "qcow2",
260 "actual-size": SIZE,
261 "format-specific": {
262 "type": "qcow2",
263 "data": {
264 "compat": "1.1",
265 "lazy-refcounts": false,
Max Reitz0709c5a2015-02-10 15:28:44 -0500266 "refcount-bits": 16,
Max Reitz2389eea2014-11-17 13:31:06 +0100267 "corrupt": false
268 }
269 },
270 "dirty-flag": false
271 },
272 "iops_wr": 0,
273 "ro": false,
Jeff Cody15489c72015-10-12 19:36:50 -0400274 "node-name": "NODE_NAME",
Max Reitz2389eea2014-11-17 13:31:06 +0100275 "backing_file_depth": 0,
276 "drv": "qcow2",
277 "iops": 0,
278 "bps_wr": 0,
Francesco Romanie2462112015-01-12 14:11:13 +0100279 "write_threshold": 0,
Max Reitz2389eea2014-11-17 13:31:06 +0100280 "encrypted": false,
281 "bps": 0,
282 "bps_rd": 0,
Kevin Wolf9e193c52014-05-22 13:28:45 +0200283 "cache": {
284 "no-flush": false,
285 "direct": false,
286 "writeback": true
287 },
Max Reitz2389eea2014-11-17 13:31:06 +0100288 "file": "TEST_DIR/t.qcow2",
289 "encryption_key_missing": false
290 },
Max Reitz2389eea2014-11-17 13:31:06 +0100291 "type": "unknown"
292 }
293 ]
294}
295{
296 "return": {
297 }
298}
299{
300 "return": {
301 }
302}
303{
304 "return": {
305 }
306}
307{
308 "timestamp": {
309 "seconds": TIMESTAMP,
310 "microseconds": TIMESTAMP
311 },
312 "event": "DEVICE_DELETED",
313 "data": {
314 "path": "/machine/peripheral/virtio0/virtio-backend"
315 }
316}
317{
318 "timestamp": {
319 "seconds": TIMESTAMP,
320 "microseconds": TIMESTAMP
321 },
322 "event": "DEVICE_DELETED",
323 "data": {
324 "device": "virtio0",
325 "path": "/machine/peripheral/virtio0"
326 }
327}
328{
329 "timestamp": {
330 "seconds": TIMESTAMP,
331 "microseconds": TIMESTAMP
332 },
333 "event": "RESET"
334}
335{
336 "return": [
Max Reitz2389eea2014-11-17 13:31:06 +0100337 ]
338}
339{
340 "return": {
341 }
342}
343{
344 "timestamp": {
345 "seconds": TIMESTAMP,
346 "microseconds": TIMESTAMP
347 },
348 "event": "SHUTDOWN"
349}
Kevin Wolfa9b43392013-09-18 16:47:41 +0200350
351
352=== blockdev_add/device_add and device_del ===
353
354Testing:
Max Reitz2389eea2014-11-17 13:31:06 +0100355{
356 QMP_VERSION
357}
358{
359 "return": {
360 }
361}
362{
363 "return": {
364 }
365}
366{
367 "return": [
368 {
Max Reitz2389eea2014-11-17 13:31:06 +0100369 "device": "disk",
370 "locked": false,
371 "removable": true,
372 "inserted": {
373 "iops_rd": 0,
374 "detect_zeroes": "off",
375 "image": {
376 "virtual-size": 134217728,
377 "filename": "TEST_DIR/t.qcow2",
378 "cluster-size": 65536,
379 "format": "qcow2",
380 "actual-size": SIZE,
381 "format-specific": {
382 "type": "qcow2",
383 "data": {
384 "compat": "1.1",
385 "lazy-refcounts": false,
Max Reitz0709c5a2015-02-10 15:28:44 -0500386 "refcount-bits": 16,
Max Reitz2389eea2014-11-17 13:31:06 +0100387 "corrupt": false
388 }
389 },
390 "dirty-flag": false
391 },
392 "iops_wr": 0,
393 "ro": false,
Jeff Cody15489c72015-10-12 19:36:50 -0400394 "node-name": "NODE_NAME",
Max Reitz2389eea2014-11-17 13:31:06 +0100395 "backing_file_depth": 0,
396 "drv": "qcow2",
397 "iops": 0,
398 "bps_wr": 0,
Francesco Romanie2462112015-01-12 14:11:13 +0100399 "write_threshold": 0,
Max Reitz2389eea2014-11-17 13:31:06 +0100400 "encrypted": false,
401 "bps": 0,
402 "bps_rd": 0,
Kevin Wolf9e193c52014-05-22 13:28:45 +0200403 "cache": {
404 "no-flush": false,
405 "direct": false,
406 "writeback": true
407 },
Max Reitz2389eea2014-11-17 13:31:06 +0100408 "file": "TEST_DIR/t.qcow2",
409 "encryption_key_missing": false
410 },
Max Reitz2389eea2014-11-17 13:31:06 +0100411 "type": "unknown"
412 }
413 ]
414}
415{
416 "return": {
417 }
418}
419{
420 "return": {
421 }
422}
423{
424 "return": {
425 }
426}
427{
428 "timestamp": {
429 "seconds": TIMESTAMP,
430 "microseconds": TIMESTAMP
431 },
432 "event": "DEVICE_DELETED",
433 "data": {
434 "path": "/machine/peripheral/virtio0/virtio-backend"
435 }
436}
437{
438 "timestamp": {
439 "seconds": TIMESTAMP,
440 "microseconds": TIMESTAMP
441 },
442 "event": "DEVICE_DELETED",
443 "data": {
444 "device": "virtio0",
445 "path": "/machine/peripheral/virtio0"
446 }
447}
448{
449 "timestamp": {
450 "seconds": TIMESTAMP,
451 "microseconds": TIMESTAMP
452 },
453 "event": "RESET"
454}
455{
456 "return": [
457 {
458 "io-status": "ok",
Max Reitz2389eea2014-11-17 13:31:06 +0100459 "device": "disk",
460 "locked": false,
461 "removable": true,
462 "inserted": {
463 "iops_rd": 0,
464 "detect_zeroes": "off",
465 "image": {
466 "virtual-size": 134217728,
467 "filename": "TEST_DIR/t.qcow2",
468 "cluster-size": 65536,
469 "format": "qcow2",
470 "actual-size": SIZE,
471 "format-specific": {
472 "type": "qcow2",
473 "data": {
474 "compat": "1.1",
475 "lazy-refcounts": false,
Max Reitz0709c5a2015-02-10 15:28:44 -0500476 "refcount-bits": 16,
Max Reitz2389eea2014-11-17 13:31:06 +0100477 "corrupt": false
478 }
479 },
480 "dirty-flag": false
481 },
482 "iops_wr": 0,
483 "ro": false,
Jeff Cody15489c72015-10-12 19:36:50 -0400484 "node-name": "NODE_NAME",
Max Reitz2389eea2014-11-17 13:31:06 +0100485 "backing_file_depth": 0,
486 "drv": "qcow2",
487 "iops": 0,
488 "bps_wr": 0,
Francesco Romanie2462112015-01-12 14:11:13 +0100489 "write_threshold": 0,
Max Reitz2389eea2014-11-17 13:31:06 +0100490 "encrypted": false,
491 "bps": 0,
492 "bps_rd": 0,
Kevin Wolf9e193c52014-05-22 13:28:45 +0200493 "cache": {
494 "no-flush": false,
495 "direct": false,
496 "writeback": true
497 },
Max Reitz2389eea2014-11-17 13:31:06 +0100498 "file": "TEST_DIR/t.qcow2",
499 "encryption_key_missing": false
500 },
Max Reitz2389eea2014-11-17 13:31:06 +0100501 "type": "unknown"
502 }
503 ]
504}
505{
506 "return": {
507 }
508}
509{
510 "timestamp": {
511 "seconds": TIMESTAMP,
512 "microseconds": TIMESTAMP
513 },
514 "event": "SHUTDOWN"
515}
Kevin Wolfa9b43392013-09-18 16:47:41 +0200516
517*** done