From: Teddy Astie Date: Thu, 17 Apr 2025 14:24:44 +0000 (+0000) Subject: vmx: Don't open-code vmresume/vmlaunch instructions X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=64cf7a80a17a017a6b88ea17c7f490e42baefcca;p=people%2Fandrewcoop%2Fxen.git 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 --- 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