vio_write()
Handle a write reference for a vdev
Synopsis:
#include <qvm/vio.h>unsigned vio_write(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 VIRTIO 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 write reference for a vdev; it must be called by the vdev's vwrite() function, passing the parameters through.
Returns:
A VIOREF_CLASS_* value indicating any further action that the reference requires the vdev to take.
Page updated:
