@@ -24,7 +24,7 @@ use std::io::{Read, Seek};
2424
2525#[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
2626use vm_memory:: ByteValued ;
27- use vm_memory:: { Address , Bytes , GuestAddress , GuestMemory , GuestUsize , ReadVolatile } ;
27+ use vm_memory:: { Address , Bytes , GuestAddress , GuestMemoryBackend , GuestUsize , ReadVolatile } ;
2828
2929#[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
3030pub use crate :: loader_gen:: bootparam;
@@ -167,13 +167,13 @@ pub trait KernelLoader {
167167 ///
168168 /// # Arguments
169169 ///
170- /// * `guest_mem`: [`GuestMemory `] to load the kernel in.
170+ /// * `guest_mem`: [`GuestMemoryBackend `] to load the kernel in.
171171 /// * `kernel_offset`: Usage varies between implementations.
172172 /// * `kernel_image`: Kernel image to be loaded.
173173 /// * `highmem_start_address`: Address where high memory starts.
174174 ///
175- /// [`GuestMemory `]: https://docs.rs/vm-memory/latest/vm_memory/guest_memory/trait.GuestMemory .html
176- fn load < F , M : GuestMemory > (
175+ /// [`GuestMemoryBackend `]: https://docs.rs/vm-memory/latest/vm_memory/guest_memory/trait.GuestMemoryBackend .html
176+ fn load < F , M : GuestMemoryBackend > (
177177 guest_mem : & M ,
178178 kernel_offset : Option < GuestAddress > ,
179179 kernel_image : & mut F ,
@@ -197,11 +197,11 @@ unsafe impl ByteValued for bootparam::boot_params {}
197197///
198198/// # Arguments
199199///
200- /// * `guest_mem` - [`GuestMemory `] that will be partially overwritten by the command line.
200+ /// * `guest_mem` - [`GuestMemoryBackend `] that will be partially overwritten by the command line.
201201/// * `guest_addr` - The address in `guest_mem` at which to load the command line.
202202/// * `cmdline` - The kernel command line.
203203///
204- /// [`GuestMemory `]: https://docs.rs/vm-memory/latest/vm_memory/guest_memory/trait.GuestMemory .html
204+ /// [`GuestMemoryBackend `]: https://docs.rs/vm-memory/latest/vm_memory/guest_memory/trait.GuestMemoryBackend .html
205205///
206206/// # Examples
207207///
@@ -219,7 +219,7 @@ unsafe impl ByteValued for bootparam::boot_params {}
219219/// let result = load_cmdline(&gm, GuestAddress(0x1000), &cl).unwrap();
220220/// gm.read_slice(buf.as_mut_slice(), GuestAddress(0x1000)).unwrap();
221221/// assert_eq!(buf.as_slice(), "foo=bar\0".as_bytes());
222- pub fn load_cmdline < M : GuestMemory > (
222+ pub fn load_cmdline < M : GuestMemoryBackend > (
223223 guest_mem : & M ,
224224 guest_addr : GuestAddress ,
225225 cmdline : & Cmdline ,
0 commit comments