vpci_cfg_read()

Handle a read from a PCI configuration space register

Synopsis:

#include <qvm/vpci.h>
unsigned vpci_cfg_read(const void *rw_cfg,
                       const struct qvm_slice_descriptor *desc,
                       const struct qvm_state_block *blk,
                       void *val,
                       const struct _pci_config_regs *ro_cfg)

Arguments:

rw_cfg
A pointer to the device's read/write state.
desc
A pointer to a slice descriptor array.
blk
The operand of the vPCI device's vread function (vopnd). This operand is the starting address and length of the data being read.
val
A pointer to a location for storing the bytes that are read in.
ro_cfg
A pointer to the read-only configuration for the device.

Returns:

A bitset of descriptor indexes used during the read operation.

Page updated: