mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 13:11:31 +00:00
implement initialization of start info for x86
This commit is contained in:
@ -23,7 +23,8 @@ fn main() -> Result<(), XenClientError> {
|
||||
let image_loader = ElfImageLoader::load_file_kernel(kernel_image_path.as_str())?;
|
||||
let memctl = MemoryControl::new(&call);
|
||||
let mut boot = BootSetup::new(&call, &domctl, &memctl, domid);
|
||||
boot.initialize(&image_loader, 512 * 1024)?;
|
||||
let mut state = boot.initialize(&image_loader, 512 * 1024)?;
|
||||
boot.boot(&mut state, "debug")?;
|
||||
domctl.destroy_domain(domid)?;
|
||||
println!("domain destroyed: {}", domid);
|
||||
Ok(())
|
||||
|
Reference in New Issue
Block a user