mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-03 13:11:31 +00:00
fix domain info struct layout
This commit is contained in:
@ -18,8 +18,8 @@ fn main() -> Result<(), XenClientError> {
|
||||
let kernel_image_path = args.get(1).expect("argument not specified");
|
||||
let call = XenCall::open()?;
|
||||
let domctl = DomainControl::new(&call);
|
||||
let domid = domctl.create_domain(CreateDomain::default())?;
|
||||
domctl.set_max_vcpus(domid, 1)?;
|
||||
let domain = CreateDomain { max_vcpus: 2, ..Default::default() };
|
||||
let domid = domctl.create_domain(domain)?;
|
||||
let result = boot(domid, kernel_image_path.as_str(), &call, &domctl);
|
||||
domctl.destroy_domain(domid)?;
|
||||
result?;
|
||||
|
Reference in New Issue
Block a user