vio_read()

Handle a read reference for a vdev

Synopsis:

#include <qvm/vio.h>
unsigned vio_read(struct vio_state *vsp,
                  unsigned cookie,
                  const struct qvm_state_block *vopnd,
                  const struct qvm_state_block *oopnd,
                  struct guest_cpu *gcp)

Arguments:

vsp
A pointer to the vdev's state structure.
cookie
A region cookie.
vopnd
A pointer to the vdev operand.
oopnd
A pointer to the other operand.
gcp
A pointer to the guest system's vCPU that is making the reference.

Library:

Provided by qvm; no external library is required.

Description:

This function must be called by the vdev's vread() function, passing the parameters through.

Returns:

(VIOREF_CLASS_*) indication of any further action that the reference requires the vdev to take.