tcg/optimize: Split out fold_xx_to_i
[qemu/ar7.git] / tests / qemu-iotests / 172.out
blob4cf4d536b46b6d3b880a62328fa1954956eee4cd
1 QA output created by 172
2 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=737280
3 Formatting 'TEST_DIR/t.IMGFMT.2', fmt=IMGFMT size=737280
4 Formatting 'TEST_DIR/t.IMGFMT.3', fmt=IMGFMT size=737280
7 === Default ===
9 Testing:
11           dev: isa-fdc, id ""
12             iobase = 1008 (0x3f0)
13             irq = 6 (0x6)
14             dma = 2 (0x2)
15             fdtypeA = "auto"
16             fdtypeB = "auto"
17             fallback = "288"
18             isa irq 6
19             bus: floppy-bus.0
20               type floppy-bus
21               dev: floppy, id ""
22                 unit = 0 (0x0)
23                 drive = "floppy0"
24                 backend_defaults = "auto"
25                 logical_block_size = 512 (512 B)
26                 physical_block_size = 512 (512 B)
27                 min_io_size = 0 (0 B)
28                 opt_io_size = 0 (0 B)
29                 discard_granularity = 4294967295 (4 GiB)
30                 write-cache = "auto"
31                 share-rw = false
32                 drive-type = "288"
35 === Using -fda/-fdb options ===
37 Testing: -fda TEST_DIR/t.qcow2
39           dev: isa-fdc, id ""
40             iobase = 1008 (0x3f0)
41             irq = 6 (0x6)
42             dma = 2 (0x2)
43             fdtypeA = "auto"
44             fdtypeB = "auto"
45             fallback = "288"
46             isa irq 6
47             bus: floppy-bus.0
48               type floppy-bus
49               dev: floppy, id ""
50                 unit = 0 (0x0)
51                 drive = "floppy0"
52                 backend_defaults = "auto"
53                 logical_block_size = 512 (512 B)
54                 physical_block_size = 512 (512 B)
55                 min_io_size = 0 (0 B)
56                 opt_io_size = 0 (0 B)
57                 discard_granularity = 4294967295 (4 GiB)
58                 write-cache = "auto"
59                 share-rw = false
60                 drive-type = "144"
61 floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
62     Attached to:      /machine/unattached/device[N]
63     Removable device: not locked, tray closed
64     Cache mode:       writeback
66 ide1-cd0: [not inserted]
67     Attached to:      /machine/unattached/device[N]
68     Removable device: not locked, tray closed
70 sd0: [not inserted]
71     Removable device: not locked, tray closed
72 (qemu) quit
75 Testing: -fdb TEST_DIR/t.qcow2
77           dev: isa-fdc, id ""
78             iobase = 1008 (0x3f0)
79             irq = 6 (0x6)
80             dma = 2 (0x2)
81             fdtypeA = "auto"
82             fdtypeB = "auto"
83             fallback = "288"
84             isa irq 6
85             bus: floppy-bus.0
86               type floppy-bus
87               dev: floppy, id ""
88                 unit = 1 (0x1)
89                 drive = "floppy1"
90                 backend_defaults = "auto"
91                 logical_block_size = 512 (512 B)
92                 physical_block_size = 512 (512 B)
93                 min_io_size = 0 (0 B)
94                 opt_io_size = 0 (0 B)
95                 discard_granularity = 4294967295 (4 GiB)
96                 write-cache = "auto"
97                 share-rw = false
98                 drive-type = "144"
99               dev: floppy, id ""
100                 unit = 0 (0x0)
101                 drive = "floppy0"
102                 backend_defaults = "auto"
103                 logical_block_size = 512 (512 B)
104                 physical_block_size = 512 (512 B)
105                 min_io_size = 0 (0 B)
106                 opt_io_size = 0 (0 B)
107                 discard_granularity = 4294967295 (4 GiB)
108                 write-cache = "auto"
109                 share-rw = false
110                 drive-type = "288"
111 floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
112     Attached to:      /machine/unattached/device[N]
113     Removable device: not locked, tray closed
114     Cache mode:       writeback
116 ide1-cd0: [not inserted]
117     Attached to:      /machine/unattached/device[N]
118     Removable device: not locked, tray closed
120 floppy0: [not inserted]
121     Attached to:      /machine/unattached/device[N]
122     Removable device: not locked, tray closed
124 sd0: [not inserted]
125     Removable device: not locked, tray closed
126 (qemu) quit
129 Testing: -fda TEST_DIR/t.qcow2 -fdb TEST_DIR/t.qcow2.2
131           dev: isa-fdc, id ""
132             iobase = 1008 (0x3f0)
133             irq = 6 (0x6)
134             dma = 2 (0x2)
135             fdtypeA = "auto"
136             fdtypeB = "auto"
137             fallback = "288"
138             isa irq 6
139             bus: floppy-bus.0
140               type floppy-bus
141               dev: floppy, id ""
142                 unit = 1 (0x1)
143                 drive = "floppy1"
144                 backend_defaults = "auto"
145                 logical_block_size = 512 (512 B)
146                 physical_block_size = 512 (512 B)
147                 min_io_size = 0 (0 B)
148                 opt_io_size = 0 (0 B)
149                 discard_granularity = 4294967295 (4 GiB)
150                 write-cache = "auto"
151                 share-rw = false
152                 drive-type = "144"
153               dev: floppy, id ""
154                 unit = 0 (0x0)
155                 drive = "floppy0"
156                 backend_defaults = "auto"
157                 logical_block_size = 512 (512 B)
158                 physical_block_size = 512 (512 B)
159                 min_io_size = 0 (0 B)
160                 opt_io_size = 0 (0 B)
161                 discard_granularity = 4294967295 (4 GiB)
162                 write-cache = "auto"
163                 share-rw = false
164                 drive-type = "144"
165 floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
166     Attached to:      /machine/unattached/device[N]
167     Removable device: not locked, tray closed
168     Cache mode:       writeback
170 floppy1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
171     Attached to:      /machine/unattached/device[N]
172     Removable device: not locked, tray closed
173     Cache mode:       writeback
175 ide1-cd0: [not inserted]
176     Attached to:      /machine/unattached/device[N]
177     Removable device: not locked, tray closed
179 sd0: [not inserted]
180     Removable device: not locked, tray closed
181 (qemu) quit
184 Testing: -fdb 
186           dev: isa-fdc, id ""
187             iobase = 1008 (0x3f0)
188             irq = 6 (0x6)
189             dma = 2 (0x2)
190             fdtypeA = "auto"
191             fdtypeB = "auto"
192             fallback = "288"
193             isa irq 6
194             bus: floppy-bus.0
195               type floppy-bus
196               dev: floppy, id ""
197                 unit = 1 (0x1)
198                 drive = "floppy1"
199                 backend_defaults = "auto"
200                 logical_block_size = 512 (512 B)
201                 physical_block_size = 512 (512 B)
202                 min_io_size = 0 (0 B)
203                 opt_io_size = 0 (0 B)
204                 discard_granularity = 4294967295 (4 GiB)
205                 write-cache = "auto"
206                 share-rw = false
207                 drive-type = "288"
208               dev: floppy, id ""
209                 unit = 0 (0x0)
210                 drive = "floppy0"
211                 backend_defaults = "auto"
212                 logical_block_size = 512 (512 B)
213                 physical_block_size = 512 (512 B)
214                 min_io_size = 0 (0 B)
215                 opt_io_size = 0 (0 B)
216                 discard_granularity = 4294967295 (4 GiB)
217                 write-cache = "auto"
218                 share-rw = false
219                 drive-type = "288"
222 === Using -drive options ===
224 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2
226           dev: isa-fdc, id ""
227             iobase = 1008 (0x3f0)
228             irq = 6 (0x6)
229             dma = 2 (0x2)
230             fdtypeA = "auto"
231             fdtypeB = "auto"
232             fallback = "288"
233             isa irq 6
234             bus: floppy-bus.0
235               type floppy-bus
236               dev: floppy, id ""
237                 unit = 0 (0x0)
238                 drive = "floppy0"
239                 backend_defaults = "auto"
240                 logical_block_size = 512 (512 B)
241                 physical_block_size = 512 (512 B)
242                 min_io_size = 0 (0 B)
243                 opt_io_size = 0 (0 B)
244                 discard_granularity = 4294967295 (4 GiB)
245                 write-cache = "auto"
246                 share-rw = false
247                 drive-type = "144"
248 floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
249     Attached to:      /machine/unattached/device[N]
250     Removable device: not locked, tray closed
251     Cache mode:       writeback
253 ide1-cd0: [not inserted]
254     Attached to:      /machine/unattached/device[N]
255     Removable device: not locked, tray closed
257 sd0: [not inserted]
258     Removable device: not locked, tray closed
259 (qemu) quit
262 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2,index=1
264           dev: isa-fdc, id ""
265             iobase = 1008 (0x3f0)
266             irq = 6 (0x6)
267             dma = 2 (0x2)
268             fdtypeA = "auto"
269             fdtypeB = "auto"
270             fallback = "288"
271             isa irq 6
272             bus: floppy-bus.0
273               type floppy-bus
274               dev: floppy, id ""
275                 unit = 1 (0x1)
276                 drive = "floppy1"
277                 backend_defaults = "auto"
278                 logical_block_size = 512 (512 B)
279                 physical_block_size = 512 (512 B)
280                 min_io_size = 0 (0 B)
281                 opt_io_size = 0 (0 B)
282                 discard_granularity = 4294967295 (4 GiB)
283                 write-cache = "auto"
284                 share-rw = false
285                 drive-type = "144"
286               dev: floppy, id ""
287                 unit = 0 (0x0)
288                 drive = "floppy0"
289                 backend_defaults = "auto"
290                 logical_block_size = 512 (512 B)
291                 physical_block_size = 512 (512 B)
292                 min_io_size = 0 (0 B)
293                 opt_io_size = 0 (0 B)
294                 discard_granularity = 4294967295 (4 GiB)
295                 write-cache = "auto"
296                 share-rw = false
297                 drive-type = "288"
298 floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
299     Attached to:      /machine/unattached/device[N]
300     Removable device: not locked, tray closed
301     Cache mode:       writeback
303 ide1-cd0: [not inserted]
304     Attached to:      /machine/unattached/device[N]
305     Removable device: not locked, tray closed
307 floppy0: [not inserted]
308     Attached to:      /machine/unattached/device[N]
309     Removable device: not locked, tray closed
311 sd0: [not inserted]
312     Removable device: not locked, tray closed
313 (qemu) quit
316 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=floppy,file=TEST_DIR/t.qcow2.2,index=1
318           dev: isa-fdc, id ""
319             iobase = 1008 (0x3f0)
320             irq = 6 (0x6)
321             dma = 2 (0x2)
322             fdtypeA = "auto"
323             fdtypeB = "auto"
324             fallback = "288"
325             isa irq 6
326             bus: floppy-bus.0
327               type floppy-bus
328               dev: floppy, id ""
329                 unit = 1 (0x1)
330                 drive = "floppy1"
331                 backend_defaults = "auto"
332                 logical_block_size = 512 (512 B)
333                 physical_block_size = 512 (512 B)
334                 min_io_size = 0 (0 B)
335                 opt_io_size = 0 (0 B)
336                 discard_granularity = 4294967295 (4 GiB)
337                 write-cache = "auto"
338                 share-rw = false
339                 drive-type = "144"
340               dev: floppy, id ""
341                 unit = 0 (0x0)
342                 drive = "floppy0"
343                 backend_defaults = "auto"
344                 logical_block_size = 512 (512 B)
345                 physical_block_size = 512 (512 B)
346                 min_io_size = 0 (0 B)
347                 opt_io_size = 0 (0 B)
348                 discard_granularity = 4294967295 (4 GiB)
349                 write-cache = "auto"
350                 share-rw = false
351                 drive-type = "144"
352 floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
353     Attached to:      /machine/unattached/device[N]
354     Removable device: not locked, tray closed
355     Cache mode:       writeback
357 floppy1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
358     Attached to:      /machine/unattached/device[N]
359     Removable device: not locked, tray closed
360     Cache mode:       writeback
362 ide1-cd0: [not inserted]
363     Attached to:      /machine/unattached/device[N]
364     Removable device: not locked, tray closed
366 sd0: [not inserted]
367     Removable device: not locked, tray closed
368 (qemu) quit
372 === Using -drive if=none and -device ===
374 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0
376           dev: isa-fdc, id ""
377             iobase = 1008 (0x3f0)
378             irq = 6 (0x6)
379             dma = 2 (0x2)
380             fdtypeA = "auto"
381             fdtypeB = "auto"
382             fallback = "288"
383             isa irq 6
384             bus: floppy-bus.0
385               type floppy-bus
386               dev: floppy, id ""
387                 unit = 0 (0x0)
388                 drive = "none0"
389                 backend_defaults = "auto"
390                 logical_block_size = 512 (512 B)
391                 physical_block_size = 512 (512 B)
392                 min_io_size = 0 (0 B)
393                 opt_io_size = 0 (0 B)
394                 discard_granularity = 4294967295 (4 GiB)
395                 write-cache = "auto"
396                 share-rw = false
397                 drive-type = "144"
398 none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
399     Attached to:      /machine/peripheral-anon/device[N]
400     Removable device: not locked, tray closed
401     Cache mode:       writeback
403 ide1-cd0: [not inserted]
404     Attached to:      /machine/unattached/device[N]
405     Removable device: not locked, tray closed
407 sd0: [not inserted]
408     Removable device: not locked, tray closed
409 (qemu) quit
412 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,unit=1
414           dev: isa-fdc, id ""
415             iobase = 1008 (0x3f0)
416             irq = 6 (0x6)
417             dma = 2 (0x2)
418             fdtypeA = "auto"
419             fdtypeB = "auto"
420             fallback = "288"
421             isa irq 6
422             bus: floppy-bus.0
423               type floppy-bus
424               dev: floppy, id ""
425                 unit = 1 (0x1)
426                 drive = "none0"
427                 backend_defaults = "auto"
428                 logical_block_size = 512 (512 B)
429                 physical_block_size = 512 (512 B)
430                 min_io_size = 0 (0 B)
431                 opt_io_size = 0 (0 B)
432                 discard_granularity = 4294967295 (4 GiB)
433                 write-cache = "auto"
434                 share-rw = false
435                 drive-type = "144"
436 none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
437     Attached to:      /machine/peripheral-anon/device[N]
438     Removable device: not locked, tray closed
439     Cache mode:       writeback
441 ide1-cd0: [not inserted]
442     Attached to:      /machine/unattached/device[N]
443     Removable device: not locked, tray closed
445 sd0: [not inserted]
446     Removable device: not locked, tray closed
447 (qemu) quit
450 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0 -device floppy,drive=none1,unit=1
452           dev: isa-fdc, id ""
453             iobase = 1008 (0x3f0)
454             irq = 6 (0x6)
455             dma = 2 (0x2)
456             fdtypeA = "auto"
457             fdtypeB = "auto"
458             fallback = "288"
459             isa irq 6
460             bus: floppy-bus.0
461               type floppy-bus
462               dev: floppy, id ""
463                 unit = 1 (0x1)
464                 drive = "none1"
465                 backend_defaults = "auto"
466                 logical_block_size = 512 (512 B)
467                 physical_block_size = 512 (512 B)
468                 min_io_size = 0 (0 B)
469                 opt_io_size = 0 (0 B)
470                 discard_granularity = 4294967295 (4 GiB)
471                 write-cache = "auto"
472                 share-rw = false
473                 drive-type = "144"
474               dev: floppy, id ""
475                 unit = 0 (0x0)
476                 drive = "none0"
477                 backend_defaults = "auto"
478                 logical_block_size = 512 (512 B)
479                 physical_block_size = 512 (512 B)
480                 min_io_size = 0 (0 B)
481                 opt_io_size = 0 (0 B)
482                 discard_granularity = 4294967295 (4 GiB)
483                 write-cache = "auto"
484                 share-rw = false
485                 drive-type = "144"
486 none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
487     Attached to:      /machine/peripheral-anon/device[N]
488     Removable device: not locked, tray closed
489     Cache mode:       writeback
491 none1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
492     Attached to:      /machine/peripheral-anon/device[N]
493     Removable device: not locked, tray closed
494     Cache mode:       writeback
496 ide1-cd0: [not inserted]
497     Attached to:      /machine/unattached/device[N]
498     Removable device: not locked, tray closed
500 sd0: [not inserted]
501     Removable device: not locked, tray closed
502 (qemu) quit
506 === Mixing -fdX and -global ===
508 Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global floppy.drive=none0
509 QEMU_PROG: -global floppy.drive=... conflicts with drive=floppy0
512 === Mixing -fdX and -device ===
514 Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0
516           dev: isa-fdc, id ""
517             iobase = 1008 (0x3f0)
518             irq = 6 (0x6)
519             dma = 2 (0x2)
520             fdtypeA = "auto"
521             fdtypeB = "auto"
522             fallback = "288"
523             isa irq 6
524             bus: floppy-bus.0
525               type floppy-bus
526               dev: floppy, id ""
527                 unit = 1 (0x1)
528                 drive = "none0"
529                 backend_defaults = "auto"
530                 logical_block_size = 512 (512 B)
531                 physical_block_size = 512 (512 B)
532                 min_io_size = 0 (0 B)
533                 opt_io_size = 0 (0 B)
534                 discard_granularity = 4294967295 (4 GiB)
535                 write-cache = "auto"
536                 share-rw = false
537                 drive-type = "144"
538               dev: floppy, id ""
539                 unit = 0 (0x0)
540                 drive = "floppy0"
541                 backend_defaults = "auto"
542                 logical_block_size = 512 (512 B)
543                 physical_block_size = 512 (512 B)
544                 min_io_size = 0 (0 B)
545                 opt_io_size = 0 (0 B)
546                 discard_granularity = 4294967295 (4 GiB)
547                 write-cache = "auto"
548                 share-rw = false
549                 drive-type = "144"
550 floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
551     Attached to:      /machine/unattached/device[N]
552     Removable device: not locked, tray closed
553     Cache mode:       writeback
555 none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
556     Attached to:      /machine/peripheral-anon/device[N]
557     Removable device: not locked, tray closed
558     Cache mode:       writeback
560 ide1-cd0: [not inserted]
561     Attached to:      /machine/unattached/device[N]
562     Removable device: not locked, tray closed
564 sd0: [not inserted]
565     Removable device: not locked, tray closed
566 (qemu) quit
569 Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
571           dev: isa-fdc, id ""
572             iobase = 1008 (0x3f0)
573             irq = 6 (0x6)
574             dma = 2 (0x2)
575             fdtypeA = "auto"
576             fdtypeB = "auto"
577             fallback = "288"
578             isa irq 6
579             bus: floppy-bus.0
580               type floppy-bus
581               dev: floppy, id ""
582                 unit = 1 (0x1)
583                 drive = "none0"
584                 backend_defaults = "auto"
585                 logical_block_size = 512 (512 B)
586                 physical_block_size = 512 (512 B)
587                 min_io_size = 0 (0 B)
588                 opt_io_size = 0 (0 B)
589                 discard_granularity = 4294967295 (4 GiB)
590                 write-cache = "auto"
591                 share-rw = false
592                 drive-type = "144"
593               dev: floppy, id ""
594                 unit = 0 (0x0)
595                 drive = "floppy0"
596                 backend_defaults = "auto"
597                 logical_block_size = 512 (512 B)
598                 physical_block_size = 512 (512 B)
599                 min_io_size = 0 (0 B)
600                 opt_io_size = 0 (0 B)
601                 discard_granularity = 4294967295 (4 GiB)
602                 write-cache = "auto"
603                 share-rw = false
604                 drive-type = "144"
605 floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
606     Attached to:      /machine/unattached/device[N]
607     Removable device: not locked, tray closed
608     Cache mode:       writeback
610 none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
611     Attached to:      /machine/peripheral-anon/device[N]
612     Removable device: not locked, tray closed
613     Cache mode:       writeback
615 ide1-cd0: [not inserted]
616     Attached to:      /machine/unattached/device[N]
617     Removable device: not locked, tray closed
619 sd0: [not inserted]
620     Removable device: not locked, tray closed
621 (qemu) quit
624 Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0
626           dev: isa-fdc, id ""
627             iobase = 1008 (0x3f0)
628             irq = 6 (0x6)
629             dma = 2 (0x2)
630             fdtypeA = "auto"
631             fdtypeB = "auto"
632             fallback = "288"
633             isa irq 6
634             bus: floppy-bus.0
635               type floppy-bus
636               dev: floppy, id ""
637                 unit = 0 (0x0)
638                 drive = "none0"
639                 backend_defaults = "auto"
640                 logical_block_size = 512 (512 B)
641                 physical_block_size = 512 (512 B)
642                 min_io_size = 0 (0 B)
643                 opt_io_size = 0 (0 B)
644                 discard_granularity = 4294967295 (4 GiB)
645                 write-cache = "auto"
646                 share-rw = false
647                 drive-type = "144"
648               dev: floppy, id ""
649                 unit = 1 (0x1)
650                 drive = "floppy1"
651                 backend_defaults = "auto"
652                 logical_block_size = 512 (512 B)
653                 physical_block_size = 512 (512 B)
654                 min_io_size = 0 (0 B)
655                 opt_io_size = 0 (0 B)
656                 discard_granularity = 4294967295 (4 GiB)
657                 write-cache = "auto"
658                 share-rw = false
659                 drive-type = "144"
660 floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
661     Attached to:      /machine/unattached/device[N]
662     Removable device: not locked, tray closed
663     Cache mode:       writeback
665 none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
666     Attached to:      /machine/peripheral-anon/device[N]
667     Removable device: not locked, tray closed
668     Cache mode:       writeback
670 ide1-cd0: [not inserted]
671     Attached to:      /machine/unattached/device[N]
672     Removable device: not locked, tray closed
674 sd0: [not inserted]
675     Removable device: not locked, tray closed
676 (qemu) quit
679 Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=0
681           dev: isa-fdc, id ""
682             iobase = 1008 (0x3f0)
683             irq = 6 (0x6)
684             dma = 2 (0x2)
685             fdtypeA = "auto"
686             fdtypeB = "auto"
687             fallback = "288"
688             isa irq 6
689             bus: floppy-bus.0
690               type floppy-bus
691               dev: floppy, id ""
692                 unit = 0 (0x0)
693                 drive = "none0"
694                 backend_defaults = "auto"
695                 logical_block_size = 512 (512 B)
696                 physical_block_size = 512 (512 B)
697                 min_io_size = 0 (0 B)
698                 opt_io_size = 0 (0 B)
699                 discard_granularity = 4294967295 (4 GiB)
700                 write-cache = "auto"
701                 share-rw = false
702                 drive-type = "144"
703               dev: floppy, id ""
704                 unit = 1 (0x1)
705                 drive = "floppy1"
706                 backend_defaults = "auto"
707                 logical_block_size = 512 (512 B)
708                 physical_block_size = 512 (512 B)
709                 min_io_size = 0 (0 B)
710                 opt_io_size = 0 (0 B)
711                 discard_granularity = 4294967295 (4 GiB)
712                 write-cache = "auto"
713                 share-rw = false
714                 drive-type = "144"
715 floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
716     Attached to:      /machine/unattached/device[N]
717     Removable device: not locked, tray closed
718     Cache mode:       writeback
720 none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
721     Attached to:      /machine/peripheral-anon/device[N]
722     Removable device: not locked, tray closed
723     Cache mode:       writeback
725 ide1-cd0: [not inserted]
726     Attached to:      /machine/unattached/device[N]
727     Removable device: not locked, tray closed
729 sd0: [not inserted]
730     Removable device: not locked, tray closed
731 (qemu) quit
734 Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=0
735 QEMU_PROG: -device floppy,drive=none0,unit=0: Floppy unit 0 is in use
737 Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
738 QEMU_PROG: -device floppy,drive=none0,unit=1: Floppy unit 1 is in use
741 === Mixing -drive and -device ===
743 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0
745           dev: isa-fdc, id ""
746             iobase = 1008 (0x3f0)
747             irq = 6 (0x6)
748             dma = 2 (0x2)
749             fdtypeA = "auto"
750             fdtypeB = "auto"
751             fallback = "288"
752             isa irq 6
753             bus: floppy-bus.0
754               type floppy-bus
755               dev: floppy, id ""
756                 unit = 1 (0x1)
757                 drive = "none0"
758                 backend_defaults = "auto"
759                 logical_block_size = 512 (512 B)
760                 physical_block_size = 512 (512 B)
761                 min_io_size = 0 (0 B)
762                 opt_io_size = 0 (0 B)
763                 discard_granularity = 4294967295 (4 GiB)
764                 write-cache = "auto"
765                 share-rw = false
766                 drive-type = "144"
767               dev: floppy, id ""
768                 unit = 0 (0x0)
769                 drive = "floppy0"
770                 backend_defaults = "auto"
771                 logical_block_size = 512 (512 B)
772                 physical_block_size = 512 (512 B)
773                 min_io_size = 0 (0 B)
774                 opt_io_size = 0 (0 B)
775                 discard_granularity = 4294967295 (4 GiB)
776                 write-cache = "auto"
777                 share-rw = false
778                 drive-type = "144"
779 floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
780     Attached to:      /machine/unattached/device[N]
781     Removable device: not locked, tray closed
782     Cache mode:       writeback
784 none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
785     Attached to:      /machine/peripheral-anon/device[N]
786     Removable device: not locked, tray closed
787     Cache mode:       writeback
789 ide1-cd0: [not inserted]
790     Attached to:      /machine/unattached/device[N]
791     Removable device: not locked, tray closed
793 sd0: [not inserted]
794     Removable device: not locked, tray closed
795 (qemu) quit
798 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
800           dev: isa-fdc, id ""
801             iobase = 1008 (0x3f0)
802             irq = 6 (0x6)
803             dma = 2 (0x2)
804             fdtypeA = "auto"
805             fdtypeB = "auto"
806             fallback = "288"
807             isa irq 6
808             bus: floppy-bus.0
809               type floppy-bus
810               dev: floppy, id ""
811                 unit = 1 (0x1)
812                 drive = "none0"
813                 backend_defaults = "auto"
814                 logical_block_size = 512 (512 B)
815                 physical_block_size = 512 (512 B)
816                 min_io_size = 0 (0 B)
817                 opt_io_size = 0 (0 B)
818                 discard_granularity = 4294967295 (4 GiB)
819                 write-cache = "auto"
820                 share-rw = false
821                 drive-type = "144"
822               dev: floppy, id ""
823                 unit = 0 (0x0)
824                 drive = "floppy0"
825                 backend_defaults = "auto"
826                 logical_block_size = 512 (512 B)
827                 physical_block_size = 512 (512 B)
828                 min_io_size = 0 (0 B)
829                 opt_io_size = 0 (0 B)
830                 discard_granularity = 4294967295 (4 GiB)
831                 write-cache = "auto"
832                 share-rw = false
833                 drive-type = "144"
834 floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
835     Attached to:      /machine/unattached/device[N]
836     Removable device: not locked, tray closed
837     Cache mode:       writeback
839 none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
840     Attached to:      /machine/peripheral-anon/device[N]
841     Removable device: not locked, tray closed
842     Cache mode:       writeback
844 ide1-cd0: [not inserted]
845     Attached to:      /machine/unattached/device[N]
846     Removable device: not locked, tray closed
848 sd0: [not inserted]
849     Removable device: not locked, tray closed
850 (qemu) quit
853 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=0
854 QEMU_PROG: -device floppy,drive=none0,unit=0: Floppy unit 0 is in use
857 === Mixing -global and -device ===
859 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -global floppy.drive=none0 -device floppy,unit=0
861           dev: isa-fdc, id ""
862             iobase = 1008 (0x3f0)
863             irq = 6 (0x6)
864             dma = 2 (0x2)
865             fdtypeA = "auto"
866             fdtypeB = "auto"
867             fallback = "288"
868             isa irq 6
869             bus: floppy-bus.0
870               type floppy-bus
871               dev: floppy, id ""
872                 unit = 0 (0x0)
873                 drive = "none0"
874                 backend_defaults = "auto"
875                 logical_block_size = 512 (512 B)
876                 physical_block_size = 512 (512 B)
877                 min_io_size = 0 (0 B)
878                 opt_io_size = 0 (0 B)
879                 discard_granularity = 4294967295 (4 GiB)
880                 write-cache = "auto"
881                 share-rw = false
882                 drive-type = "144"
883 none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
884     Attached to:      /machine/peripheral-anon/device[N]
885     Removable device: not locked, tray closed
886     Cache mode:       writeback
888 ide1-cd0: [not inserted]
889     Attached to:      /machine/unattached/device[N]
890     Removable device: not locked, tray closed
892 sd0: [not inserted]
893     Removable device: not locked, tray closed
894 (qemu) quit
897 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global floppy.drive=none0 -device floppy,drive=none1,unit=0
898 QEMU_PROG: -device floppy,drive=none1,unit=0: -global floppy.drive=... conflicts with drive=none1
901 === Attempt to use drive twice ===
903 Testing: -drive if=none -device floppy,drive=none0 -device floppy -device floppy,drive=none0
904 QEMU_PROG: -device floppy,drive=none0: Drive 'none0' is already in use by another device
906 Testing: -drive if=none -global floppy.drive=none0 -device floppy -device floppy
907 QEMU_PROG: -device floppy: can't apply global floppy.drive=none0: Drive 'none0' is already in use by another device
909 Testing: -fda  -device floppy,drive=floppy0
910 QEMU_PROG: -device floppy,drive=floppy0: Drive 'floppy0' is already in use because it has been automatically connected to another device (did you need 'if=none' in the drive options?)
912 Testing: -fda  -global floppy.drive=floppy0
913 QEMU_PROG: -global floppy.drive=... conflicts with drive=floppy0
915 Testing: -device floppy,drive=floppy0
916 QEMU_PROG: -device floppy,drive=floppy0: Property 'floppy.drive' can't find value 'floppy0'
919 === Too many floppy drives ===
921 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -drive if=none,file=TEST_DIR/t.qcow2.3 -device floppy,drive=none0 -device floppy,drive=none1
922 QEMU_PROG: -device floppy,drive=none1: Can't create floppy unit 2, bus supports only 2 units
925 === Creating an empty drive with anonymous BB ===
927 Testing: -device floppy
929           dev: isa-fdc, id ""
930             iobase = 1008 (0x3f0)
931             irq = 6 (0x6)
932             dma = 2 (0x2)
933             fdtypeA = "auto"
934             fdtypeB = "auto"
935             fallback = "288"
936             isa irq 6
937             bus: floppy-bus.0
938               type floppy-bus
939               dev: floppy, id ""
940                 unit = 0 (0x0)
941                 drive = ""
942                 backend_defaults = "auto"
943                 logical_block_size = 512 (512 B)
944                 physical_block_size = 512 (512 B)
945                 min_io_size = 0 (0 B)
946                 opt_io_size = 0 (0 B)
947                 discard_granularity = 4294967295 (4 GiB)
948                 write-cache = "auto"
949                 share-rw = false
950                 drive-type = "288"
952 Testing: -device floppy,drive-type=120
954           dev: isa-fdc, id ""
955             iobase = 1008 (0x3f0)
956             irq = 6 (0x6)
957             dma = 2 (0x2)
958             fdtypeA = "auto"
959             fdtypeB = "auto"
960             fallback = "288"
961             isa irq 6
962             bus: floppy-bus.0
963               type floppy-bus
964               dev: floppy, id ""
965                 unit = 0 (0x0)
966                 drive = ""
967                 backend_defaults = "auto"
968                 logical_block_size = 512 (512 B)
969                 physical_block_size = 512 (512 B)
970                 min_io_size = 0 (0 B)
971                 opt_io_size = 0 (0 B)
972                 discard_granularity = 4294967295 (4 GiB)
973                 write-cache = "auto"
974                 share-rw = false
975                 drive-type = "120"
977 Testing: -device floppy,drive-type=144
979           dev: isa-fdc, id ""
980             iobase = 1008 (0x3f0)
981             irq = 6 (0x6)
982             dma = 2 (0x2)
983             fdtypeA = "auto"
984             fdtypeB = "auto"
985             fallback = "288"
986             isa irq 6
987             bus: floppy-bus.0
988               type floppy-bus
989               dev: floppy, id ""
990                 unit = 0 (0x0)
991                 drive = ""
992                 backend_defaults = "auto"
993                 logical_block_size = 512 (512 B)
994                 physical_block_size = 512 (512 B)
995                 min_io_size = 0 (0 B)
996                 opt_io_size = 0 (0 B)
997                 discard_granularity = 4294967295 (4 GiB)
998                 write-cache = "auto"
999                 share-rw = false
1000                 drive-type = "144"
1002 Testing: -device floppy,drive-type=288
1004           dev: isa-fdc, id ""
1005             iobase = 1008 (0x3f0)
1006             irq = 6 (0x6)
1007             dma = 2 (0x2)
1008             fdtypeA = "auto"
1009             fdtypeB = "auto"
1010             fallback = "288"
1011             isa irq 6
1012             bus: floppy-bus.0
1013               type floppy-bus
1014               dev: floppy, id ""
1015                 unit = 0 (0x0)
1016                 drive = ""
1017                 backend_defaults = "auto"
1018                 logical_block_size = 512 (512 B)
1019                 physical_block_size = 512 (512 B)
1020                 min_io_size = 0 (0 B)
1021                 opt_io_size = 0 (0 B)
1022                 discard_granularity = 4294967295 (4 GiB)
1023                 write-cache = "auto"
1024                 share-rw = false
1025                 drive-type = "288"
1028 === Try passing different drive size with image ===
1030 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,drive-type=120
1032           dev: isa-fdc, id ""
1033             iobase = 1008 (0x3f0)
1034             irq = 6 (0x6)
1035             dma = 2 (0x2)
1036             fdtypeA = "auto"
1037             fdtypeB = "auto"
1038             fallback = "288"
1039             isa irq 6
1040             bus: floppy-bus.0
1041               type floppy-bus
1042               dev: floppy, id ""
1043                 unit = 0 (0x0)
1044                 drive = "none0"
1045                 backend_defaults = "auto"
1046                 logical_block_size = 512 (512 B)
1047                 physical_block_size = 512 (512 B)
1048                 min_io_size = 0 (0 B)
1049                 opt_io_size = 0 (0 B)
1050                 discard_granularity = 4294967295 (4 GiB)
1051                 write-cache = "auto"
1052                 share-rw = false
1053                 drive-type = "120"
1054 none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1055     Attached to:      /machine/peripheral-anon/device[N]
1056     Removable device: not locked, tray closed
1057     Cache mode:       writeback
1059 ide1-cd0: [not inserted]
1060     Attached to:      /machine/unattached/device[N]
1061     Removable device: not locked, tray closed
1063 sd0: [not inserted]
1064     Removable device: not locked, tray closed
1065 (qemu) quit
1068 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,drive-type=288
1070           dev: isa-fdc, id ""
1071             iobase = 1008 (0x3f0)
1072             irq = 6 (0x6)
1073             dma = 2 (0x2)
1074             fdtypeA = "auto"
1075             fdtypeB = "auto"
1076             fallback = "288"
1077             isa irq 6
1078             bus: floppy-bus.0
1079               type floppy-bus
1080               dev: floppy, id ""
1081                 unit = 0 (0x0)
1082                 drive = "none0"
1083                 backend_defaults = "auto"
1084                 logical_block_size = 512 (512 B)
1085                 physical_block_size = 512 (512 B)
1086                 min_io_size = 0 (0 B)
1087                 opt_io_size = 0 (0 B)
1088                 discard_granularity = 4294967295 (4 GiB)
1089                 write-cache = "auto"
1090                 share-rw = false
1091                 drive-type = "288"
1092 none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1093     Attached to:      /machine/peripheral-anon/device[N]
1094     Removable device: not locked, tray closed
1095     Cache mode:       writeback
1097 ide1-cd0: [not inserted]
1098     Attached to:      /machine/unattached/device[N]
1099     Removable device: not locked, tray closed
1101 sd0: [not inserted]
1102     Removable device: not locked, tray closed
1103 (qemu) quit
1107 === Try passing different block sizes ===
1109 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,logical_block_size=512
1111           dev: isa-fdc, id ""
1112             iobase = 1008 (0x3f0)
1113             irq = 6 (0x6)
1114             dma = 2 (0x2)
1115             fdtypeA = "auto"
1116             fdtypeB = "auto"
1117             fallback = "288"
1118             isa irq 6
1119             bus: floppy-bus.0
1120               type floppy-bus
1121               dev: floppy, id ""
1122                 unit = 0 (0x0)
1123                 drive = "none0"
1124                 backend_defaults = "auto"
1125                 logical_block_size = 512 (512 B)
1126                 physical_block_size = 512 (512 B)
1127                 min_io_size = 0 (0 B)
1128                 opt_io_size = 0 (0 B)
1129                 discard_granularity = 4294967295 (4 GiB)
1130                 write-cache = "auto"
1131                 share-rw = false
1132                 drive-type = "144"
1133 none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1134     Attached to:      /machine/peripheral-anon/device[N]
1135     Removable device: not locked, tray closed
1136     Cache mode:       writeback
1138 ide1-cd0: [not inserted]
1139     Attached to:      /machine/unattached/device[N]
1140     Removable device: not locked, tray closed
1142 sd0: [not inserted]
1143     Removable device: not locked, tray closed
1144 (qemu) quit
1147 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,physical_block_size=512
1149           dev: isa-fdc, id ""
1150             iobase = 1008 (0x3f0)
1151             irq = 6 (0x6)
1152             dma = 2 (0x2)
1153             fdtypeA = "auto"
1154             fdtypeB = "auto"
1155             fallback = "288"
1156             isa irq 6
1157             bus: floppy-bus.0
1158               type floppy-bus
1159               dev: floppy, id ""
1160                 unit = 0 (0x0)
1161                 drive = "none0"
1162                 backend_defaults = "auto"
1163                 logical_block_size = 512 (512 B)
1164                 physical_block_size = 512 (512 B)
1165                 min_io_size = 0 (0 B)
1166                 opt_io_size = 0 (0 B)
1167                 discard_granularity = 4294967295 (4 GiB)
1168                 write-cache = "auto"
1169                 share-rw = false
1170                 drive-type = "144"
1171 none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1172     Attached to:      /machine/peripheral-anon/device[N]
1173     Removable device: not locked, tray closed
1174     Cache mode:       writeback
1176 ide1-cd0: [not inserted]
1177     Attached to:      /machine/unattached/device[N]
1178     Removable device: not locked, tray closed
1180 sd0: [not inserted]
1181     Removable device: not locked, tray closed
1182 (qemu) quit
1185 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,logical_block_size=4096
1186 QEMU_PROG: -device floppy,drive=none0,logical_block_size=4096: logical_block_size > physical_block_size not supported
1188 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,physical_block_size=1024
1189 QEMU_PROG: -device floppy,drive=none0,physical_block_size=1024: Physical and logical block size must be 512 for floppy
1192 === Writethrough caching ===
1193     Cache mode:       writeback
1194     Cache mode:       writeback
1195     Cache mode:       writethrough
1196 *** done