cloud-hypervisor/pci/src
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
..
bus.rs pci: Address Rust 1.51.0 clippy issue (upper_case_acroynms) 2021-03-26 11:32:09 +00:00
configuration.rs pci: Versionize PCI state 2021-05-26 22:29:35 +02:00
device.rs pci, virtio-devices: Extend barrier returning through PCI code 2020-12-17 11:23:53 +00:00
lib.rs pci: Versionize PCI state 2021-05-26 22:29:35 +02:00
msi.rs misc: Remove unnecessary "extern crate" 2021-05-12 17:26:11 +02:00
msix.rs pci: Versionize PCI state 2021-05-26 22:29:35 +02:00
vfio.rs pci: vfio: Fix and clarify BAR calculation code 2021-07-05 17:38:23 +02:00