mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
209ab249bd
commit
64cf7a80a1
1 file changed
+2
-5
@@ -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
|
||||
|
||||