hpci_device_attach()

Attach a vdev to the specified host PCI device

Synopsis:

#include <qvm/hpci.h>
void* hpci_device_attach(uint64_t location,
                         int rdonly)

Arguments:

location
A QSL_PCI_MAKE_LOC encoded location (see Definitions in types.h).
rdonly
Device read and write access: if 1, read only; if 0, read and write.

Library:

Provided by qvm; no external library is required.

Description:

Call this function if your vdev needs access to a PCI device in the host.

Returns:

A handle to a device, or NULL if unsuccessful.