Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ numeric_enum! {
HWrite = HYPER_CALL_CODE_PRIVILEGED_MASK | 0x12,
/// Duplicate current gaddrspace to a new one, return its EPTP list index.
HDupGas = HYPER_CALL_CODE_PRIVILEGED_MASK | 0x13,
/// Just a benchmark hypercall for VM call overhead measurement.
HBenchVMCall = HYPER_CALL_CODE_PRIVILEGED_MASK | 0xff,
}
}

Expand All @@ -87,6 +89,7 @@ impl core::fmt::Debug for HyperCallCode {
HyperCallCode::HIVCDt => write!(f, "HIVCDt {:#x}", *self as u32),
HyperCallCode::HIVCSHMAt => write!(f, "HIVCSHMAt {:#x}", *self as u32),
HyperCallCode::HClearGuestAreas => write!(f, "HClearGuestAreas {:#x}", *self as u32),
HyperCallCode::HBenchVMCall => write!(f, "HBenchVMCall {:#x}", *self as u32),
}?;
write!(f, ")")
}
Expand Down
Loading