guest_write_all_ones()

Write a series of 1s to a vCPU (e.g., for a 32-bit target: FFFF FFFF)

Synopsis:

#include <qvm/guest.h>
int guest_write_all_ones(struct guest_cpu *gcp,
                         unsigned flags,
                         const struct qvm_state_block *blk)

Arguments:

gcp
A pointer to the destination vCPU.
flags
GXF_* flags (read and write request states).
blk
A pointer to the qvm_state_block array for destination information.

Library:

Provided by qvm; no external library is required.

Description:

Call this function to respond to an invalid request from the guest's vCPU. This function is typically used by the vdev's vread() and vwrite() callbacks.

Returns:

EOK if successful; otherwise, an error code.