Write data into a specified vCPU
Synopsis:
#include <qvm/guest.h>
int guest_cpu_write(struct guest_cpu *gcp,
unsigned flags,
const struct qvm_state_block *blk,
unsigned nblks,
const void *data,
unsigned data_len)
Arguments:
- gcp
- A pointer to the destination vCPU.
- flags
- GXF_* flags
- blk
- An array of qvm_state_block for destination information.
- nblks
- The number of blocks in the array referenced by blk.
- data
- A pointer to source data to be written in the vCPU.
- data_len
- The length, in bytes, of the source data.
Library:
Provided by qvm; no external library is required.
Description:
This function is typically used by the vdev's vread() callback.
Returns:
EOK if successful; otherwise, an error code.