fix(xenplatform): e820 sanitize should now produce valid mappings

This commit is contained in:
Alex Zenla
2024-10-17 13:27:23 -04:00
parent b1e7a05440
commit 7f5a8c7a6e
7 changed files with 97 additions and 124 deletions

View File

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