vio_ctrl_pci_bars()

Handle VDEV_CTRL_PCI_BARS for vdevs

Synopsis:

#include <qvm/vio.h>
int vio_ctrl_pci_bars(struct vio_state *vsp,
                      const char *arg)

Arguments:

vsp
A pointer to the vdev's state structure.
arg
The parameter from the control callback.

Library:

Provided by qvm; no external library is required.

Description:

This function is useful only for vdev's that emulate PCI devices.

Returns:

0 for MMIO vdevs; otherwise, what vpci_ctrl_pci_bars() returns.