Krish Sadhukhan <krish.sadhukhan@xxxxxxxxxx> writes:
We have a macro for bit 31,0xffffU ?
ÂÂÂ VMX_EXIT_REASONS_FAILED_VMENTRYÂÂÂ ÂÂÂ ÂÂÂ ÂÂÂ 0x80000000
Does it make sense to define a macro like that instead ? Say,
ÂÂÂ VMX_BASIC_EXIT_REASONÂÂÂ ÂÂÂ 0x0000ffff
and then we do,Just a naming suggestion: if we decide to go down this road, let's name
ÂÂÂ u32 exit_reason = vmx->exit_reason;
ÂÂÂ u16 basic_exit_reason = exit_reason & VMX_BASIC_EXIT_REASON;
it e.g. VMX_BASIC_EXIT_REASON_MASK to make it clear this is *not* an
exit reason.