Skip to content

Commit 4032ff1

Browse files
committed
Switch benchmarks to IoMemory
Walk the talk and use the intended primary interface to vm-memory. Tests cannot do that because they need to peek at the collection of GuestMemroyRegions. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 2f4e96c commit 4032ff1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benches/guest_memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use core::hint::black_box;
77
pub use criterion::Criterion;
88

99
use vm_memory::bitmap::Bitmap;
10-
use vm_memory::{GuestAddress, GuestMemory, GuestMemoryMmap};
10+
use vm_memory::{GuestAddress, IoMemory, GuestMemoryMmap};
1111

1212
const REGION_SIZE: usize = 0x10_0000;
1313
const REGIONS_COUNT: u64 = 256;

benches/mmap/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use std::path::Path;
1717
use core::hint::black_box;
1818
use criterion::Criterion;
1919

20-
use vm_memory::{ByteValued, Bytes, GuestAddress, GuestMemory};
20+
use vm_memory::{ByteValued, Bytes, GuestAddress, IoMemory};
2121

2222
const REGION_SIZE: usize = 0x8000_0000;
2323
const REGIONS_COUNT: u64 = 8;

0 commit comments

Comments
 (0)