]> xenbits.xensource.com Git - xen.git/commitdiff
x86/vmx: Shrink TASK_SWITCH's hvm_task_switch_reason reasons[]
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 4 Dec 2019 18:21:04 +0000 (18:21 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 11 Feb 2020 11:37:35 +0000 (11:37 +0000)
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>
xen/arch/x86/hvm/vmx/vmx.c

index 8debf6be3ef928dff2b586bff9fe17b21a13c48b..f6350daf4b3ca7dc9970306b9dcf6d787bba9a4c 100644 (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;