vpci_bar
The state of a given 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.
The vb_mapping.host_location and vb_mapping.guest.length fields 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; should be left as zero (0) if this vpci_bar structure is the storage back-end. If this field is non-zero, the qvm process 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.
Page updated:
