Possible values for flags in the structure describing a data element (typically in the guest)
#include <qvm/types.h>
enum qvm_state_flags { QSF_NONE = 0x0000, QSF_SEXT_SHIFT = 0, QSF_ZEXT_SHIFT = 4, QSF_EXT_MASK = 0xf, QSF_REPORT_EXCEPTION = 0x8000 };
No block flags specified.
Bits 0-3 indicate the number of bytes to sign-extend.
Bits 4-7 indicate the number of bytes to zero-extend (after doing sign extension).
Mask irrelevant bits
If there's a problem accessing the region, report an exception to the guest.
These values are used in the qvm_state_block data structure's flags member.