mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Remove manual instruction encodings for VMLOAD, VMRUN, and VMSAVE.
This is a relic from when these instructions weren't supported by the toolchain. No functional change. Submitted by: adam_fenn.io Reviewed by: grehan Approved by: grehan (bhyve) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D27130
This commit is contained in:
parent
01f3f35447
commit
ddfc488c36
1 changed files with 3 additions and 7 deletions
|
|
@ -39,10 +39,6 @@
|
|||
#define VENTER push %rbp ; mov %rsp,%rbp
|
||||
#define VLEAVE pop %rbp
|
||||
|
||||
#define VMLOAD .byte 0x0f, 0x01, 0xda
|
||||
#define VMRUN .byte 0x0f, 0x01, 0xd8
|
||||
#define VMSAVE .byte 0x0f, 0x01, 0xdb
|
||||
|
||||
/*
|
||||
* svm_launch(uint64_t vmcb, struct svm_regctx *gctx, struct pcpu *pcpu)
|
||||
* %rdi: physical address of VMCB
|
||||
|
|
@ -91,9 +87,9 @@ ENTRY(svm_launch)
|
|||
movq SCTX_RDI(%rsi), %rdi
|
||||
movq SCTX_RSI(%rsi), %rsi /* %rsi must be restored last */
|
||||
|
||||
VMLOAD
|
||||
VMRUN
|
||||
VMSAVE
|
||||
vmload %rax
|
||||
vmrun %rax
|
||||
vmsave %rax
|
||||
|
||||
pop %rax /* pop guest context pointer from the stack */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue