mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 13:11:31 +00:00
move xen libraries to xen/
This commit is contained in:
11
xen/xencall/examples/domain_create.rs
Normal file
11
xen/xencall/examples/domain_create.rs
Normal file
@ -0,0 +1,11 @@
|
||||
use xencall::sys::CreateDomain;
|
||||
use xencall::{XenCall, XenCallError};
|
||||
|
||||
fn main() -> Result<(), XenCallError> {
|
||||
env_logger::init();
|
||||
|
||||
let call = XenCall::open()?;
|
||||
let domid = call.create_domain(CreateDomain::default())?;
|
||||
println!("created domain {}", domid);
|
||||
Ok(())
|
||||
}
|
Reference in New Issue
Block a user