Function zero

Source
pub fn zero(vm_handle: u64, page: u64, count: u64) -> ApiResult<()>
Expand description

Initialize memory pages in an inner PVM with zeros, allocating if needed.

  • vm_handle: The handle of the PVM whose memory to mutate.
  • page: The index of the first page of inner PVM vm_handle to initialize.
  • count: The number of pages to initialize.

Returns Ok on success or Err if the operation failed.

Pages are initialized to be filled with zeroes. If the pages are not yet allocated, they will be allocated.