mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
50181346e6
Current implementation does not allow hot-resizing feature to be used in vhost-user block devices because the backend device cannot notify the frontend that the device configuration has changed. Fix this by adding and establishing the backend to frontend vhost-user message connection to the vhost-user block backend, send the HANDLE_CONFIG_CHANGE_MSG to the frontend, and send interrupt to the guest kernel from the frontend device when receiving the message. BUG=b:191845881 TEST=cargo run devices -s /path/to/socket.sock --block ... cargo run run --vhost-user-blk /path/to/vhost-sock, cargo run disk resize 0 $SIZE /path/to/socket.sock Change-Id: Ifab75d65c429dfcea5e632b899f014278a6e6750 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3859218 Commit-Queue: Keita Suzuki <suzukikeita@google.com> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Reviewed-by: Morg <morg@chromium.org> |
||
---|---|---|
.. | ||
depot_tools@268d645853 | ||
libslirp-rs | ||
minigbm@ef852e007c | ||
minijail@77c59db8ff | ||
virglrenderer@4770f706db | ||
vmm_vhost |