vmm: Make MemoryManager::create_ram_region() public

So that it can be reused externally, such as for fuzzing.

Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Bo Chen 2022-10-10 18:18:31 -07:00 committed by Rob Bradford
parent af14044fb8
commit 37c3b0429a

View File

@ -1289,7 +1289,7 @@ impl MemoryManager {
}
#[allow(clippy::too_many_arguments)]
fn create_ram_region(
pub fn create_ram_region(
backing_file: &Option<PathBuf>,
file_offset: u64,
start_addr: GuestAddress,