qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

qemu-iotests: Add data pattern in version3 VMDK sample image in 059

It's possible that we diverge from the specification with our
implementation. Having a reference image in the test cases may detect
such problems when we introduce a bug that can read what it creates, but
can't handle a real VMDK.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>

authored by

Fam Zheng and committed by
Kevin Wolf
a8d8a1a0 ef523587

+205 -1
+4
tests/qemu-iotests/059
··· 114 114 echo "=== Testing version 3 ===" 115 115 _use_sample_img iotest-version3.vmdk.bz2 116 116 _img_info 117 + for i in {0..99}; do 118 + $QEMU_IO -r -c "read -P $(( i % 10 + 0x30 )) $(( i * 64 * 1024 * 10 + i * 512 )) 512" $TEST_IMG \ 119 + | _filter_qemu_io 120 + done 117 121 118 122 echo 119 123 echo "=== Testing 4TB monolithicFlat creation and IO ==="
+201 -1
tests/qemu-iotests/059.out
··· 2056 2056 === Testing version 3 === 2057 2057 image: TEST_DIR/iotest-version3.IMGFMT 2058 2058 file format: IMGFMT 2059 - virtual size: 1.0G (1073741824 bytes) 2059 + virtual size: 16G (17179869184 bytes) 2060 2060 cluster_size: 65536 2061 + read 512/512 bytes at offset 0 2062 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2063 + read 512/512 bytes at offset 655872 2064 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2065 + read 512/512 bytes at offset 1311744 2066 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2067 + read 512/512 bytes at offset 1967616 2068 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2069 + read 512/512 bytes at offset 2623488 2070 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2071 + read 512/512 bytes at offset 3279360 2072 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2073 + read 512/512 bytes at offset 3935232 2074 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2075 + read 512/512 bytes at offset 4591104 2076 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2077 + read 512/512 bytes at offset 5246976 2078 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2079 + read 512/512 bytes at offset 5902848 2080 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2081 + read 512/512 bytes at offset 6558720 2082 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2083 + read 512/512 bytes at offset 7214592 2084 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2085 + read 512/512 bytes at offset 7870464 2086 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2087 + read 512/512 bytes at offset 8526336 2088 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2089 + read 512/512 bytes at offset 9182208 2090 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2091 + read 512/512 bytes at offset 9838080 2092 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2093 + read 512/512 bytes at offset 10493952 2094 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2095 + read 512/512 bytes at offset 11149824 2096 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2097 + read 512/512 bytes at offset 11805696 2098 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2099 + read 512/512 bytes at offset 12461568 2100 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2101 + read 512/512 bytes at offset 13117440 2102 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2103 + read 512/512 bytes at offset 13773312 2104 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2105 + read 512/512 bytes at offset 14429184 2106 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2107 + read 512/512 bytes at offset 15085056 2108 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2109 + read 512/512 bytes at offset 15740928 2110 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2111 + read 512/512 bytes at offset 16396800 2112 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2113 + read 512/512 bytes at offset 17052672 2114 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2115 + read 512/512 bytes at offset 17708544 2116 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2117 + read 512/512 bytes at offset 18364416 2118 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2119 + read 512/512 bytes at offset 19020288 2120 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2121 + read 512/512 bytes at offset 19676160 2122 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2123 + read 512/512 bytes at offset 20332032 2124 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2125 + read 512/512 bytes at offset 20987904 2126 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2127 + read 512/512 bytes at offset 21643776 2128 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2129 + read 512/512 bytes at offset 22299648 2130 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2131 + read 512/512 bytes at offset 22955520 2132 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2133 + read 512/512 bytes at offset 23611392 2134 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2135 + read 512/512 bytes at offset 24267264 2136 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2137 + read 512/512 bytes at offset 24923136 2138 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2139 + read 512/512 bytes at offset 25579008 2140 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2141 + read 512/512 bytes at offset 26234880 2142 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2143 + read 512/512 bytes at offset 26890752 2144 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2145 + read 512/512 bytes at offset 27546624 2146 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2147 + read 512/512 bytes at offset 28202496 2148 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2149 + read 512/512 bytes at offset 28858368 2150 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2151 + read 512/512 bytes at offset 29514240 2152 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2153 + read 512/512 bytes at offset 30170112 2154 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2155 + read 512/512 bytes at offset 30825984 2156 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2157 + read 512/512 bytes at offset 31481856 2158 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2159 + read 512/512 bytes at offset 32137728 2160 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2161 + read 512/512 bytes at offset 32793600 2162 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2163 + read 512/512 bytes at offset 33449472 2164 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2165 + read 512/512 bytes at offset 34105344 2166 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2167 + read 512/512 bytes at offset 34761216 2168 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2169 + read 512/512 bytes at offset 35417088 2170 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2171 + read 512/512 bytes at offset 36072960 2172 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2173 + read 512/512 bytes at offset 36728832 2174 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2175 + read 512/512 bytes at offset 37384704 2176 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2177 + read 512/512 bytes at offset 38040576 2178 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2179 + read 512/512 bytes at offset 38696448 2180 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2181 + read 512/512 bytes at offset 39352320 2182 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2183 + read 512/512 bytes at offset 40008192 2184 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2185 + read 512/512 bytes at offset 40664064 2186 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2187 + read 512/512 bytes at offset 41319936 2188 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2189 + read 512/512 bytes at offset 41975808 2190 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2191 + read 512/512 bytes at offset 42631680 2192 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2193 + read 512/512 bytes at offset 43287552 2194 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2195 + read 512/512 bytes at offset 43943424 2196 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2197 + read 512/512 bytes at offset 44599296 2198 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2199 + read 512/512 bytes at offset 45255168 2200 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2201 + read 512/512 bytes at offset 45911040 2202 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2203 + read 512/512 bytes at offset 46566912 2204 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2205 + read 512/512 bytes at offset 47222784 2206 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2207 + read 512/512 bytes at offset 47878656 2208 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2209 + read 512/512 bytes at offset 48534528 2210 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2211 + read 512/512 bytes at offset 49190400 2212 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2213 + read 512/512 bytes at offset 49846272 2214 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2215 + read 512/512 bytes at offset 50502144 2216 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2217 + read 512/512 bytes at offset 51158016 2218 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2219 + read 512/512 bytes at offset 51813888 2220 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2221 + read 512/512 bytes at offset 52469760 2222 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2223 + read 512/512 bytes at offset 53125632 2224 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2225 + read 512/512 bytes at offset 53781504 2226 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2227 + read 512/512 bytes at offset 54437376 2228 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2229 + read 512/512 bytes at offset 55093248 2230 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2231 + read 512/512 bytes at offset 55749120 2232 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2233 + read 512/512 bytes at offset 56404992 2234 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2235 + read 512/512 bytes at offset 57060864 2236 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2237 + read 512/512 bytes at offset 57716736 2238 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2239 + read 512/512 bytes at offset 58372608 2240 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2241 + read 512/512 bytes at offset 59028480 2242 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2243 + read 512/512 bytes at offset 59684352 2244 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2245 + read 512/512 bytes at offset 60340224 2246 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2247 + read 512/512 bytes at offset 60996096 2248 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2249 + read 512/512 bytes at offset 61651968 2250 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2251 + read 512/512 bytes at offset 62307840 2252 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2253 + read 512/512 bytes at offset 62963712 2254 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2255 + read 512/512 bytes at offset 63619584 2256 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2257 + read 512/512 bytes at offset 64275456 2258 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2259 + read 512/512 bytes at offset 64931328 2260 + 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2061 2261 2062 2262 === Testing 4TB monolithicFlat creation and IO === 2063 2263 Formatting 'TEST_DIR/iotest-version3.IMGFMT', fmt=IMGFMT size=4398046511104
tests/qemu-iotests/sample_images/iotest-version3.vmdk.bz2

This is a binary file and will not be displayed.