vpci_ctrl_pci_bars()

Handle VDEV_CTRL_PCI_BARS on behalf of a vPCI device

Synopsis:

#include <qvm/vpci.h>
int vpci_ctrl_pci_bars(struct vpci_rw_state *rw_cfg,
                       const char *arg)

Arguments:

rw_cfg
A pointer to a structure with the vPCI device's state.
arg
The parameter from the device's control routine.

Description:

This function configures the PCI base address registers (BARs) for a vPCI device. It is called by vio_ctrl_pci_bars() when handling the VDEV_CTRL_PCI_BARS callback.

Returns:

This function always returns -6 to indicate an array of 6 vpci_bar objects.

Page updated: