xref: /openbmc/qemu/tests/qemu-iotests/223.out (revision ae3c12a0)
1QA output created by 223
2
3=== Create partially sparse image, then add dirty bitmaps ===
4
5Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4194304
6wrote 2097152/2097152 bytes at offset 1048576
72 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
8Testing:
9QMP_VERSION
10{"return": {}}
11{"return": {}}
12{"return": {}}
13{"return": {}}
14{"return": {}}
15{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
16
17
18=== Write part of the file under active bitmap ===
19
20wrote 512/512 bytes at offset 512
21512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
22wrote 2097152/2097152 bytes at offset 2097152
232 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
24
25=== End dirty bitmaps, and start serving image over NBD ===
26
27{"return": {}}
28{"return": {}}
29{"return": {}}
30{"error": {"class": "GenericError", "desc": "NBD server not running"}}
31{"return": {}}
32{"error": {"class": "GenericError", "desc": "NBD server already running"}}
33exports available: 0
34{"return": {}}
35{"error": {"class": "GenericError", "desc": "Cannot find device=nosuch nor node_name=nosuch"}}
36{"error": {"class": "GenericError", "desc": "NBD server already has export named 'n'"}}
37{"error": {"class": "GenericError", "desc": "Enabled bitmap 'b2' incompatible with readonly export"}}
38{"error": {"class": "GenericError", "desc": "Bitmap 'b3' is not found"}}
39{"return": {}}
40exports available: 2
41 export: 'n'
42  size:  4194304
43  flags: 0x4ef ( readonly flush fua trim zeroes df cache )
44  min block: 1
45  opt block: 4096
46  max block: 33554432
47  available meta contexts: 2
48   base:allocation
49   qemu:dirty-bitmap:b
50 export: 'n2'
51  size:  4194304
52  flags: 0x4ed ( flush fua trim zeroes df cache )
53  min block: 1
54  opt block: 4096
55  max block: 33554432
56  available meta contexts: 2
57   base:allocation
58   qemu:dirty-bitmap:b2
59
60=== Contrast normal status to large granularity dirty-bitmap ===
61
62read 512/512 bytes at offset 512
63512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
64read 524288/524288 bytes at offset 524288
65512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
66read 1048576/1048576 bytes at offset 1048576
671 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
68read 2097152/2097152 bytes at offset 2097152
692 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
70[{ "start": 0, "length": 4096, "depth": 0, "zero": false, "data": true, "offset": OFFSET},
71{ "start": 4096, "length": 1044480, "depth": 0, "zero": true, "data": false, "offset": OFFSET},
72{ "start": 1048576, "length": 3145728, "depth": 0, "zero": false, "data": true, "offset": OFFSET}]
73[{ "start": 0, "length": 65536, "depth": 0, "zero": false, "data": false},
74{ "start": 65536, "length": 2031616, "depth": 0, "zero": false, "data": true, "offset": OFFSET},
75{ "start": 2097152, "length": 2097152, "depth": 0, "zero": false, "data": false}]
76
77=== Contrast to small granularity dirty-bitmap ===
78
79[{ "start": 0, "length": 512, "depth": 0, "zero": false, "data": true, "offset": OFFSET},
80{ "start": 512, "length": 512, "depth": 0, "zero": false, "data": false},
81{ "start": 1024, "length": 2096128, "depth": 0, "zero": false, "data": true, "offset": OFFSET},
82{ "start": 2097152, "length": 2097152, "depth": 0, "zero": false, "data": false}]
83
84=== End qemu NBD server ===
85
86{"return": {}}
87{"return": {}}
88{"error": {"class": "GenericError", "desc": "Export 'n2' is not found"}}
89{"return": {}}
90{"error": {"class": "GenericError", "desc": "NBD server not running"}}
91{"return": {}}
92{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
93
94=== Use qemu-nbd as server ===
95
96[{ "start": 0, "length": 65536, "depth": 0, "zero": false, "data": false},
97{ "start": 65536, "length": 2031616, "depth": 0, "zero": false, "data": true, "offset": OFFSET},
98{ "start": 2097152, "length": 2097152, "depth": 0, "zero": false, "data": false}]
99[{ "start": 0, "length": 512, "depth": 0, "zero": false, "data": true, "offset": OFFSET},
100{ "start": 512, "length": 512, "depth": 0, "zero": false, "data": false},
101{ "start": 1024, "length": 2096128, "depth": 0, "zero": false, "data": true, "offset": OFFSET},
102{ "start": 2097152, "length": 2097152, "depth": 0, "zero": false, "data": false}]
103*** done
104