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

@ -19,6 +19,8 @@ fn main() -> Result<(), XenClientError> {
let call = XenCall::open()?;
let domctl = DomainControl::new(&call);
let domid = domctl.create_domain(CreateDomain::default())?;
domctl.pause_domain(domid)?;
domctl.set_max_vcpus(domid, 1)?;
let result = boot(domid, kernel_image_path.as_str(), &call, &domctl);
domctl.destroy_domain(domid)?;
result?;