gasp_unmap()

Unmap a qvm process address space range that mapped a guest physical address range

Synopsis:

#include <qvm/gasp.h>
void gasp_unmap(struct guest_system *gsp,
                const void *ptr,
                size_t length,
                int const flush)

Arguments:

gsp
A pointer to the guest system that supplied the mapped physical addresses.
ptr
A pointer to the qvm virtual address to be unmapped.
length
The number of bytes to be unmapped.
flush
Flag indicating if the data cache must be flushed:

Library:

Provided by qvm; no external library is required.

Description:

Use this function to map host-physical to guest-physical address mappings you made with gasp_map_contig(), gasp_map_sys(),or gasp_map_vdma().

  • Flush: 1
  • Don't flush: 0