Lock access to regions of the specified type
#include <qvm/gasp.h>
int gasp_lock(struct guest_system *gsp, uint16_t type)
Use this function to lock the guest address space to ensure that no other vdev can interfere with the space before you have finished your task. The address space specified by type can be guest-physical memory (QST_MEMORY) or an I/O port number (QST_X86_IO).
EOK for success; otherwise an error.