diff --git a/src/lib.rs b/src/lib.rs index 5d6af12..d4e3d0b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -45,15 +45,6 @@ numeric_enum! { /// Refer to `shmat` syscall, /// this is used to attach a shared memory region to the current instance. HIVCSHMAt = HYPER_CALL_CODE_PRIVILEGED_MASK | 10, - /// Clear all guest memory areas, - /// I know this HVC seems strange, the thing is, we prepare a early-stage `eqloader` - /// in guest address space as a user-space executor, when the instance starts running, - /// the pre-loader `eqloader` is useless and should be cleared, because it will take up - /// the guest memory space and the mapping is not known by the `EqAddrSpace` in `ProcessInnerRegion`. - /// So we use this hypercall to notify the hypervisor that the loading is done and - /// the pre-loader should be cleared. - /// Generally, this HVC is triggered by `shim` in the first `brk` syscall. - HClearGuestAreas = HYPER_CALL_CODE_PRIVILEGED_MASK | 11, HMMapSync = HYPER_CALL_CODE_PRIVILEGED_MASK | 12, @@ -101,7 +92,6 @@ impl core::fmt::Debug for HyperCallCode { HyperCallCode::HIVCGet => write!(f, "HIVCGet {:#x}", *self as u32), 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), HyperCallCode::HBenchEPTMmap => write!(f, "HBenchEPTMmap {:#x}", *self as u32), HyperCallCode::HBenchEPTMUnmap => write!(f, "HBenchEPTMUnmap {:#x}", *self as u32),