Commit 9fd1fb1
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 7cb428c commit 9fd1fb1
1 file changed
Lines changed: 27 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
403 | 423 | | |
404 | 424 | | |
405 | 425 | | |
| |||
0 commit comments