From 824a55a6a605e0a5a63a159fa1863c86b71c1a48 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Mon, 15 Jan 2024 18:54:20 -0800 Subject: [PATCH] fix struct definition for GetDomainInfo --- xencall/src/domctl.rs | 2 +- xencall/src/sys.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,