mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-02 12:50:54 +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(())
|
|
}
|