vpci_cfg_write()

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 configuration state.
desc
A pointer to a slice descriptor array.
blk
The operand of the vPCI device's vwrite function (vopnd). This operand is the starting address and length of the data being written.
val
A pointer to a location containing the bytes that are to be written.

Returns:

A bitset of descriptor indexes that were used for writing the data.

Page updated: