1QA output created by 227 2 3=== blockstats with -drive if=virtio === 4 5Testing: -drive driver=null-co,if=virtio 6{ 7 QMP_VERSION 8} 9{ 10 "return": { 11 } 12} 13{ 14 "return": [ 15 { 16 "device": "virtio0", 17 "stats": { 18 "flush_total_time_ns": 0, 19 "wr_highest_offset": 0, 20 "wr_total_time_ns": 0, 21 "failed_wr_operations": 0, 22 "failed_rd_operations": 0, 23 "wr_merged": 0, 24 "wr_bytes": 0, 25 "timed_stats": [ 26 ], 27 "failed_flush_operations": 0, 28 "account_invalid": true, 29 "rd_total_time_ns": 0, 30 "flush_operations": 0, 31 "wr_operations": 0, 32 "rd_merged": 0, 33 "rd_bytes": 0, 34 "invalid_flush_operations": 0, 35 "account_failed": true, 36 "rd_operations": 0, 37 "invalid_wr_operations": 0, 38 "invalid_rd_operations": 0 39 }, 40 "node-name": "NODE_NAME", 41 "qdev": "/machine/peripheral-anon/device[0]/virtio-backend" 42 } 43 ] 44} 45{ 46 "return": { 47 } 48} 49{ 50 "timestamp": { 51 "seconds": TIMESTAMP, 52 "microseconds": TIMESTAMP 53 }, 54 "event": "SHUTDOWN", 55 "data": { 56 "guest": false 57 } 58} 59 60 61=== blockstats with -drive if=none === 62 63Testing: -drive driver=null-co,if=none 64{ 65 QMP_VERSION 66} 67{ 68 "return": { 69 } 70} 71{ 72 "return": [ 73 { 74 "device": "none0", 75 "stats": { 76 "flush_total_time_ns": 0, 77 "wr_highest_offset": 0, 78 "wr_total_time_ns": 0, 79 "failed_wr_operations": 0, 80 "failed_rd_operations": 0, 81 "wr_merged": 0, 82 "wr_bytes": 0, 83 "timed_stats": [ 84 ], 85 "failed_flush_operations": 0, 86 "account_invalid": true, 87 "rd_total_time_ns": 0, 88 "flush_operations": 0, 89 "wr_operations": 0, 90 "rd_merged": 0, 91 "rd_bytes": 0, 92 "invalid_flush_operations": 0, 93 "account_failed": true, 94 "rd_operations": 0, 95 "invalid_wr_operations": 0, 96 "invalid_rd_operations": 0 97 }, 98 "node-name": "NODE_NAME" 99 } 100 ] 101} 102{ 103 "return": { 104 } 105} 106{ 107 "timestamp": { 108 "seconds": TIMESTAMP, 109 "microseconds": TIMESTAMP 110 }, 111 "event": "SHUTDOWN", 112 "data": { 113 "guest": false 114 } 115} 116 117 118=== blockstats with -blockdev === 119 120Testing: -blockdev driver=null-co,node-name=null 121{ 122 QMP_VERSION 123} 124{ 125 "return": { 126 } 127} 128{ 129 "return": [ 130 ] 131} 132{ 133 "return": { 134 } 135} 136{ 137 "timestamp": { 138 "seconds": TIMESTAMP, 139 "microseconds": TIMESTAMP 140 }, 141 "event": "SHUTDOWN", 142 "data": { 143 "guest": false 144 } 145} 146 147 148=== blockstats with -blockdev and -device === 149 150Testing: -blockdev driver=null-co,node-name=null -device virtio-blk,drive=null,id=virtio0 151{ 152 QMP_VERSION 153} 154{ 155 "return": { 156 } 157} 158{ 159 "return": [ 160 { 161 "device": "", 162 "stats": { 163 "flush_total_time_ns": 0, 164 "wr_highest_offset": 0, 165 "wr_total_time_ns": 0, 166 "failed_wr_operations": 0, 167 "failed_rd_operations": 0, 168 "wr_merged": 0, 169 "wr_bytes": 0, 170 "timed_stats": [ 171 ], 172 "failed_flush_operations": 0, 173 "account_invalid": false, 174 "rd_total_time_ns": 0, 175 "flush_operations": 0, 176 "wr_operations": 0, 177 "rd_merged": 0, 178 "rd_bytes": 0, 179 "invalid_flush_operations": 0, 180 "account_failed": false, 181 "rd_operations": 0, 182 "invalid_wr_operations": 0, 183 "invalid_rd_operations": 0 184 }, 185 "node-name": "null", 186 "qdev": "/machine/peripheral/virtio0/virtio-backend" 187 } 188 ] 189} 190{ 191 "return": { 192 } 193} 194{ 195 "timestamp": { 196 "seconds": TIMESTAMP, 197 "microseconds": TIMESTAMP 198 }, 199 "event": "SHUTDOWN", 200 "data": { 201 "guest": false 202 } 203} 204 205*** done 206