hw/arm/sbsa-ref: Remove unnecessary check for secure_sysmem == NULL
[qemu/ar7.git] / tests / qemu-iotests / 242.out
blob7ac8404d11c8f80837d419aa056102da242e6020
1 Test 1
2 {"execute": "block-dirty-bitmap-add", "arguments": {"disabled": false, "granularity": 16384, "name": "bitmap-0", "node": "drive0", "persistent": false}}
3 {"return": {}}
4 wrote 262144/262144 bytes at offset 0
5 256 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
7 qemu-img info dump:
9 image: TEST_IMG
10 file format: IMGFMT
11 virtual size: 1 MiB (1048576 bytes)
12 cluster_size: 65536
13 Format specific information:
14     compat: 1.1
15     lazy refcounts: false
16     refcount bits: 16
17     corrupt: false
19 No bitmap in JSON format output
21 Test 2
22 {"execute": "block-dirty-bitmap-add", "arguments": {"disabled": true, "granularity": 32768, "name": "bitmap-1", "node": "drive0", "persistent": true}}
23 {"return": {}}
24 wrote 262144/262144 bytes at offset 262144
25 256 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
27 qemu-img info dump:
29 image: TEST_IMG
30 file format: IMGFMT
31 virtual size: 1 MiB (1048576 bytes)
32 cluster_size: 65536
33 Format specific information:
34     compat: 1.1
35     lazy refcounts: false
36     bitmaps:
37         [0]:
38             flags:
39             name: bitmap-1
40             granularity: 32768
41     refcount bits: 16
42     corrupt: false
44 The same bitmaps in JSON format:
46   {
47     "flags": [],
48     "granularity": 32768,
49     "name": "bitmap-1"
50   }
53 Test 3
54 {"execute": "block-dirty-bitmap-add", "arguments": {"disabled": false, "granularity": 65536, "name": "bitmap-2", "node": "drive0", "persistent": true}}
55 {"return": {}}
56 wrote 262144/262144 bytes at offset 524288
57 256 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
59 qemu-img info dump:
61 image: TEST_IMG
62 file format: IMGFMT
63 virtual size: 1 MiB (1048576 bytes)
64 cluster_size: 65536
65 Format specific information:
66     compat: 1.1
67     lazy refcounts: false
68     bitmaps:
69         [0]:
70             flags:
71             name: bitmap-1
72             granularity: 32768
73         [1]:
74             flags:
75                 [0]: auto
76             name: bitmap-2
77             granularity: 65536
78     refcount bits: 16
79     corrupt: false
81 The same bitmaps in JSON format:
83   {
84     "flags": [],
85     "granularity": 32768,
86     "name": "bitmap-1"
87   },
88   {
89     "flags": [
90       "auto"
91     ],
92     "granularity": 65536,
93     "name": "bitmap-2"
94   }
97 Test 4
98 Checking "in-use" flag...
99 qemu-img info dump:
101 image: TEST_IMG
102 file format: IMGFMT
103 virtual size: 1 MiB (1048576 bytes)
104 cluster_size: 65536
105 Format specific information:
106     compat: 1.1
107     lazy refcounts: false
108     bitmaps:
109         [0]:
110             flags:
111                 [0]: in-use
112             name: bitmap-1
113             granularity: 32768
114         [1]:
115             flags:
116                 [0]: in-use
117                 [1]: auto
118             name: bitmap-2
119             granularity: 65536
120     refcount bits: 16
121     corrupt: false
123 The same bitmaps in JSON format:
125   {
126     "flags": [
127       "in-use"
128     ],
129     "granularity": 32768,
130     "name": "bitmap-1"
131   },
132   {
133     "flags": [
134       "in-use",
135       "auto"
136     ],
137     "granularity": 65536,
138     "name": "bitmap-2"
139   }
142 Test 5
143 {"execute": "block-dirty-bitmap-add", "arguments": {"disabled": false, "granularity": 16384, "name": "bitmap-0", "node": "drive0", "persistent": true}}
144 {"return": {}}
145 Write an unknown bitmap flag '0x4' into a new QCOW2 image at offset 327695
146 qemu-img: Could not open 'TEST_IMG': Bitmap 'bitmap-0' doesn't satisfy the constraints
148 Unset the unknown bitmap flag '0x4' in the bitmap directory entry:
150 image: TEST_IMG
151 file format: IMGFMT
152 virtual size: 1 MiB (1048576 bytes)
153 cluster_size: 65536
154 Format specific information:
155     compat: 1.1
156     lazy refcounts: false
157     bitmaps:
158         [0]:
159             flags:
160                 [0]: auto
161             name: bitmap-0
162             granularity: 16384
163     refcount bits: 16
164     corrupt: false
166 Test complete