From 64cf7a80a17a017a6b88ea17c7f490e42baefcca Mon Sep 17 00:00:00 2001 From: Teddy Astie Date: Thu, 17 Apr 2025 14:24:44 +0000 Subject: [PATCH] vmx: Don't open-code vmresume/vmlaunch instructions binutils 2.25 has support for assembling vmresume/vmlaunch instructions, so we don't need to open-code the byte sequences for these opcodes anymore. Signed-off-by: Teddy Astie Acked-by: Jan Beulich Reviewed-by: Andrew Cooper --- xen/arch/x86/hvm/vmx/entry.S | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/xen/arch/x86/hvm/vmx/entry.S b/xen/arch/x86/hvm/vmx/entry.S index 6aaeb28a5b..2bfee715b3 100644 --- a/xen/arch/x86/hvm/vmx/entry.S +++ b/xen/arch/x86/hvm/vmx/entry.S @@ -21,9 +21,6 @@ #include #include -#define VMRESUME .byte 0x0f,0x01,0xc3 -#define VMLAUNCH .byte 0x0f,0x01,0xc2 - FUNC(vmx_asm_vmexit_handler) SAVE_ALL @@ -166,11 +163,11 @@ UNLIKELY_END(realmode) jns .Lvmx_launch /*.Lvmx_resume:*/ - VMRESUME + vmresume jmp .Lvmx_vmentry_fail .Lvmx_launch: - VMLAUNCH + vmlaunch .Lvmx_vmentry_fail: sti -- 2.39.5