cloud-hypervisor/pci
Rob Bradford 6e63df98ba pci: vfio: Fix and clarify BAR calculation code
The BAR calculation code was incorrect for calculating I/O BARs but also
has misleading comments (mixing bits and bytes, first and least
significant, etc).

This change adjusts the algorithm to more closely match the version
described in the PCI specification and takes advantage of Rust's binary
literals for ease of reading. Although this is slightly longer by
calculating the 64-bit and 32-bit paths separately I think this is
easier to read.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2021-07-05 17:38:23 +02:00
..
src pci: vfio: Fix and clarify BAR calculation code 2021-07-05 17:38:23 +02:00
Cargo.toml build: bump libc from 0.2.96 to 0.2.97 2021-06-14 09:50:38 +00:00