crosvm/devices
Alexandre Courbot 516e536a11 devices: vvu: proxy: divide doorbell write offset by multiplier
As specified by the VVU spec, the adress of a doorbell within a BAR is

    cap.offset doorbell_idx * doorbell_off_multiplier

The `cap.offset` is properly accounted for, but not the multiplier,
resulting in a invalid doorbell being notified if the write offset is
bigger than 0.

BUG=b:194136484
BUG=b:213531730
TEST=VVU-enabled console device works properly.

Change-Id: I96a2b67d905d2453017cdd230b2dda21345d236a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3467295
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Alexandre Courbot <acourbot@chromium.org>
2022-02-17 11:14:28 +00:00
..
src devices: vvu: proxy: divide doorbell write offset by multiplier 2022-02-17 11:14:28 +00:00
.build_test_serial
.windows_build_test_skip Upstream windows build/test script 2022-01-28 00:55:08 +00:00
Cargo.toml devices: vhost-user: Extend DeviceHandler to support VVU 2022-02-10 11:22:13 +00:00