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>
#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
jns .Lvmx_launch
/*.Lvmx_resume:*/
- VMRESUME
+ vmresume
jmp .Lvmx_vmentry_fail
.Lvmx_launch:
- VMLAUNCH
+ vmlaunch
.Lvmx_vmentry_fail:
sti