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 (1) or not flushed (0).

Description:

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