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 <teddy.astie@vates.tech>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Teddy Astie authored and Andrew Cooper committed 2025-04-18 15:16:12 +01:00
1 parent 209ab249bd
commit 64cf7a80a1
1 file changed
+2 -5
+2 -5
View File
@@ -21,9 +21,6 @@
#include <asm/asm_defns.h>
#include <asm/page.h>
#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
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.