mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
get_bar_configuration() returnis bar's info, this ignores memory/io enable bit. Usually driver disable memory/io first, then wrtie 0xFFFFFFFF to probe bar's existence and size, finally write real address and enable memory/io. if get_bar_configuration is called after mmio/io disabled, current it may return invalid info. In order to filter these invalid info, this commit checks memory/io enable bit, only return info at memory/io enabled. BUG=b:174705996 TEST=carto test -p devices Change-Id: Ib8bf1a7f7f959025117f319f8f6c5a9e5efea2e2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3252779 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
.build_test_serial | ||
Cargo.toml |