Map a guest physical address range into the qvm process address space for virtual firmware access
#include <qvm/gasp.h>
void* gasp_map_sys(struct guest_system *gsp, int prot, uint64_t guest_paddr, size_t length)
Use this function to map a guest-physical address range into the qvm process (guest-physical) address space to provide access to virtual firmware in the VM.
This function uses a gsp guest_system pointer and doesn't include a vdev argument. Use this function if you would be passing NULL as the vdev argument. If your vdev argument is not NULL, use gasp_map_vdma().
The above are guidelines, and your design may require that you use the function not recommended in the guidelines. If you don't follow the guidelines, though, be sure that you can justify your decision, and understand the implications of not following them.
Call gasp_unmap() to unmap the address range.
A qvm process pointer that maps the guest physical address, or NULL if unsuccessful.