Commit 559d03b
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 263f36e commit 559d03b
1 file changed
Lines changed: 27 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
410 | 430 | | |
411 | 431 | | |
412 | 432 | | |
| |||
0 commit comments