Update the VirtIO status register for the device
Synopsis:
#include <qvm/vio.h>
unsigned vio_device_status(struct vio_state *vsp,
unsigned on,
unsigned off)
Arguments:
- vsp
- A pointer to the vdev's state structure.
- on
- Bits the device wants to turn on in the status register.
- off
- Bits the device wants to turn off in the status register.
Library:
Provided by qvm; no external library is required.
Returns:
The updated value for the status register.