mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
build: Bump vm-memory and dependents
vm-memory 0.18 has renamed GuestMemory to GuestMemoryBackend, and made GuestMemory refer to something less specific. For simplicity, we keep using GuestMemoryBackend (formerly GuestMemory) everywhere for now. We can adjust bounds to be less specific later if we find ourselves needing the newly enabled flexibility. Signed-off-by: Alyssa Ross <hi@alyssa.is> Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
committed by
Rob Bradford
parent
1a1c21024a
commit
cd2089eb69
@@ -40,7 +40,7 @@ use vm_memory::bitmap::AtomicBitmap;
|
||||
use vm_memory::guest_memory::{Error as MmapError, FileOffset};
|
||||
use vm_memory::mmap::MmapRegionError;
|
||||
use vm_memory::{
|
||||
Address, Bytes, GuestAddress, GuestAddressSpace, GuestMemory, GuestMemoryAtomic,
|
||||
Address, Bytes, GuestAddress, GuestAddressSpace, GuestMemoryAtomic, GuestMemoryBackend,
|
||||
GuestMemoryError, GuestMemoryRegion, GuestUsize, MmapRegion,
|
||||
};
|
||||
use vm_migration::protocol::{MemoryRange, MemoryRangeTable};
|
||||
@@ -768,7 +768,7 @@ impl MemoryManager {
|
||||
Ok((mem_regions, memory_zones))
|
||||
}
|
||||
|
||||
// Restore both GuestMemory regions along with MemoryZone zones.
|
||||
// Restore both GuestMemoryBackend regions along with MemoryZone zones.
|
||||
fn restore_memory_regions_and_zones(
|
||||
guest_ram_mappings: &[GuestRamMapping],
|
||||
zones_config: &[MemoryZoneConfig],
|
||||
@@ -1585,7 +1585,7 @@ impl MemoryManager {
|
||||
for region in self.arch_mem_regions.iter() {
|
||||
if region.r_type == RegionType::Ram {
|
||||
// Ignore the RAM type since ranges have already been allocated
|
||||
// based on the GuestMemory regions.
|
||||
// based on the GuestMemoryBackend regions.
|
||||
continue;
|
||||
}
|
||||
self.ram_allocator
|
||||
|
||||
Reference in New Issue
Block a user