multiple fixes to vcpu setup and memory allocation

This commit is contained in:
Alex Zenla
2024-01-12 14:57:02 -08:00
parent 1f30f8315a
commit a9275c4bdf
8 changed files with 149 additions and 50 deletions

View File

@ -0,0 +1,12 @@
use xencall::domctl::DomainControl;
use xencall::{XenCall, XenCallError};
fn main() -> Result<(), XenCallError> {
env_logger::init();
let call = XenCall::open()?;
let domctl: DomainControl = DomainControl::new(&call);
let context = domctl.get_vcpu_context(224, 0)?;
println!("{:?}", context);
Ok(())
}