mirror of
				https://github.com/edera-dev/krata.git
				synced 2025-11-03 23:29:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			285 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			285 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
use xencall::error::Result;
 | 
						|
use xencall::sys::CreateDomain;
 | 
						|
use xencall::XenCall;
 | 
						|
 | 
						|
fn main() -> Result<()> {
 | 
						|
    env_logger::init();
 | 
						|
 | 
						|
    let call = XenCall::open(0)?;
 | 
						|
    let domid = call.create_domain(CreateDomain::default())?;
 | 
						|
    println!("created domain {}", domid);
 | 
						|
    Ok(())
 | 
						|
}
 |