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
1 changed files with 2 additions and 2 deletions
|
|
@ -593,7 +593,7 @@ impl DeviceRelocation for AddressManager {
|
|||
.allocate_mmio_hole_addresses(
|
||||
Some(GuestAddress(new_base)),
|
||||
len as GuestUsize,
|
||||
None,
|
||||
Some(len),
|
||||
)
|
||||
.ok_or_else(|| {
|
||||
io::Error::new(
|
||||
|
|
@ -613,7 +613,7 @@ impl DeviceRelocation for AddressManager {
|
|||
.allocate_mmio_addresses(
|
||||
Some(GuestAddress(new_base)),
|
||||
len as GuestUsize,
|
||||
None,
|
||||
Some(len),
|
||||
)
|
||||
.ok_or_else(|| {
|
||||
io::Error::new(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue