Skip to content

Commit f2c4d49

Browse files
Andrew Jonesandreeaflorescu
authored andcommitted
aarch64: use 64k aligned addresses in tests
If we're on an AArch64 host that has been configured to use 64k pages, then we need to align our addresses to that larger granule. Signed-off-by: Andrew Jones <[email protected]>
1 parent 129e2d2 commit f2c4d49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ioctls/vm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ impl VmFd {
8787
/// let vm = kvm.create_vm().unwrap();
8888
/// let mem_region = kvm_userspace_memory_region {
8989
/// slot: 0,
90-
/// guest_phys_addr: 0x1000 as u64,
91-
/// memory_size: 0x4000 as u64,
90+
/// guest_phys_addr: 0x10000 as u64,
91+
/// memory_size: 0x10000 as u64,
9292
/// userspace_addr: 0x0 as u64,
9393
/// flags: 0,
9494
/// };

0 commit comments

Comments
 (0)