mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
3d3cf4bea8
commit
4e9929f5bd
1 file changed
+1
-1
@@ -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;
|
||||
|
||||