cpu: Move CPUClass::get_paging_enabled to SysemuCPUOps
[qemu/ar7.git] / tests / qemu-iotests / 244.out
blob99f56ac18c48cb779135c0a8c7befd48c07f0821
1 QA output created by 244
3 === Create and open image with external data file ===
5 With data file name in the image:
6 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data
7 No errors were found on the image.
8 read 65536/65536 bytes at offset 0
9 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
10 read 65536/65536 bytes at offset 0
11 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
12 qemu-io: can't open device TEST_DIR/t.qcow2: Could not open 'inexistent': No such file or directory
13 no file open, try 'help open'
15 Data file required, but without data file name in the image:
16 qemu-io: can't open device TEST_DIR/t.qcow2: 'data-file' is required for this image
17 no file open, try 'help open'
18 read 65536/65536 bytes at offset 0
19 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
20 qemu-io: can't open device TEST_DIR/t.qcow2: Could not open 'inexistent': No such file or directory
21 no file open, try 'help open'
23 Setting data-file for an image with internal data:
24 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
25 qemu-io: can't open device TEST_DIR/t.qcow2: 'data-file' can only be set for images with an external data file
26 no file open, try 'help open'
27 qemu-io: can't open device TEST_DIR/t.qcow2: Could not open 'inexistent': No such file or directory
28 no file open, try 'help open'
30 === Conflicting features ===
32 Convert to compressed target with data file:
33 Formatting 'TEST_DIR/t.IMGFMT.src', fmt=IMGFMT size=67108864
34 wrote 1048576/1048576 bytes at offset 0
35 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
36 qemu-img: error while writing at byte 0: Operation not supported
38 Convert uncompressed, then write compressed data manually:
39 Images are identical.
40 write failed: Operation not supported
41 No errors were found on the image.
43 Take an internal snapshot:
44 qemu-img: Could not create snapshot 'test': -95 (Operation not supported)
45 No errors were found on the image.
47 === Standalone image with external data file (efficient) ===
49 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data
50 qcow2 file size before I/O: 196616
52 wrote 4194304/4194304 bytes at offset 1048576
53 4 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
54 discard 2097152/2097152 bytes at offset 2097152
55 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
56 wrote 3145728/3145728 bytes at offset 3145728
57 3 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
58 No errors were found on the image.
60 [{ "start": 0, "length": 1048576, "depth": 0, "zero": true, "data": false},
61 { "start": 1048576, "length": 1048576, "depth": 0, "zero": false, "data": true, "offset": 1048576},
62 { "start": 2097152, "length": 2097152, "depth": 0, "zero": true, "data": false},
63 { "start": 4194304, "length": 1048576, "depth": 0, "zero": true, "data": false, "offset": 4194304},
64 { "start": 5242880, "length": 61865984, "depth": 0, "zero": true, "data": false}]
66 read 1048576/1048576 bytes at offset 0
67 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
68 read 1048576/1048576 bytes at offset 1048576
69 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
70 read 4194304/4194304 bytes at offset 2097152
71 4 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
73 read 1048576/1048576 bytes at offset 0
74 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
75 read 1048576/1048576 bytes at offset 1048576
76 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
77 read 1048576/1048576 bytes at offset 4194304
78 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
79 read 1048576/1048576 bytes at offset 5242880
80 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
81 qcow2 file size after I/O: 327680
83 === Standalone image with external data file (valid raw) ===
85 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data data_file_raw=on
86 qcow2 file size before I/O: 327680
88 wrote 4194304/4194304 bytes at offset 1048576
89 4 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
90 discard 2097152/2097152 bytes at offset 2097152
91 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
92 wrote 3145728/3145728 bytes at offset 3145728
93 3 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
94 No errors were found on the image.
96 [{ "start": 0, "length": 2097152, "depth": 0, "zero": false, "data": true, "offset": 0},
97 { "start": 2097152, "length": 2097152, "depth": 0, "zero": true, "data": false},
98 { "start": 4194304, "length": 2097152, "depth": 0, "zero": true, "data": false, "offset": 4194304},
99 { "start": 6291456, "length": 60817408, "depth": 0, "zero": false, "data": true, "offset": 6291456}]
101 read 1048576/1048576 bytes at offset 0
102 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
103 read 1048576/1048576 bytes at offset 1048576
104 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
105 read 4194304/4194304 bytes at offset 2097152
106 4 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
108 read 1048576/1048576 bytes at offset 0
109 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
110 read 1048576/1048576 bytes at offset 1048576
111 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
112 read 3145728/3145728 bytes at offset 3145728
113 3 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
114 qcow2 file size after I/O: 327680
116 === bdrv_co_block_status test for file and offset=0 ===
118 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data
119 wrote 1048576/1048576 bytes at offset 0
120 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
121 read 1048576/1048576 bytes at offset 0
122 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
123 Offset          Length          Mapped to       File
124 0               0x100000        0               TEST_DIR/t.qcow2.data
125 [{ "start": 0, "length": 1048576, "depth": 0, "zero": false, "data": true, "offset": 0},
126 { "start": 1048576, "length": 66060288, "depth": 0, "zero": true, "data": false}]
128 === Copy offloading ===
130 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data
131 Images are identical.
132 Images are identical.
134 === Flushing should flush the data file ===
136 wrote 512/512 bytes at offset 0
137 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
139 Success: qemu-io failed, so the data file was flushed
141 === Preallocation with data-file-raw ===
143 --- Using a non-zeroed data file ---
144 wrote 1048576/1048576 bytes at offset 0
145 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
146 { "execute": "qmp_capabilities" }
147 {"return": {}}
148 { "execute": "blockdev-create",
149        "arguments": {
150            "job-id": "create",
151            "options": {
152                "driver": "IMGFMT",
153                "size": 1048576,
154                "file": "meta",
155                "data-file": "data",
156                "data-file-raw": true
157            } } }
158 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "create"}}
159 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "create"}}
160 {"return": {}}
161 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "create"}}
162 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "create"}}
163 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "create"}}
164 { "execute": "job-dismiss", "arguments": { "id": "create" } }
165 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "create"}}
166 {"return": {}}
168 Comparing pattern:
169 read 1048576/1048576 bytes at offset 0
170 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
171 read 1048576/1048576 bytes at offset 0
172 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
173 Images are identical.
175 --- Truncation (growing) ---
176 wrote 1048576/1048576 bytes at offset 1048576
177 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
178 Image resized.
180 Comparing pattern:
181 read 1048576/1048576 bytes at offset 0
182 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
183 read 1048576/1048576 bytes at offset 1048576
184 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
185 read 1048576/1048576 bytes at offset 0
186 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
187 read 1048576/1048576 bytes at offset 1048576
188 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
189 Images are identical.
191 --- Giving a backing file at runtime ---
192 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576 data_file=TEST_DIR/t.IMGFMT.data data_file_raw=on
193 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=1048576
194 wrote 1048576/1048576 bytes at offset 0
195 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
197 Comparing qcow2 image and raw data file:
198 Images are identical.
199 *** done