x86: hvm: hypercall: use define instead of const in hvm_hypercall()

Use define X86_MODE_64BIT instead of constant in hvm_hypercall() for "mode"
conditional check to improve code readability.

Signed-off-by: Grygorii Strashko <grygorii_strashko@epam.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Grygorii Strashko authored and Andrew Cooper committed 2025-11-11 11:32:18 +00:00
1 parent 62d0a92057
commit 8978071143
1 file changed
+1 -1
+1 -1
View File
@@ -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);
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.