From 8370a5bcc27fe7f06ebce75eb91cea8b700b783b Mon Sep 17 00:00:00 2001 From: Jing Liu Date: Mon, 27 May 2019 19:14:53 +0800 Subject: [PATCH] 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 --- vm-allocator/src/system.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm-allocator/src/system.rs b/vm-allocator/src/system.rs index 0c6cdacf1..5c8ce447d 100755 --- a/vm-allocator/src/system.rs +++ b/vm-allocator/src/system.rs @@ -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 },