hw/arm/sbsa-ref: Remove unnecessary check for secure_sysmem == NULL
[qemu/ar7.git] / tests / qemu-iotests / 051.pc.out
blob2d811c166cd482dac8136d21508ed216695282b4
1 QA output created by 051
2 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
3 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base
5 === Unknown option ===
7 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0
8 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'
10 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0
11 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'
13 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0
14 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'
16 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0
17 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt'
20 === Unknown protocol option ===
22 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=
23 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn't support the option 'unknown_opt'
25 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on
26 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on: Block protocol 'file' doesn't support the option 'unknown_opt'
28 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234
29 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234: Block protocol 'file' doesn't support the option 'unknown_opt'
31 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo
32 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo: Block protocol 'file' doesn't support the option 'unknown_opt'
35 === Invalid format ===
37 Testing: -drive file=TEST_DIR/t.qcow2,format=foo
38 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=foo: Unknown driver 'foo'
40 Testing: -drive file=TEST_DIR/t.qcow2,driver=foo
41 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=foo: Unknown driver 'foo'
43 Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2
44 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2: Cannot specify both 'driver' and 'format'
46 Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2
47 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2: Cannot specify both 'driver' and 'format'
50 === Node names ===
52 Testing: -drive file=TEST_DIR/t.qcow2,node-name=x123456789012345678901234567890
53 QEMU X.Y.Z monitor - type 'help' for more information
54 (qemu) quit
56 Testing: -drive file=TEST_DIR/t.qcow2,node-name=x1234567890123456789012345678901
57 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=x1234567890123456789012345678901: Node name too long
59 Testing: -drive file=TEST_DIR/t.qcow2,node-name=All-Types.of_all0wed_chars
60 QEMU X.Y.Z monitor - type 'help' for more information
61 (qemu) quit
63 Testing: -drive file=TEST_DIR/t.qcow2,node-name=123foo
64 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=123foo: Invalid node name
66 Testing: -drive file=TEST_DIR/t.qcow2,node-name=_foo
67 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=_foo: Invalid node name
69 Testing: -drive file=TEST_DIR/t.qcow2,node-name=foo#12
70 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,node-name=foo#12: Invalid node name
73 === Device without drive ===
75 Testing: -device VIRTIO_SCSI -device scsi-hd
76 QEMU X.Y.Z monitor - type 'help' for more information
77 (qemu) QEMU_PROG: -device scsi-hd: drive property not set
80 === Overriding backing file ===
82 Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig,if=none,id=drive0 -nodefaults
83 QEMU X.Y.Z monitor - type 'help' for more information
84 (qemu) info block
85 drive0 (NODE_NAME): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2.orig"}}, "driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2"}} (qcow2)
86     Removable device: not locked, tray closed
87     Cache mode:       writeback
88     Backing file:     TEST_DIR/t.qcow2.orig (chain depth: 1)
89 (qemu) quit
91 Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig
92 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files
94 Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig
95 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files
97 Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig
98 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files
101 === Enable and disable lazy refcounting on the command line, plus some invalid values ===
103 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
104 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
105 QEMU X.Y.Z monitor - type 'help' for more information
106 (qemu) quit
108 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
109 QEMU X.Y.Z monitor - type 'help' for more information
110 (qemu) quit
112 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=
113 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: Parameter 'lazy-refcounts' expects 'on' or 'off'
115 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42
116 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: Parameter 'lazy-refcounts' expects 'on' or 'off'
118 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo
119 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo: Parameter 'lazy-refcounts' expects 'on' or 'off'
122 === With version 2 images enabling lazy refcounts must fail ===
124 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
125 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on
126 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on: Lazy refcounts require a qcow2 image with at least qemu 1.1 compatibility level
128 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off
129 QEMU X.Y.Z monitor - type 'help' for more information
130 (qemu) quit
133 === No medium ===
135 Testing: -drive if=floppy
136 QEMU X.Y.Z monitor - type 'help' for more information
137 (qemu) quit
139 Testing: -drive if=ide,media=cdrom
140 QEMU X.Y.Z monitor - type 'help' for more information
141 (qemu) quit
143 Testing: -drive if=ide
144 QEMU X.Y.Z monitor - type 'help' for more information
145 (qemu) QEMU_PROG: Initialization of device ide-hd failed: Device needs media, but drive is empty
147 Testing: -drive if=virtio
148 QEMU X.Y.Z monitor - type 'help' for more information
149 (qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
151 Testing: -drive if=none,id=disk -device ide-cd,drive=disk
152 QEMU X.Y.Z monitor - type 'help' for more information
153 (qemu) quit
155 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
156 QEMU X.Y.Z monitor - type 'help' for more information
157 (qemu) quit
159 Testing: -drive if=none,id=disk -device ide-drive,drive=disk
160 QEMU X.Y.Z monitor - type 'help' for more information
161 (qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
163 Testing: -drive if=none,id=disk -device ide-hd,drive=disk
164 QEMU X.Y.Z monitor - type 'help' for more information
165 (qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
167 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
168 QEMU X.Y.Z monitor - type 'help' for more information
169 (qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
171 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
172 QEMU X.Y.Z monitor - type 'help' for more information
173 (qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
176 === Attach to node in non-default iothread ===
178 Testing: -drive file=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -device scsi-hd,bus=virtio-scsi0.0,drive=disk,share-rw=on -device ide-hd,drive=disk,share-rw=on
179 QEMU X.Y.Z monitor - type 'help' for more information
180 (qemu) QEMU_PROG: -device ide-hd,drive=disk,share-rw=on: Cannot change iothread of active block backend
182 Testing: -drive file=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -device scsi-hd,bus=virtio-scsi0.0,drive=disk,share-rw=on -device virtio-blk-pci,drive=disk,share-rw=on
183 QEMU X.Y.Z monitor - type 'help' for more information
184 (qemu) QEMU_PROG: -device virtio-blk-pci,drive=disk,share-rw=on: Cannot change iothread of active block backend
186 Testing: -drive file=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -device scsi-hd,bus=virtio-scsi0.0,drive=disk,share-rw=on -device lsi53c895a,id=lsi0 -device scsi-hd,bus=lsi0.0,drive=disk,share-rw=on
187 QEMU X.Y.Z monitor - type 'help' for more information
188 (qemu) QEMU_PROG: -device scsi-hd,bus=lsi0.0,drive=disk,share-rw=on: HBA does not support iothreads
190 Testing: -drive file=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -device scsi-hd,bus=virtio-scsi0.0,drive=disk,share-rw=on -device virtio-scsi,id=virtio-scsi1 -device scsi-hd,bus=virtio-scsi1.0,drive=disk,share-rw=on
191 QEMU X.Y.Z monitor - type 'help' for more information
192 (qemu) QEMU_PROG: -device scsi-hd,bus=virtio-scsi1.0,drive=disk,share-rw=on: Cannot change iothread of active block backend
194 Testing: -drive file=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -device scsi-hd,bus=virtio-scsi0.0,drive=disk,share-rw=on -device virtio-blk-pci,drive=disk,iohtread=iothread0,share-rw=on
195 QEMU X.Y.Z monitor - type 'help' for more information
196 (qemu) QEMU_PROG: -device virtio-blk-pci,drive=disk,iohtread=iothread0,share-rw=on: Cannot change iothread of active block backend
198 Testing: -drive file=TEST_DIR/t.qcow2,if=none,node-name=disk -object iothread,id=thread0 -device virtio-scsi,iothread=thread0,id=virtio-scsi0 -device scsi-hd,bus=virtio-scsi0.0,drive=disk,share-rw=on -device virtio-scsi,id=virtio-scsi1,iothread=thread0 -device scsi-hd,bus=virtio-scsi1.0,drive=disk,share-rw=on
199 QEMU X.Y.Z monitor - type 'help' for more information
200 (qemu) quit
203 === Read-only ===
205 Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
206 QEMU X.Y.Z monitor - type 'help' for more information
207 (qemu) quit
209 Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
210 QEMU X.Y.Z monitor - type 'help' for more information
211 (qemu) quit
213 Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
214 QEMU X.Y.Z monitor - type 'help' for more information
215 (qemu) QEMU_PROG: Initialization of device ide-hd failed: Block node is read-only
217 Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
218 QEMU X.Y.Z monitor - type 'help' for more information
219 (qemu) quit
221 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
222 QEMU X.Y.Z monitor - type 'help' for more information
223 (qemu) quit
225 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
226 QEMU X.Y.Z monitor - type 'help' for more information
227 (qemu) quit
229 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
230 QEMU X.Y.Z monitor - type 'help' for more information
231 (qemu) QEMU_PROG: -device ide-drive,drive=disk: Block node is read-only
233 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
234 QEMU X.Y.Z monitor - type 'help' for more information
235 (qemu) QEMU_PROG: -device ide-hd,drive=disk: Block node is read-only
237 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
238 QEMU X.Y.Z monitor - type 'help' for more information
239 (qemu) quit
241 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
242 QEMU X.Y.Z monitor - type 'help' for more information
243 (qemu) quit
246 === Cache modes ===
248 Testing: -drive driver=null-co,cache=none
249 QEMU X.Y.Z monitor - type 'help' for more information
250 (qemu) quit
252 Testing: -drive driver=null-co,cache=directsync
253 QEMU X.Y.Z monitor - type 'help' for more information
254 (qemu) quit
256 Testing: -drive driver=null-co,cache=writeback
257 QEMU X.Y.Z monitor - type 'help' for more information
258 (qemu) quit
260 Testing: -drive driver=null-co,cache=writethrough
261 QEMU X.Y.Z monitor - type 'help' for more information
262 (qemu) quit
264 Testing: -drive driver=null-co,cache=unsafe
265 QEMU X.Y.Z monitor - type 'help' for more information
266 (qemu) quit
268 Testing: -drive driver=null-co,cache=invalid_value
269 QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option
271 Testing: -drive file=TEST_DIR/t.qcow2,cache=writeback,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults
272 QEMU X.Y.Z monitor - type 'help' for more information
273 (qemu) info block
274 drive0 (NODE_NAME): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2.base"}}, "driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2"}} (qcow2)
275     Removable device: not locked, tray closed
276     Cache mode:       writeback
277     Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
278 (qemu) info block file
280 file: TEST_DIR/t.qcow2 (file)
281     Cache mode:       writeback
282 (qemu) info block backing
283 backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
284     Cache mode:       writeback, ignore flushes
285 (qemu) info block backing-file
287 backing-file: TEST_DIR/t.qcow2.base (file, read-only)
288     Cache mode:       writeback, ignore flushes
289 (qemu) quit
291 Testing: -drive file=TEST_DIR/t.qcow2,cache=writethrough,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults
292 QEMU X.Y.Z monitor - type 'help' for more information
293 (qemu) info block
294 drive0 (NODE_NAME): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2.base"}}, "driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2"}} (qcow2)
295     Removable device: not locked, tray closed
296     Cache mode:       writethrough
297     Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
298 (qemu) info block file
300 file: TEST_DIR/t.qcow2 (file)
301     Cache mode:       writeback
302 (qemu) info block backing
303 backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
304     Cache mode:       writeback, ignore flushes
305 (qemu) info block backing-file
307 backing-file: TEST_DIR/t.qcow2.base (file, read-only)
308     Cache mode:       writeback, ignore flushes
309 (qemu) quit
311 Testing: -drive file=TEST_DIR/t.qcow2,cache=unsafe,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults
312 QEMU X.Y.Z monitor - type 'help' for more information
313 (qemu) info block
314 drive0 (NODE_NAME): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2.base"}}, "driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2"}} (qcow2)
315     Removable device: not locked, tray closed
316     Cache mode:       writeback, ignore flushes
317     Backing file:     TEST_DIR/t.qcow2.base (chain depth: 1)
318 (qemu) info block file
320 file: TEST_DIR/t.qcow2 (file)
321     Cache mode:       writeback, ignore flushes
322 (qemu) info block backing
323 backing: TEST_DIR/t.qcow2.base (qcow2, read-only)
324     Cache mode:       writeback, ignore flushes
325 (qemu) info block backing-file
327 backing-file: TEST_DIR/t.qcow2.base (file, read-only)
328     Cache mode:       writeback, ignore flushes
329 (qemu) quit
331 Testing: -drive file=TEST_DIR/t.qcow2,cache=invalid_value,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults
332 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,cache=invalid_value,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0: invalid cache option
335 === Specifying the protocol layer ===
337 Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
338 QEMU X.Y.Z monitor - type 'help' for more information
339 (qemu) quit
342 === Leaving out required options ===
344 Testing: -drive driver=file
345 QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name
347 Testing: -drive driver=file,filename=
348 QEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name
350 Testing: -drive driver=nbd
351 QEMU_PROG: -drive driver=nbd: NBD server address missing
353 Testing: -drive driver=raw
354 QEMU_PROG: -drive driver=raw: A block device must be specified for "file"
356 Testing: -drive file.driver=file
357 QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name
359 Testing: -drive file.driver=nbd
360 QEMU_PROG: -drive file.driver=nbd: NBD server address missing
362 Testing: -drive file.driver=raw
363 QEMU_PROG: -drive file.driver=raw: A block device must be specified for "file"
365 Testing: -drive foo=bar
366 QEMU_PROG: -drive foo=bar: Must specify either driver or file
369 === Specifying both an option and its legacy alias ===
371 Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678
372 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678: 'throttling.iops-total' and its alias 'iops' can't be used at the same time
374 Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678
375 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678: 'throttling.iops-read' and its alias 'iops_rd' can't be used at the same time
377 Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678
378 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678: 'throttling.iops-write' and its alias 'iops_wr' can't be used at the same time
380 Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678
381 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678: 'throttling.bps-total' and its alias 'bps' can't be used at the same time
383 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678
384 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678: 'throttling.bps-read' and its alias 'bps_rd' can't be used at the same time
386 Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678
387 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678: 'throttling.bps-write' and its alias 'bps_wr' can't be used at the same time
389 Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678
390 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678: 'throttling.iops-total-max' and its alias 'iops_max' can't be used at the same time
392 Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678
393 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678: 'throttling.iops-read-max' and its alias 'iops_rd_max' can't be used at the same time
395 Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678
396 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678: 'throttling.iops-write-max' and its alias 'iops_wr_max' can't be used at the same time
398 Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678
399 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678: 'throttling.bps-total-max' and its alias 'bps_max' can't be used at the same time
401 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678
402 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678: 'throttling.bps-read-max' and its alias 'bps_rd_max' can't be used at the same time
404 Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678
405 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678: 'throttling.bps-write-max' and its alias 'bps_wr_max' can't be used at the same time
407 Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678
408 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678: 'throttling.iops-size' and its alias 'iops_size' can't be used at the same time
410 Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off
411 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off: 'read-only' and its alias 'readonly' can't be used at the same time
414 === Catching negative/large throttling values ===
416 Testing: -drive file=TEST_DIR/t.qcow2,iops=-1
417 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000]
419 Testing: -drive file=TEST_DIR/t.qcow2,bps=-2
420 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000]
422 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3
423 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000]
425 Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3
426 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000]
428 Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4
429 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000]
431 Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5
432 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000]
434 Testing: -drive file=TEST_DIR/t.qcow2,bps=0
435 QEMU X.Y.Z monitor - type 'help' for more information
436 (qemu) quit
438 Testing: -drive file=TEST_DIR/t.qcow2,bps=1
439 QEMU X.Y.Z monitor - type 'help' for more information
440 (qemu) quit
442 Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000
443 QEMU X.Y.Z monitor - type 'help' for more information
444 (qemu) quit
446 Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001
447 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000]
449 Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999
450 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000]
453 === Parsing protocol from file name ===
455 Testing: -hda foo:bar
456 QEMU_PROG: -hda foo:bar: Unknown protocol 'foo'
458 Testing: -drive file=foo:bar
459 QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo'
461 Testing: -drive file.filename=foo:bar
462 QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory
464 Testing: -hda file:TEST_DIR/t.qcow2
465 QEMU X.Y.Z monitor - type 'help' for more information
466 (qemu) quit
468 Testing: -drive file=file:TEST_DIR/t.qcow2
469 QEMU X.Y.Z monitor - type 'help' for more information
470 (qemu) quit
472 Testing: -drive file.filename=file:TEST_DIR/t.qcow2
473 QEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory
476 === Snapshot mode ===
478 wrote 4096/4096 bytes at offset 0
479 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
480 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
481 QEMU X.Y.Z monitor - type 'help' for more information
482 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
483 wrote 4096/4096 bytes at offset 0
484 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
485 (qemu) quit
487 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
488 QEMU X.Y.Z monitor - type 'help' for more information
489 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
490 wrote 4096/4096 bytes at offset 0
491 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
492 (qemu) quit
494 Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0
495 QEMU X.Y.Z monitor - type 'help' for more information
496 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
497 wrote 4096/4096 bytes at offset 0
498 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
499 (qemu) quit
501 Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot
502 QEMU X.Y.Z monitor - type 'help' for more information
503 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
504 wrote 4096/4096 bytes at offset 0
505 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
506 (qemu) quit
508 Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
509 QEMU X.Y.Z monitor - type 'help' for more information
510 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
511 wrote 4096/4096 bytes at offset 0
512 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
513 (qemu) quit
515 Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
516 QEMU X.Y.Z monitor - type 'help' for more information
517 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
518 wrote 4096/4096 bytes at offset 0
519 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
520 (qemu) quit
522 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot
523 QEMU X.Y.Z monitor - type 'help' for more information
524 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
525 wrote 4096/4096 bytes at offset 0
526 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
527 (qemu) quit
529 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
530 QEMU X.Y.Z monitor - type 'help' for more information
531 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
532 wrote 4096/4096 bytes at offset 0
533 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
534 (qemu) quit
536 read 4096/4096 bytes at offset 0
537 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
538 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0
539 QEMU X.Y.Z monitor - type 'help' for more information
540 (qemu) qemu-io drive0 "write -P 0x22 0 4k"
541 wrote 4096/4096 bytes at offset 0
542 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
543 (qemu) quit
545 read 4096/4096 bytes at offset 0
546 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
547 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0
548 QEMU X.Y.Z monitor - type 'help' for more information
549 (qemu) qemu-io drive0 "write -P 0x33 0 4k"
550 wrote 4096/4096 bytes at offset 0
551 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
552 (qemu) commit drive0
553 (qemu) quit
555 read 4096/4096 bytes at offset 0
556 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
557 Testing: -drive driver=null-co,snapshot=on
558 QEMU_PROG: -drive driver=null-co,snapshot=on: Could not get temporary filename: No such file or directory
560 Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,read-only=on,if=none,id=drive0
561 QEMU X.Y.Z monitor - type 'help' for more information
562 (qemu) info block
563 drive0 (NODE_NAME): json:{"backing": {"driver": "qcow2", "file": {"driver": "file", "filename": "TEST_DIR/t.qcow2"}}, "driver": "qcow2", "file": {"driver": "file", "filename": SNAPSHOT_PATH}} (qcow2, read-only)
564     Removable device: not locked, tray closed
565     Cache mode:       writeback, ignore flushes
566     Backing file:     TEST_DIR/t.qcow2 (chain depth: 1)
567 (qemu) quit
569 *** done