Commit 71d7627
Dorinda Bassey
devices/vhost: Implement write_config for dynamic config
Implement write_config in VhostUserDevice to support
virtio devices that use dynamic configuration space,
such as virtio-input. Some virtio devices like
virtio-input use a request-response pattern for
device discovery. Without write_config support, the
backend never receives the virtio_input config values,
causing device initialization to fail.
This implementation uses VHOST_USER_SET_CONFIG to
forward writes to the backend.
Signed-off-by: Dorinda Bassey <dbassey@redhat.com>1 parent 7382dc5 commit 71d7627
1 file changed
Lines changed: 27 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
400 | 420 | | |
401 | 421 | | |
402 | 422 | | |
| |||
0 commit comments