mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 10:32:10 +00:00
4d343bbf55
While a host virtio device provides |num_queues| virtqueues, a guest virtio driver doesn't necessarily use all of them. For example, the virtio-blk driver uses only |nr_cpu_ids| virtqueues at most [1]. To avoid checking whether each queue is ready in each device implementation, we can filter them before starting device activation. [1]: https://patchwork.kernel.org/project/linux-block/cover/1553682995-5682-1-git-send-email-dongli.zhang@oracle.com/ BUG=b:179671351, b:181753022 TEST=CQ Change-Id: I29d21d8d9db2d99aa9591ca55c18d06d2368797e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2732735 Tested-by: Keiichi Watanabe <keiichiw@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org> |
||
---|---|---|
.. | ||
src | ||
.build_test_serial | ||
Cargo.toml |