Update the hosting qvm process instance with new BAR information for the specified BAR or BARs
Synopsis:
#include <qvm/vpci.h>
unsigned vpci_update_bars(struct guest_system *gsp,
unsigned cmd,
struct vpci_bar *bars,
unsigned num_bars)
Arguments:
- gsp
- A pointer to a guest system.
- cmd
- The contents of the command register that controls the specified BAR or BARs.
- bars
- A pointer to an array of vpci_bar objects.
- num_bars
- The length, in bytes, of the array referenced by bars.
Library:
Provided by qvm; no external library is required.
Returns:
1 if any region was changed in any way; otherwise 0.