fix struct definition for GetDomainInfo

This commit is contained in:
Alex Zenla 2024-01-15 18:54:20 -08:00
parent 3e9470afaa
commit 824a55a6a6
No known key found for this signature in database
GPG Key ID: 067B238899B51269
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ impl DomainControl<'_> {
domid,
value: DomCtlValue {
get_domain_info: GetDomainInfo {
domid,
domid: 0,
pad1: 0,
flags: 0,
total_pages: 0,

View File

@ -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,