vpci_bar

The state of a specified PCI BAR

Synopsis:

#include <qvm/vpci.h>
struct vpci_bar {
    struct gasp_region vb_mapping;
    uint32_t vb_value;
    uint32_t vb_value_upper;
    uint16_t vb_slice;
    uint16_t vb_breg;
} ;

Data:

struct gasp_region vb_mapping

Current established mapping.

uint32_t vb_value

Current value of the BAR.

uint32_t vb_value_upper

Upper word for 64-bit BARs.

uint16_t vb_slice

Slice index for the BAR.

uint16_t vb_breg

BAR register; if non-zero, the qvm process writes the value of the BAR back to the device when assigning an address to the BAR.

Library:

Provided by qvm; no external library is required.

Description:

The vpci_bar structure's vb_mapping.host_location and vb_mapping.guest.length members are expected to be constant.