VirtualBox

source: vbox/trunk/src/VBox/VMM/include/TRPMInternal.mac@ 45531

Last change on this file since 45531 was 45531, checked in by vboxsync, 12 years ago

VMMR0/HMVMXR0: Redo of VT-x event injection. Some STAM cleanup.
VMM: TRPM enhancements to include instruction-length information for software interrupts and exceptions (#BP, #OF).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.9 KB
Line 
1; $Id: TRPMInternal.mac 45531 2013-04-13 09:01:30Z vboxsync $
2;; @file
3; TRPM - Internal header file.
4;
5
6;
7; Copyright (C) 2006-2012 Oracle Corporation
8;
9; This file is part of VirtualBox Open Source Edition (OSE), as
10; available from http://www.virtualbox.org. This file is free software;
11; you can redistribute it and/or modify it under the terms of the GNU
12; General Public License (GPL) as published by the Free Software
13; Foundation, in version 2 as it comes in the "COPYING" file of the
14; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16;
17
18%include "VBox/asmdefs.mac"
19%include "VBox/vmm/stam.mac"
20
21%define TRPM_TRAP_IN_OP_MASK 0xffff
22%define TRPM_TRAP_IN_MOV_GS 1
23%define TRPM_TRAP_IN_MOV_FS 2
24%define TRPM_TRAP_IN_MOV_ES 3
25%define TRPM_TRAP_IN_MOV_DS 4
26%define TRPM_TRAP_IN_IRET 5
27%define TRPM_TRAP_IN_V86 RT_BIT(30)
28
29struc TRPM
30 .offVM resd 1
31 .offTRPMCPU resd 1
32 .fDisableMonitoring resb 1
33 .fSafeToDropGuestIDTMonitoring resb 1
34 .abPadding1 resb 6
35 .aIdt resd 512
36 .au32IdtPatched resd 8
37 .aTmpTrapHandlers RTRCPTR_RES 256
38
39 .pvMonShwIdtRC RTRCPTR_RES 1
40 .GuestIdtr resb 10
41 .au8Padding resb 2
42
43 .aGuestTrapHandler RTRCPTR_RES 256
44
45 .StatRCWriteGuestIDTFault resb STAMCOUNTER_size
46 .StatRCWriteGuestIDTHandled resb STAMCOUNTER_size
47 .StatSyncIDT resb STAMPROFILE_size
48 .aStatGCTraps resb STAMPROFILEADV_size * 0x14
49
50 .StatForwardProfR3 resb STAMPROFILEADV_size
51 .StatForwardProfRZ resb STAMPROFILEADV_size
52 .StatForwardFailNoHandler resb STAMCOUNTER_size
53 .StatForwardFailPatchAddr resb STAMCOUNTER_size
54 .StatForwardFailR3 resb STAMCOUNTER_size
55 .StatForwardFailRZ resb STAMCOUNTER_size
56
57 .StatTrap0dDisasm resb STAMPROFILE_size
58 .StatTrap0dRdTsc resb STAMCOUNTER_size
59
60%ifdef VBOX_WITH_STATISTICS
61 .paStatForwardedIRQR3 RTR3PTR_RES 1
62 .paStatForwardedIRQR0 RTR0PTR_RES 1
63 .paStatForwardedIRQRC RTRCPTR_RES 1
64 .paStatHostIrqRC RTRCPTR_RES 1
65 .paStatHostIrqR3 RTR3PTR_RES 1
66 .paStatHostIrqR0 RTR0PTR_RES 1
67%endif
68endstruc
69
70struc TRPMCPU
71 .offVM resd 1
72 .offVMCpu resd 1
73 .uActiveVector resd 1
74 .enmActiveType resd 1
75 .uActiveErrorCode RTGCPTR_RES 1
76 .uActiveCR2 RTGCPTR_RES 1
77 .uSavedVector RTGCPTR_RES 1
78 .enmSavedType resd 1
79 .uSavedErrorCode RTGCPTR_RES 1
80 .uSavedCR2 RTGCPTR_RES 1
81 .uPrevVector RTGCPTR_RES 1
82 .cbInstr resb 1
83 .cbSavedInstr resb 1
84 .au8Padding resb 2
85endstruc
86
87struc VBOXTSS
88 .selPrev resw 1
89 .padding1 resw 1
90 .esp0 resd 1
91 .ss0 resw 1
92 .padding_ss0 resw 1
93 .esp1 resd 1
94 .ss1 resw 1
95 .padding_ss1 resw 1
96 .esp2 resd 1
97 .ss2 resw 1
98 .padding_ss2 resw 1
99 .cr3 resd 1
100 .eip resd 1
101 .eflags resd 1
102 .eax resd 1
103 .ecx resd 1
104 .edx resd 1
105 .ebx resd 1
106 .esp resd 1
107 .ebp resd 1
108 .esi resd 1
109 .edi resd 1
110 .es resw 1
111 .padding_es resw 1
112 .cs resw 1
113 .padding_cs resw 1
114 .ss resw 1
115 .padding_ss resw 1
116 .ds resw 1
117 .padding_ds resw 1
118 .fs resw 1
119 .padding_fs resw 1
120 .gs resw 1
121 .padding_gs resw 1
122 .selLdt resw 1
123 .padding_ldt resw 1
124 .fDebugTrap resw 1
125 .offIoBitmap resw 1
126 .IntRedirBitmap resb 32
127endstruc
128
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette