mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-09-12 10:04:51 +00:00
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> |
||
---|---|---|
.. | ||
bus.rs | ||
configuration.rs | ||
device.rs | ||
lib.rs | ||
msi.rs | ||
msix.rs | ||
vfio.rs |