projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d3cf4b
)
x86/vmx: Shrink TASK_SWITCH's hvm_task_switch_reason reasons[]
author
Andrew Cooper
<andrew.cooper3@citrix.com>
Wed, 4 Dec 2019 18:21:04 +0000
(18:21 +0000)
committer
Andrew 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
patch
|
blob
|
history
diff --git
a/xen/arch/x86/hvm/vmx/vmx.c
b/xen/arch/x86/hvm/vmx/vmx.c
index 8debf6be3ef928dff2b586bff9fe17b21a13c48b..f6350daf4b3ca7dc9970306b9dcf6d787bba9a4c 100644
(file)
--- a/
xen/arch/x86/hvm/vmx/vmx.c
+++ b/
xen/arch/x86/hvm/vmx/vmx.c
@@
-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;