vmm: Repair the port IO memory alignment

The IO memory alignment should be set as byte alignment instead of 0x400
which is copied from crosvm.

Signed-off-by: Jing Liu <jing2.liu@linux.intel.com>
This commit is contained in:
Jing Liu 2019-05-27 19:14:53 +08:00 committed by Sebastien Boeuf
parent e5e651895b
commit 8370a5bcc2

View File

@ -62,7 +62,7 @@ impl SystemAllocator {
let page_size = pagesize() as u64;
Some(SystemAllocator {
io_address_space: if let (Some(b), Some(s)) = (io_base, io_size) {
Some(AddressAllocator::new(b, s, Some(0x400))?)
Some(AddressAllocator::new(b, s, Some(0x1))?)
} else {
None
},