x86: hvm: hypercall: use define instead of const in hvm_hypercall()
PATCH 1/1 x86: hvm: hypercall: use define instead of const in hvm_hypercall()
From: Grygorii Strashko <[email protected]>
Use define X86_MODE_64BIT instead of constant in hvm_hypercall() for "mode" conditional check to improve code readability.
Signed-off-by Grygorii Strashko <[email protected]>
--- xen/arch/x86/hvm/hypercall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/hvm/hypercall.c +1 -1
@@ -155,7 +155,7 @@ int hvm_hypercall(struct cpu_user_regs *regs) curr->hcall_preempted = false; -if ( mode ==8 ) +if ( mode ==X86_MODE_64BIT ) {HVM_DBG_LOG (DBG_LEVEL_HCALL ,"hcall%lu(%lx, %lx, %lx, %lx, %lx)" , eax, regs->rdi, regs->rsi, regs->rdx, regs->r10, regs->r8);
Signature · 1 line
2.34.1
Quoted 6 lines · Grygorii Strashko
From: Grygorii Strashko <[email protected]>
Use define
X86_MODE_64BITinstead of constant inhvm_hypercall()for "mode" conditional check to improve code readability.Signed-off-by Grygorii Strashko <[email protected]>
Acked-by Andrew Cooper <[email protected]>
but this really needs to wait for 4.22 at this juncture.
~Andrew