gasp_region_info()

Query information about a guest location

Synopsis:

#include <qvm/gasp.h>
int gasp_region_info(const struct qvm_state_block *blk,
                     struct gasp_region *rgn)

Arguments:

blk
A pointer to a qvm_state_block structure with the guest location and range to query. The guest location is stored in the blk->location field and represents a guest-physical address. The range is stored in the blk->length field and represents the number of bytes. The vdev type is stored in blk->type field and is set to either QST_MEMORY, which is used for MMIO vdevs, or QST_PCI_IO, which is used for PCI vdevs.
rgn
A pointer to a gasp_region object where the result can be stored.

Description:

Use this function to get information about the specified guest-physical location.

Returns:

EOK for success; otherwise an error.

Page updated: