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