-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Chourdakis
committed
Dec 31, 2018
1 parent
e088fad
commit 9cfea61
Showing
12 changed files
with
744 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ TEST_MULTI = 1 | |
TEST_RM_SIPI = 1 | ||
TEST_PM_SIPI = 1 | ||
TEST_LM_SIPI = 1 | ||
TEST_VMX_1 = 1 | ||
TEST_VMX_1 = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
SEGMENT VMX16 USE16 | ||
|
||
|
||
|
||
; VMX Entry for our Virtual Machine | ||
; This is a Real Mode segment | ||
|
||
; Note that since the memory is see through, BIOS and DOS interrupts work here! | ||
|
||
StartVM: | ||
|
||
; Remember we used a protected mode selector to get here? | ||
; Jump to a real mode segment now so CS gets a proper value | ||
|
||
; xchg bx,bx | ||
nop | ||
nop | ||
|
||
db 0eah | ||
dw PM_VM_Entry,VMX16 | ||
PM_VM_Entry: | ||
|
||
nop | ||
nop | ||
nop | ||
nop | ||
nop | ||
jmp T_1 | ||
nop | ||
nop | ||
EntryByte: | ||
nop | ||
nop | ||
nop | ||
T_1: | ||
|
||
mov ax,cs | ||
mov ds,ax | ||
mov ss,ax | ||
mov es,ax | ||
mov sp,0xFFF0 | ||
|
||
; Write a test byte here | ||
mov byte [ds:EntryByte],0xFA | ||
|
||
vmcall ; Forces exit | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
SEGMENT VMX32 USE32 | ||
|
||
; VMX Entry for our Virtual Machine | ||
; This is a Protected Mode segment | ||
|
||
StartVM2: ; This is a protected mode start - 32 bit so registers are already loaded | ||
|
||
|
||
nop | ||
nop | ||
nop | ||
|
||
nop | ||
nop | ||
jmp T_2 | ||
nop | ||
nop | ||
EntryByte2: | ||
nop | ||
nop | ||
nop | ||
T_2: | ||
|
||
|
||
; Write a test byte here | ||
;mov byte [ds:EntryByte2],0xFA | ||
|
||
vmcall ; Forces exit | ||
|
||
|
||
|
||
|
||
|
||
|
Oops, something went wrong.