xref: /openbmc/qemu/tests/qemu-iotests/223.out (revision 4b9fa0b4)
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{"return": {}}
31{"error": {"class": "GenericError", "desc": "NBD server not running"}}
32{"return": {}}
33{"error": {"class": "GenericError", "desc": "NBD server already running"}}
34exports available: 0
35{"return": {}}
36{"error": {"class": "GenericError", "desc": "Cannot find device=nosuch nor node_name=nosuch"}}
37{"error": {"class": "GenericError", "desc": "NBD server already has export named 'n'"}}
38{"error": {"class": "GenericError", "desc": "Enabled bitmap 'b2' incompatible with readonly export"}}
39{"error": {"class": "GenericError", "desc": "Bitmap 'b3' is not found"}}
40{"return": {}}
41exports available: 2
42 export: 'n'
43  size:  4194304
44  flags: 0x58f ( readonly flush fua df multi cache )
45  min block: 1
46  opt block: 4096
47  max block: 33554432
48  available meta contexts: 2
49   base:allocation
50   qemu:dirty-bitmap:b
51 export: 'n2'
52  size:  4194304
53  flags: 0xced ( flush fua trim zeroes df cache fast-zero )
54  min block: 1
55  opt block: 4096
56  max block: 33554432
57  available meta contexts: 2
58   base:allocation
59   qemu:dirty-bitmap:b2
60
61=== Contrast normal status to large granularity dirty-bitmap ===
62
63read 512/512 bytes at offset 512
64512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
65read 524288/524288 bytes at offset 524288
66512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
67read 1048576/1048576 bytes at offset 1048576
681 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
69read 2097152/2097152 bytes at offset 2097152
702 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
71[{ "start": 0, "length": 4096, "depth": 0, "zero": false, "data": true, "offset": OFFSET},
72{ "start": 4096, "length": 1044480, "depth": 0, "zero": true, "data": false, "offset": OFFSET},
73{ "start": 1048576, "length": 3145728, "depth": 0, "zero": false, "data": true, "offset": OFFSET}]
74[{ "start": 0, "length": 65536, "depth": 0, "zero": false, "data": false},
75{ "start": 65536, "length": 2031616, "depth": 0, "zero": false, "data": true, "offset": OFFSET},
76{ "start": 2097152, "length": 2097152, "depth": 0, "zero": false, "data": false}]
77
78=== Contrast to small granularity dirty-bitmap ===
79
80[{ "start": 0, "length": 512, "depth": 0, "zero": false, "data": true, "offset": OFFSET},
81{ "start": 512, "length": 512, "depth": 0, "zero": false, "data": false},
82{ "start": 1024, "length": 2096128, "depth": 0, "zero": false, "data": true, "offset": OFFSET},
83{ "start": 2097152, "length": 2097152, "depth": 0, "zero": false, "data": false}]
84
85=== End qemu NBD server ===
86
87{"return": {}}
88{"return": {}}
89{"error": {"class": "GenericError", "desc": "Export 'n2' is not found"}}
90{"return": {}}
91{"error": {"class": "GenericError", "desc": "NBD server not running"}}
92{"return": {}}
93{"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
94
95=== Use qemu-nbd as server ===
96
97[{ "start": 0, "length": 65536, "depth": 0, "zero": false, "data": false},
98{ "start": 65536, "length": 2031616, "depth": 0, "zero": false, "data": true, "offset": OFFSET},
99{ "start": 2097152, "length": 2097152, "depth": 0, "zero": false, "data": false}]
100[{ "start": 0, "length": 512, "depth": 0, "zero": false, "data": true, "offset": OFFSET},
101{ "start": 512, "length": 512, "depth": 0, "zero": false, "data": false},
102{ "start": 1024, "length": 2096128, "depth": 0, "zero": false, "data": true, "offset": OFFSET},
103{ "start": 2097152, "length": 2097152, "depth": 0, "zero": false, "data": false}]
104*** done
105