Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106333205
D27377.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
739 B
Referenced Files
None
Subscribers
None
D27377.diff
View Options
Index: sys/amd64/vmm/amd/svm_support.S
===================================================================
--- sys/amd64/vmm/amd/svm_support.S
+++ sys/amd64/vmm/amd/svm_support.S
@@ -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 @@
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 */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 29, 8:57 PM (7 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15633018
Default Alt Text
D27377.diff (739 B)
Attached To
Mode
D27377: vmm: amd: Remove manual instruction encodings
Attached
Detach File
Event Timeline
Log In to Comment