mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-08 22:05:20 +00:00
vmm: memory_manager: Simplify start_addr()
Small simplification for the function calculating the start address. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
12212d2966
commit
d25ec66bb6
@ -613,11 +613,9 @@ impl MemoryManager {
|
||||
};
|
||||
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
let start_addr = if mem_end < arch::layout::MEM_32BIT_RESERVED_START {
|
||||
arch::layout::RAM_64BIT_START
|
||||
} else {
|
||||
start_addr
|
||||
};
|
||||
if mem_end < arch::layout::MEM_32BIT_RESERVED_START {
|
||||
return arch::layout::RAM_64BIT_START;
|
||||
}
|
||||
|
||||
start_addr
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user