diff --git a/xencall/src/domctl.rs b/xencall/src/domctl.rs index 314c3f2..abf1d92 100644 --- a/xencall/src/domctl.rs +++ b/xencall/src/domctl.rs @@ -35,7 +35,7 @@ impl DomainControl<'_> { domid, value: DomCtlValue { get_domain_info: GetDomainInfo { - domid, + domid: 0, pad1: 0, flags: 0, total_pages: 0, diff --git a/xencall/src/sys.rs b/xencall/src/sys.rs index 3875ff5..2ff38ad 100644 --- a/xencall/src/sys.rs +++ b/xencall/src/sys.rs @@ -269,7 +269,7 @@ impl Default for CreateDomain { #[repr(C)] #[derive(Copy, Clone, Debug)] pub struct GetDomainInfo { - pub domid: u32, + pub domid: u16, pub pad1: u16, pub flags: u32, pub total_pages: u64,