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;
uint32_t vb_zero;
} ;Data:
- struct gasp_region vb_mapping
Current established mapping. vb_mapping.host_location and vb_mapping.guest.length are expected to be constant.
- 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
qvmprocess writes the value of the BAR back to the device when assigning an address to the BAR.- uint32_t vb_zero
Must be initialized to 0.
Description:
The vpci_bar structure's vb_mapping.host_location and vb_mapping.guest.length members are expected to be constant.
Page updated:
