x86/vmx: Shrink TASK_SWITCH's hvm_task_switch_reason reasons[]

No need to use 4-byte integers to store two bits of information.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
Andrew Cooper committed 2020-02-11 11:37:35 +00:00
1 parent 3d3cf4bea8
commit 4e9929f5bd
1 file changed
+1 -1
+1 -1
View File
@@ -3979,7 +3979,7 @@ void vmx_vmexit_handler(struct cpu_user_regs *regs)
vmx_update_cpu_exec_control(v);
break;
case EXIT_REASON_TASK_SWITCH: {
static const enum hvm_task_switch_reason reasons[] = {
static const uint8_t reasons[] = {
TSW_call_or_int, TSW_iret, TSW_jmp, TSW_call_or_int
};
unsigned int inst_len, source;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.