mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 19:32:20 +00:00
vmm: Naturally align PCI BARs on relocation
When allocating PCI MMIO BARs they should always be naturally aligned (i.e. aligned to the size of the BAR itself.) Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
c3d6aceed1
commit
2cccdc5ddd
@ -593,7 +593,7 @@ impl DeviceRelocation for AddressManager {
|
|||||||
.allocate_mmio_hole_addresses(
|
.allocate_mmio_hole_addresses(
|
||||||
Some(GuestAddress(new_base)),
|
Some(GuestAddress(new_base)),
|
||||||
len as GuestUsize,
|
len as GuestUsize,
|
||||||
None,
|
Some(len),
|
||||||
)
|
)
|
||||||
.ok_or_else(|| {
|
.ok_or_else(|| {
|
||||||
io::Error::new(
|
io::Error::new(
|
||||||
@ -613,7 +613,7 @@ impl DeviceRelocation for AddressManager {
|
|||||||
.allocate_mmio_addresses(
|
.allocate_mmio_addresses(
|
||||||
Some(GuestAddress(new_base)),
|
Some(GuestAddress(new_base)),
|
||||||
len as GuestUsize,
|
len as GuestUsize,
|
||||||
None,
|
Some(len),
|
||||||
)
|
)
|
||||||
.ok_or_else(|| {
|
.ok_or_else(|| {
|
||||||
io::Error::new(
|
io::Error::new(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user