Handle a write to the PCI configuration space
Synopsis:
#include <qvm/vpci.h>
unsigned vpci_cfg_write(void *rw_cfg,
const struct qvm_slice_descriptor *desc,
const struct qvm_state_block *blk,
const void *val)
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 virtual PCI device's vwrite function (vopnd).
- val
- A pointer to a location from where to get the bytes that are to be written.
Library:
Provided by qvm; no external library is required.
Returns:
A bitset of descriptor indexes that were used for the write.