mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
Both the regular asynchronous block device and the vhost-user one had their own handle_queue() method which are almost identical ; they can be merged into one function if we tune the arguments of the original to make those of the vhost-user version, and implement SignalableInterrupt for interrupts behind a Rc<RefCell<>>, similarly to what is already done for Arc<Mutex<>>. BUG=b:228385297 TEST=block device works with both regular VM and using virtio-vhost-user. Change-Id: I657bd8331275d3c3827b2f799562bcd8a272d07b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3565302 Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Alexandre Courbot <acourbot@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |