qvm_msgblock_start()
Set a maximum message timeout for a block of MsgSend() operations
Synopsis:
#include <qvm/utils.h>void qvm_msgblock_start(const vdev_t *vdp,
unsigned mult)Arguments:
- vdp
- A pointer to a virtual device (vdev), or NULL for all vdevs in this VM.
- mult
- The multiplier of the configured timeout.
Description:
Use this function when you are communicating with an untrusted server and you don't know how many MsgSend() operations there will be. Wrap your messages with qvm_msgblock_start() and qvm_msgblock_stop() calls to make sure that you don't block if a server doesn't reply within the prescribed time.
To set the maximum message time for a single MsgSend() operation, call qvm_msgblock_oneshot().
To configure timeouts, use the qvm set option's message-block-timeout and vdev-message-block-timeout variables. For details, see the set section in the "VM Configuration Reference" chapter in the QNX hypervisor User's Guide.
Page updated:
