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.
Description:
This function handles a read reference for a vdev; it must be called by the vdev's vread() function, passing the parameters through.
Returns:
A VIOREF_CLASS_* value indicating any further action that the reference requires the vdev to take.
Page updated:
