Accept implicit memory size for VMREAD/VMWRITE

This commit is contained in:
H. Peter Anvin 2008-08-28 18:05:23 -07:00
parent 5e7d6f1105
commit 163e5874d9
2 changed files with 8 additions and 4 deletions

View File

@ -1735,13 +1735,13 @@ VMLOAD void \3\x0F\x01\xDA X64,VMX
VMMCALL void \3\x0F\x01\xD9 X64,VMX
VMPTRLD mem \2\x0F\xC7\206 VMX
VMPTRST mem \2\x0F\xC7\207 VMX
VMREAD rm32,reg32 \360\2\x0F\x78\101 VMX,NOLONG
VMREAD rm64,reg64 \323\360\2\x0F\x78\101 X64,VMX
VMREAD rm32,reg32 \360\2\x0F\x78\101 VMX,NOLONG,SD
VMREAD rm64,reg64 \323\360\2\x0F\x78\101 X64,VMX,SQ
VMRESUME void \3\x0F\x01\xC3 VMX
VMRUN void \3\x0F\x01\xD8 X64,VMX
VMSAVE void \3\x0F\x01\xDB X64,VMX
VMWRITE reg32,rm32 \360\2\x0F\x79\110 VMX,NOLONG
VMWRITE reg64,rm64 \323\360\2\x0F\x79\110 X64,VMX
VMWRITE reg32,rm32 \360\2\x0F\x79\110 VMX,NOLONG,SD
VMWRITE reg64,rm64 \323\360\2\x0F\x79\110 X64,VMX,SQ
VMXOFF void \3\x0F\x01\xC4 VMX
VMXON mem \363\2\x0F\xC7\206 VMX
;# Extended Page Tables VMX instructions

View File

@ -3,10 +3,14 @@
bits 32
vmread dword [0], eax
vmwrite eax, dword [0]
vmread [0], eax
vmwrite eax, [0]
bits 64
vmread qword [0], rax
vmwrite rax, qword [0]
vmread [0], rax
vmwrite rax, [0]
%ifdef ERROR
bits 32