mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
aarch64: Change RAM_START type GuestAddress
Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
@@ -2986,16 +2986,12 @@ mod tests {
|
||||
use arch::aarch64::gic::kvm::create_gic;
|
||||
use arch::aarch64::layout;
|
||||
use arch::{DeviceType, MmioDeviceInfo};
|
||||
use vm_memory::GuestAddress;
|
||||
|
||||
const LEN: u64 = 4096;
|
||||
|
||||
#[test]
|
||||
fn test_create_fdt_with_devices() {
|
||||
let regions = vec![(
|
||||
GuestAddress(layout::RAM_START),
|
||||
(layout::FDT_MAX_SIZE + 0x1000) as usize,
|
||||
)];
|
||||
let regions = vec![(layout::RAM_START, (layout::FDT_MAX_SIZE + 0x1000) as usize)];
|
||||
let mem = GuestMemoryMmap::from_ranges(®ions).expect("Cannot initialize memory");
|
||||
|
||||
let dev_info: HashMap<(DeviceType, std::string::String), MmioDeviceInfo> = [
|
||||
|
||||
Reference in New Issue
Block a user