xref: /openbmc/qemu/tests/qemu-iotests/142.out (revision 9c4218e9)
1QA output created by 142
2Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=134217728
3Formatting 'TEST_DIR/t.IMGFMT.snap', fmt=IMGFMT size=134217728
4Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base
5
6=== Simple test for all cache modes ===
7
8Testing: -drive file=TEST_DIR/t.qcow2,cache=none
9QEMU X.Y.Z monitor - type 'help' for more information
10(qemu) qququiquit
11
12Testing: -drive file=TEST_DIR/t.qcow2,cache=directsync
13QEMU X.Y.Z monitor - type 'help' for more information
14(qemu) qququiquit
15
16Testing: -drive file=TEST_DIR/t.qcow2,cache=writeback
17QEMU X.Y.Z monitor - type 'help' for more information
18(qemu) qququiquit
19
20Testing: -drive file=TEST_DIR/t.qcow2,cache=writethrough
21QEMU X.Y.Z monitor - type 'help' for more information
22(qemu) qququiquit
23
24Testing: -drive file=TEST_DIR/t.qcow2,cache=unsafe
25QEMU X.Y.Z monitor - type 'help' for more information
26(qemu) qququiquit
27
28Testing: -drive file=TEST_DIR/t.qcow2,cache=invalid_value
29QEMU_PROG: -drive file=TEST_DIR/t.qcow2,cache=invalid_value: invalid cache option
30
31
32=== Check inheritance of cache modes ===
33
34
35--- Configure cache modes on the command line ---
36
37cache.direct=on on none0
38    Cache mode:       writeback, direct
39    Cache mode:       writeback, direct
40    Cache mode:       writeback, direct
41    Cache mode:       writeback, direct
42
43cache.direct=on on file
44    Cache mode:       writeback
45    Cache mode:       writeback, direct
46    Cache mode:       writeback
47    Cache mode:       writeback
48
49cache.direct=on on backing
50    Cache mode:       writeback
51    Cache mode:       writeback
52    Cache mode:       writeback, direct
53    Cache mode:       writeback, direct
54
55cache.direct=on on backing-file
56    Cache mode:       writeback
57    Cache mode:       writeback
58    Cache mode:       writeback
59    Cache mode:       writeback, direct
60
61
62cache.writeback=off on none0
63    Cache mode:       writethrough
64    Cache mode:       writeback
65    Cache mode:       writethrough
66    Cache mode:       writeback
67
68cache.writeback=off on file
69    Cache mode:       writeback
70    Cache mode:       writethrough
71    Cache mode:       writeback
72    Cache mode:       writeback
73
74cache.writeback=off on backing
75    Cache mode:       writeback
76    Cache mode:       writeback
77    Cache mode:       writethrough
78    Cache mode:       writeback
79
80cache.writeback=off on backing-file
81    Cache mode:       writeback
82    Cache mode:       writeback
83    Cache mode:       writeback
84    Cache mode:       writethrough
85
86
87cache.no-flush=on on none0
88    Cache mode:       writeback, ignore flushes
89    Cache mode:       writeback, ignore flushes
90    Cache mode:       writeback, ignore flushes
91    Cache mode:       writeback, ignore flushes
92
93cache.no-flush=on on file
94    Cache mode:       writeback
95    Cache mode:       writeback, ignore flushes
96    Cache mode:       writeback
97    Cache mode:       writeback
98
99cache.no-flush=on on backing
100    Cache mode:       writeback
101    Cache mode:       writeback
102    Cache mode:       writeback, ignore flushes
103    Cache mode:       writeback, ignore flushes
104
105cache.no-flush=on on backing-file
106    Cache mode:       writeback
107    Cache mode:       writeback
108    Cache mode:       writeback
109    Cache mode:       writeback, ignore flushes
110
111--- Cache modes after reopen (live snapshot) ---
112
113cache.direct=on on none0
114    Cache mode:       writeback, direct
115    Cache mode:       writeback, direct
116    Cache mode:       writeback, direct
117    Cache mode:       writeback, direct
118    Cache mode:       writeback, direct
119
120cache.direct=on on file
121    Cache mode:       writeback
122    Cache mode:       writeback
123    Cache mode:       writeback, direct
124    Cache mode:       writeback
125    Cache mode:       writeback
126
127cache.direct=on on backing
128    Cache mode:       writeback
129    Cache mode:       writeback
130    Cache mode:       writeback
131    Cache mode:       writeback, direct
132    Cache mode:       writeback, direct
133
134cache.direct=on on backing-file
135    Cache mode:       writeback
136    Cache mode:       writeback
137    Cache mode:       writeback
138    Cache mode:       writeback
139    Cache mode:       writeback, direct
140
141
142cache.writeback=off on none0
143    Cache mode:       writethrough
144    Cache mode:       writethrough
145    Cache mode:       writeback
146    Cache mode:       writethrough
147    Cache mode:       writeback
148
149cache.writeback=off on file
150    Cache mode:       writeback
151    Cache mode:       writeback
152    Cache mode:       writethrough
153    Cache mode:       writeback
154    Cache mode:       writeback
155
156cache.writeback=off on backing
157    Cache mode:       writeback
158    Cache mode:       writeback
159    Cache mode:       writeback
160    Cache mode:       writethrough
161    Cache mode:       writeback
162
163cache.writeback=off on backing-file
164    Cache mode:       writeback
165    Cache mode:       writeback
166    Cache mode:       writeback
167    Cache mode:       writeback
168    Cache mode:       writethrough
169
170
171cache.no-flush=on on none0
172    Cache mode:       writeback, ignore flushes
173    Cache mode:       writeback, ignore flushes
174    Cache mode:       writeback, ignore flushes
175    Cache mode:       writeback, ignore flushes
176    Cache mode:       writeback, ignore flushes
177
178cache.no-flush=on on file
179    Cache mode:       writeback
180    Cache mode:       writeback
181    Cache mode:       writeback, ignore flushes
182    Cache mode:       writeback
183    Cache mode:       writeback
184
185cache.no-flush=on on backing
186    Cache mode:       writeback
187    Cache mode:       writeback
188    Cache mode:       writeback
189    Cache mode:       writeback, ignore flushes
190    Cache mode:       writeback, ignore flushes
191
192cache.no-flush=on on backing-file
193    Cache mode:       writeback
194    Cache mode:       writeback
195    Cache mode:       writeback
196    Cache mode:       writeback
197    Cache mode:       writeback, ignore flushes
198
199--- Change cache modes with reopen (qemu-io command, flags) ---
200
201cache.direct=on on none0
202    Cache mode:       writeback, direct
203    Cache mode:       writeback, direct
204    Cache mode:       writeback, direct
205    Cache mode:       writeback, direct
206
207cache.direct=on on file
208    Cache mode:       writeback, direct
209    Cache mode:       writeback, direct
210    Cache mode:       writeback, direct
211    Cache mode:       writeback, direct
212
213cache.direct=on on backing
214    Cache mode:       writeback, direct
215    Cache mode:       writeback, direct
216    Cache mode:       writeback, direct
217    Cache mode:       writeback, direct
218
219cache.direct=on on backing-file
220    Cache mode:       writeback, direct
221    Cache mode:       writeback, direct
222    Cache mode:       writeback, direct
223    Cache mode:       writeback, direct
224
225
226cache.writeback=off on none0
227    Cache mode:       writeback, direct
228    Cache mode:       writeback, direct
229    Cache mode:       writeback, direct
230    Cache mode:       writeback, direct
231
232cache.writeback=off on file
233    Cache mode:       writeback, direct
234    Cache mode:       writethrough, direct
235    Cache mode:       writeback, direct
236    Cache mode:       writeback, direct
237
238cache.writeback=off on backing
239    Cache mode:       writeback, direct
240    Cache mode:       writeback, direct
241    Cache mode:       writethrough, direct
242    Cache mode:       writeback, direct
243
244cache.writeback=off on backing-file
245    Cache mode:       writeback, direct
246    Cache mode:       writeback, direct
247    Cache mode:       writeback, direct
248    Cache mode:       writethrough, direct
249
250
251cache.no-flush=on on none0
252    Cache mode:       writeback, direct
253    Cache mode:       writeback, direct
254    Cache mode:       writeback, direct
255    Cache mode:       writeback, direct
256
257cache.no-flush=on on file
258    Cache mode:       writeback, direct
259    Cache mode:       writeback, direct, ignore flushes
260    Cache mode:       writeback, direct
261    Cache mode:       writeback, direct
262
263cache.no-flush=on on backing
264    Cache mode:       writeback, direct
265    Cache mode:       writeback, direct
266    Cache mode:       writeback, direct, ignore flushes
267    Cache mode:       writeback, direct, ignore flushes
268
269cache.no-flush=on on backing-file
270    Cache mode:       writeback, direct
271    Cache mode:       writeback, direct
272    Cache mode:       writeback, direct
273    Cache mode:       writeback, direct, ignore flushes
274
275--- Change cache modes with reopen (qemu-io command, options) ---
276
277cache.direct=on on none0
278    Cache mode:       writeback, direct
279    Cache mode:       writeback, direct
280    Cache mode:       writeback, direct
281    Cache mode:       writeback, direct
282
283cache.direct=on on file
284    Cache mode:       writeback, direct
285    Cache mode:       writeback, direct
286    Cache mode:       writeback, direct
287    Cache mode:       writeback, direct
288
289cache.direct=on on backing
290    Cache mode:       writeback, direct
291    Cache mode:       writeback, direct
292    Cache mode:       writeback, direct
293    Cache mode:       writeback, direct
294
295cache.direct=on on backing-file
296    Cache mode:       writeback, direct
297    Cache mode:       writeback, direct
298    Cache mode:       writeback, direct
299    Cache mode:       writeback, direct
300
301
302cache.writeback=off on none0
303    Cache mode:       writethrough, direct
304    Cache mode:       writeback, direct
305    Cache mode:       writethrough, direct
306    Cache mode:       writeback, direct
307
308cache.writeback=off on file
309    Cache mode:       writeback, direct
310    Cache mode:       writethrough, direct
311    Cache mode:       writeback, direct
312    Cache mode:       writeback, direct
313
314cache.writeback=off on backing
315    Cache mode:       writeback, direct
316    Cache mode:       writeback, direct
317    Cache mode:       writethrough, direct
318    Cache mode:       writeback, direct
319
320cache.writeback=off on backing-file
321    Cache mode:       writeback, direct
322    Cache mode:       writeback, direct
323    Cache mode:       writeback, direct
324    Cache mode:       writethrough, direct
325
326
327cache.no-flush=on on none0
328    Cache mode:       writeback, direct, ignore flushes
329    Cache mode:       writeback, direct, ignore flushes
330    Cache mode:       writeback, direct, ignore flushes
331    Cache mode:       writeback, direct, ignore flushes
332
333cache.no-flush=on on file
334    Cache mode:       writeback, direct
335    Cache mode:       writeback, direct, ignore flushes
336    Cache mode:       writeback, direct
337    Cache mode:       writeback, direct
338
339cache.no-flush=on on backing
340    Cache mode:       writeback, direct
341    Cache mode:       writeback, direct
342    Cache mode:       writeback, direct, ignore flushes
343    Cache mode:       writeback, direct, ignore flushes
344
345cache.no-flush=on on backing-file
346    Cache mode:       writeback, direct
347    Cache mode:       writeback, direct
348    Cache mode:       writeback, direct
349    Cache mode:       writeback, direct, ignore flushes
350
351--- Change cache modes after snapshot ---
352
353cache.direct=on on none0
354    Cache mode:       writeback, direct
355    Cache mode:       writeback, direct
356    Cache mode:       writeback, direct
357    Cache mode:       writeback, direct
358    Cache mode:       writeback, direct
359
360cache.direct=on on file
361    Cache mode:       writeback, direct
362    Cache mode:       writeback
363    Cache mode:       writeback, direct
364    Cache mode:       writeback
365    Cache mode:       writeback
366
367cache.direct=on on backing
368    Cache mode:       writeback, direct
369    Cache mode:       writeback
370    Cache mode:       writeback
371    Cache mode:       writeback, direct
372    Cache mode:       writeback, direct
373
374cache.direct=on on backing-file
375    Cache mode:       writeback, direct
376    Cache mode:       writeback
377    Cache mode:       writeback
378    Cache mode:       writeback
379    Cache mode:       writeback, direct
380
381
382cache.writeback=off on none0
383    Cache mode:       writeback, direct
384    Cache mode:       writethrough
385    Cache mode:       writeback
386    Cache mode:       writethrough
387    Cache mode:       writeback
388
389cache.writeback=off on file
390    Cache mode:       writeback, direct
391    Cache mode:       writeback
392    Cache mode:       writethrough
393    Cache mode:       writeback
394    Cache mode:       writeback
395
396cache.writeback=off on backing
397    Cache mode:       writeback, direct
398    Cache mode:       writeback
399    Cache mode:       writeback
400    Cache mode:       writethrough
401    Cache mode:       writeback
402
403cache.writeback=off on backing-file
404    Cache mode:       writeback, direct
405    Cache mode:       writeback
406    Cache mode:       writeback
407    Cache mode:       writeback
408    Cache mode:       writethrough
409
410
411cache.no-flush=on on none0
412    Cache mode:       writeback, direct
413    Cache mode:       writeback, ignore flushes
414    Cache mode:       writeback, ignore flushes
415    Cache mode:       writeback, ignore flushes
416    Cache mode:       writeback, ignore flushes
417
418cache.no-flush=on on file
419    Cache mode:       writeback, direct
420    Cache mode:       writeback
421    Cache mode:       writeback, ignore flushes
422    Cache mode:       writeback
423    Cache mode:       writeback
424
425cache.no-flush=on on backing
426    Cache mode:       writeback, direct
427    Cache mode:       writeback
428    Cache mode:       writeback
429    Cache mode:       writeback, ignore flushes
430    Cache mode:       writeback, ignore flushes
431
432cache.no-flush=on on backing-file
433    Cache mode:       writeback, direct
434    Cache mode:       writeback
435    Cache mode:       writeback
436    Cache mode:       writeback
437    Cache mode:       writeback, ignore flushes
438
439--- Change cache mode in parent, child has explicit option in JSON ---
440
441    Cache mode:       writethrough, direct, ignore flushes
442    Cache mode:       writeback, direct, ignore flushes
443    Cache mode:       writethrough, ignore flushes
444
445=== Check that referenced BDSes don't inherit ===
446
447
448--- Configure cache modes on the command line ---
449
450cache.direct=on on blk
451    Cache mode:       writeback, direct
452    Cache mode:       writeback
453    Cache mode:       writeback
454    Cache mode:       writeback
455
456cache.direct=on on file
457    Cache mode:       writeback
458    Cache mode:       writeback, direct
459    Cache mode:       writeback
460    Cache mode:       writeback
461
462cache.direct=on on backing
463    Cache mode:       writeback
464    Cache mode:       writeback
465    Cache mode:       writeback, direct
466    Cache mode:       writeback
467
468cache.direct=on on backing-file
469    Cache mode:       writeback
470    Cache mode:       writeback
471    Cache mode:       writeback
472    Cache mode:       writeback, direct
473
474
475cache.writeback=off on blk
476    Cache mode:       writethrough
477    Cache mode:       writeback
478    Cache mode:       writeback
479    Cache mode:       writeback
480
481cache.writeback=off on file
482    Cache mode:       writeback
483    Cache mode:       writethrough
484    Cache mode:       writeback
485    Cache mode:       writeback
486
487cache.writeback=off on backing
488    Cache mode:       writeback
489    Cache mode:       writeback
490    Cache mode:       writethrough
491    Cache mode:       writeback
492
493cache.writeback=off on backing-file
494    Cache mode:       writeback
495    Cache mode:       writeback
496    Cache mode:       writeback
497    Cache mode:       writethrough
498
499
500cache.no-flush=on on blk
501    Cache mode:       writeback, ignore flushes
502    Cache mode:       writeback
503    Cache mode:       writeback
504    Cache mode:       writeback
505
506cache.no-flush=on on file
507    Cache mode:       writeback
508    Cache mode:       writeback, ignore flushes
509    Cache mode:       writeback
510    Cache mode:       writeback
511
512cache.no-flush=on on backing
513    Cache mode:       writeback
514    Cache mode:       writeback
515    Cache mode:       writeback, ignore flushes
516    Cache mode:       writeback
517
518cache.no-flush=on on backing-file
519    Cache mode:       writeback
520    Cache mode:       writeback
521    Cache mode:       writeback
522    Cache mode:       writeback, ignore flushes
523
524--- Cache modes after reopen (live snapshot) ---
525
526cache.direct=on on blk
527    Cache mode:       writeback, direct
528    Cache mode:       writeback, direct
529    Cache mode:       writeback
530    Cache mode:       writeback
531    Cache mode:       writeback
532
533cache.direct=on on file
534    Cache mode:       writeback
535    Cache mode:       writeback
536    Cache mode:       writeback, direct
537    Cache mode:       writeback
538    Cache mode:       writeback
539
540cache.direct=on on backing
541    Cache mode:       writeback
542    Cache mode:       writeback
543    Cache mode:       writeback
544    Cache mode:       writeback, direct
545    Cache mode:       writeback
546
547cache.direct=on on backing-file
548    Cache mode:       writeback
549    Cache mode:       writeback
550    Cache mode:       writeback
551    Cache mode:       writeback
552    Cache mode:       writeback, direct
553
554
555cache.writeback=off on blk
556    Cache mode:       writethrough
557    Cache mode:       writethrough
558    Cache mode:       writeback
559    Cache mode:       writeback
560    Cache mode:       writeback
561
562cache.writeback=off on file
563    Cache mode:       writeback
564    Cache mode:       writeback
565    Cache mode:       writethrough
566    Cache mode:       writeback
567    Cache mode:       writeback
568
569cache.writeback=off on backing
570    Cache mode:       writeback
571    Cache mode:       writeback
572    Cache mode:       writeback
573    Cache mode:       writethrough
574    Cache mode:       writeback
575
576cache.writeback=off on backing-file
577    Cache mode:       writeback
578    Cache mode:       writeback
579    Cache mode:       writeback
580    Cache mode:       writeback
581    Cache mode:       writethrough
582
583
584cache.no-flush=on on blk
585    Cache mode:       writeback, ignore flushes
586    Cache mode:       writeback, ignore flushes
587    Cache mode:       writeback
588    Cache mode:       writeback
589    Cache mode:       writeback
590
591cache.no-flush=on on file
592    Cache mode:       writeback
593    Cache mode:       writeback
594    Cache mode:       writeback, ignore flushes
595    Cache mode:       writeback
596    Cache mode:       writeback
597
598cache.no-flush=on on backing
599    Cache mode:       writeback
600    Cache mode:       writeback
601    Cache mode:       writeback
602    Cache mode:       writeback, ignore flushes
603    Cache mode:       writeback
604
605cache.no-flush=on on backing-file
606    Cache mode:       writeback
607    Cache mode:       writeback
608    Cache mode:       writeback
609    Cache mode:       writeback
610    Cache mode:       writeback, ignore flushes
611
612--- Change cache modes with reopen (qemu-io command, flags) ---
613
614cache.direct=on on blk
615    Cache mode:       writeback, direct
616    Cache mode:       writeback
617    Cache mode:       writeback
618    Cache mode:       writeback
619
620cache.direct=on on file
621    Cache mode:       writeback, direct
622    Cache mode:       writeback, direct
623    Cache mode:       writeback
624    Cache mode:       writeback
625
626cache.direct=on on backing
627    Cache mode:       writeback, direct
628    Cache mode:       writeback
629    Cache mode:       writeback, direct
630    Cache mode:       writeback
631
632cache.direct=on on backing-file
633    Cache mode:       writeback, direct
634    Cache mode:       writeback
635    Cache mode:       writeback
636    Cache mode:       writeback, direct
637
638
639cache.writeback=off on blk
640    Cache mode:       writeback, direct
641    Cache mode:       writeback
642    Cache mode:       writeback
643    Cache mode:       writeback
644
645cache.writeback=off on file
646    Cache mode:       writeback, direct
647    Cache mode:       writethrough
648    Cache mode:       writeback
649    Cache mode:       writeback
650
651cache.writeback=off on backing
652    Cache mode:       writeback, direct
653    Cache mode:       writeback
654    Cache mode:       writethrough
655    Cache mode:       writeback
656
657cache.writeback=off on backing-file
658    Cache mode:       writeback, direct
659    Cache mode:       writeback
660    Cache mode:       writeback
661    Cache mode:       writethrough
662
663
664cache.no-flush=on on blk
665    Cache mode:       writeback, direct
666    Cache mode:       writeback
667    Cache mode:       writeback
668    Cache mode:       writeback
669
670cache.no-flush=on on file
671    Cache mode:       writeback, direct
672    Cache mode:       writeback, ignore flushes
673    Cache mode:       writeback
674    Cache mode:       writeback
675
676cache.no-flush=on on backing
677    Cache mode:       writeback, direct
678    Cache mode:       writeback
679    Cache mode:       writeback, ignore flushes
680    Cache mode:       writeback
681
682cache.no-flush=on on backing-file
683    Cache mode:       writeback, direct
684    Cache mode:       writeback
685    Cache mode:       writeback
686    Cache mode:       writeback, ignore flushes
687
688=== Reopening children instead of the root ===
689
690
691--- Basic reopen ---
692
693cache.direct=on on none0
694    Cache mode:       writeback, direct
695    Cache mode:       writeback, direct
696    Cache mode:       writeback, direct
697    Cache mode:       writeback, direct
698
699cache.direct=on on file
700    Cache mode:       writeback
701    Cache mode:       writeback, direct
702    Cache mode:       writeback, direct
703    Cache mode:       writeback, direct
704
705cache.direct=on on backing
706    Cache mode:       writeback
707    Cache mode:       writeback
708    Cache mode:       writeback, direct
709    Cache mode:       writeback, direct
710
711cache.direct=on on backing-file
712    Cache mode:       writeback
713    Cache mode:       writeback
714    Cache mode:       writeback, direct
715    Cache mode:       writeback, direct
716
717
718cache.writeback=off on none0
719    Cache mode:       writethrough
720    Cache mode:       writeback
721    Cache mode:       writethrough, direct
722    Cache mode:       writeback, direct
723
724cache.writeback=off on file
725    Cache mode:       writeback
726    Cache mode:       writethrough
727    Cache mode:       writeback, direct
728    Cache mode:       writeback, direct
729
730cache.writeback=off on backing
731    Cache mode:       writeback
732    Cache mode:       writeback
733    Cache mode:       writethrough, direct
734    Cache mode:       writeback, direct
735
736cache.writeback=off on backing-file
737    Cache mode:       writeback
738    Cache mode:       writeback
739    Cache mode:       writeback, direct
740    Cache mode:       writethrough, direct
741
742
743cache.no-flush=on on none0
744    Cache mode:       writeback, ignore flushes
745    Cache mode:       writeback, ignore flushes
746    Cache mode:       writeback, direct, ignore flushes
747    Cache mode:       writeback, direct, ignore flushes
748
749cache.no-flush=on on file
750    Cache mode:       writeback
751    Cache mode:       writeback, ignore flushes
752    Cache mode:       writeback, direct
753    Cache mode:       writeback, direct
754
755cache.no-flush=on on backing
756    Cache mode:       writeback
757    Cache mode:       writeback
758    Cache mode:       writeback, direct, ignore flushes
759    Cache mode:       writeback, direct, ignore flushes
760
761cache.no-flush=on on backing-file
762    Cache mode:       writeback
763    Cache mode:       writeback
764    Cache mode:       writeback, direct
765    Cache mode:       writeback, direct, ignore flushes
766
767--- Change cache mode after reopening child ---
768
769    Cache mode:       writeback, direct
770    Cache mode:       writethrough
771    Cache mode:       writeback, direct
772    Cache mode:       writeback, ignore flushes
773*** done
774