crosvm/devices
David Stevens 7a64a8ecf3 devices: pci: fix typo in pci bridge window allocation
Fix an error where window_base was updated instead of pref_window_base.
Since the calculations for the two windows are the same, refactor it out
into a separate function. Also, return an error on allocation failure,
instead of just printing an error.

BUG=b:237576651
TEST=boot brya-manatee on primus

Change-Id: I82ffdea00156a95886a0a5913552f3fd6e77a2fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3739712
Reviewed-by: Junichi Uekawa <uekawa@chromium.org>
Commit-Queue: David Stevens <stevensd@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
2022-07-04 10:22:41 +00:00
..
src devices: pci: fix typo in pci bridge window allocation 2022-07-04 10:22:41 +00:00
Cargo.toml virtio-vhost: Enable block tests 2022-07-01 23:44:09 +00:00