krata: work on parallel reconciliation

This commit is contained in:
Alex Zenla
2024-04-02 00:56:18 +00:00
parent 6a2f1e6517
commit 8dd3cc7692
27 changed files with 582 additions and 428 deletions

View File

@ -2,11 +2,12 @@ use xencall::error::Result;
use xencall::sys::CreateDomain;
use xencall::XenCall;
fn main() -> Result<()> {
#[tokio::main]
async fn main() -> Result<()> {
env_logger::init();
let call = XenCall::open(0)?;
let domid = call.create_domain(CreateDomain::default())?;
let domid = call.create_domain(CreateDomain::default()).await?;
println!("created domain {}", domid);
Ok(())
}

View File

@ -1,11 +1,12 @@
use xencall::error::Result;
use xencall::XenCall;
fn main() -> Result<()> {
#[tokio::main]
async fn main() -> Result<()> {
env_logger::init();
let call = XenCall::open(0)?;
let info = call.get_domain_info(1)?;
let info = call.get_domain_info(1).await?;
println!("{:?}", info);
Ok(())
}

View File

@ -1,11 +1,12 @@
use xencall::error::Result;
use xencall::XenCall;
fn main() -> Result<()> {
#[tokio::main]
async fn main() -> Result<()> {
env_logger::init();
let call = XenCall::open(0)?;
let context = call.get_vcpu_context(224, 0)?;
let context = call.get_vcpu_context(224, 0).await?;
println!("{:?}", context);
Ok(())
}

View File

@ -1,11 +1,12 @@
use xencall::error::Result;
use xencall::XenCall;
fn main() -> Result<()> {
#[tokio::main]
async fn main() -> Result<()> {
env_logger::init();
let call = XenCall::open(0)?;
let info = call.get_version_capabilities()?;
let info = call.get_version_capabilities().await?;
println!("{:?}", info);
Ok(())
}