Commit 15d294a
authored
samples/client: get BAR1 size from region info (#873)
Retrieve the BAR1 size from VFIO_USER_DEVICE_GET_REGION_INFO
instead of relying on a hardcoded value. This removes the
existing FIXME and allows the client to use the size reported
by the server.
Signed-off-by: Siddharth C <siddharthcibi@icloud.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>1 parent 49f1276 commit 15d294a
1 file changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| 356 | + | |
356 | 357 | | |
357 | 358 | | |
358 | 359 | | |
359 | 360 | | |
360 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
361 | 364 | | |
362 | 365 | | |
363 | 366 | | |
364 | 367 | | |
365 | | - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
366 | 373 | | |
367 | 374 | | |
368 | 375 | | |
| |||
1182 | 1189 | | |
1183 | 1190 | | |
1184 | 1191 | | |
1185 | | - | |
| 1192 | + | |
1186 | 1193 | | |
1187 | 1194 | | |
1188 | 1195 | | |
| |||
1228 | 1235 | | |
1229 | 1236 | | |
1230 | 1237 | | |
1231 | | - | |
| 1238 | + | |
1232 | 1239 | | |
1233 | 1240 | | |
1234 | 1241 | | |
| |||
0 commit comments