| Updated: October 28, 2024 |
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_FORCE_WRITE = 0x4000,
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 the irrelevant bits.
Force the action as a way to bypass compliant emulation for the guest.
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.