mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
A MSIX BAR can include both MSIX and non-MSIX registers. The non-MSIX part of the BAR can be mmaped, eliminating unnecessary slow reads/writes in userspace. Add a new struct, VfioMsixAllocator, to keep track of the non-MSIX areas of a mappable MSIX BAR. Page alignment is imposed to make sure mmap succeeds. BUG=b:184904868 TEST=boot Linux kernel and verify MSIX-capable passthru devices work properly Change-Id: I1fbf4c710f4bfaffe613d902f27e3bbb558c469e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2972489 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
.build_test_serial | ||
Cargo.toml |