1 | /* $Id: tstDBGCStubs.cpp 54218 2015-02-16 15:17:05Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * DBGC Testcase - Command Parser, VMM Stub Functions.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2006-2013 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/err.h>
|
---|
19 | #include <VBox/vmm/vm.h>
|
---|
20 | #include <iprt/string.h>
|
---|
21 |
|
---|
22 |
|
---|
23 |
|
---|
24 | #include <VBox/vmm/dbgf.h>
|
---|
25 | VMMR3DECL(PDBGFADDRESS) DBGFR3AddrFromFlat(PUVM pUVM, PDBGFADDRESS pAddress, RTGCUINTPTR FlatPtr)
|
---|
26 | {
|
---|
27 | return NULL;
|
---|
28 | }
|
---|
29 |
|
---|
30 | VMMR3DECL(int) DBGFR3AddrFromSelOff(PUVM pUVM, VMCPUID idCpu, PDBGFADDRESS pAddress, RTSEL Sel, RTUINTPTR off)
|
---|
31 | {
|
---|
32 | /* bad:bad -> provke error during parsing. */
|
---|
33 | if (Sel == 0xbad && off == 0xbad)
|
---|
34 | return VERR_OUT_OF_SELECTOR_BOUNDS;
|
---|
35 |
|
---|
36 | /* real mode conversion. */
|
---|
37 | pAddress->FlatPtr = (uint32_t)(Sel << 4) | off;
|
---|
38 | pAddress->fFlags |= DBGFADDRESS_FLAGS_FLAT;
|
---|
39 | pAddress->Sel = DBGF_SEL_FLAT;
|
---|
40 | pAddress->off = pAddress->FlatPtr;
|
---|
41 | return VINF_SUCCESS;
|
---|
42 | }
|
---|
43 |
|
---|
44 | VMMR3DECL(int) DBGFR3AddrToPhys(PUVM pUVM, VMCPUID idCpu, PDBGFADDRESS pAddress, PRTGCPHYS pGCPhys)
|
---|
45 | {
|
---|
46 | return VERR_INTERNAL_ERROR;
|
---|
47 | }
|
---|
48 |
|
---|
49 | VMMR3DECL(int) DBGFR3Attach(PUVM pUVM)
|
---|
50 | {
|
---|
51 | return VERR_INTERNAL_ERROR;
|
---|
52 | }
|
---|
53 |
|
---|
54 | VMMR3DECL(int) DBGFR3BpClear(PUVM pUVM, RTUINT iBp)
|
---|
55 | {
|
---|
56 | return VERR_INTERNAL_ERROR;
|
---|
57 | }
|
---|
58 | VMMR3DECL(int) DBGFR3BpDisable(PUVM pUVM, RTUINT iBp)
|
---|
59 | {
|
---|
60 | return VERR_INTERNAL_ERROR;
|
---|
61 | }
|
---|
62 | VMMR3DECL(int) DBGFR3BpEnable(PUVM pUVM, RTUINT iBp)
|
---|
63 | {
|
---|
64 | return VERR_INTERNAL_ERROR;
|
---|
65 | }
|
---|
66 | VMMR3DECL(int) DBGFR3BpEnum(PUVM pUVM, PFNDBGFBPENUM pfnCallback, void *pvUser)
|
---|
67 | {
|
---|
68 | return VERR_INTERNAL_ERROR;
|
---|
69 | }
|
---|
70 | VMMR3DECL(int) DBGFR3BpSet(PUVM pUVM, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable, PRTUINT piBp)
|
---|
71 | {
|
---|
72 | return VERR_INTERNAL_ERROR;
|
---|
73 | }
|
---|
74 | VMMR3DECL(int) DBGFR3BpSetReg(PUVM pUVM, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable,
|
---|
75 | uint8_t fType, uint8_t cb, PRTUINT piBp)
|
---|
76 | {
|
---|
77 | return VERR_INTERNAL_ERROR;
|
---|
78 | }
|
---|
79 | VMMR3DECL(int) DBGFR3BpSetREM(PUVM pUVM, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable, PRTUINT piBp)
|
---|
80 | {
|
---|
81 | return VERR_INTERNAL_ERROR;
|
---|
82 | }
|
---|
83 | VMMR3DECL(int) DBGFR3QueryWaitable(PUVM pUVM)
|
---|
84 | {
|
---|
85 | return VINF_SUCCESS;
|
---|
86 | }
|
---|
87 | VMMR3DECL(int) DBGFR3Detach(PUVM pUVM)
|
---|
88 | {
|
---|
89 | return VERR_INTERNAL_ERROR;
|
---|
90 | }
|
---|
91 | VMMR3DECL(int) DBGFR3DisasInstrEx(PUVM pUVM, VMCPUID idCpu, RTSEL Sel, RTGCPTR GCPtr, uint32_t fFlags,
|
---|
92 | char *pszOutput, uint32_t cchOutput, uint32_t *pcbInstr)
|
---|
93 | {
|
---|
94 | return VERR_INTERNAL_ERROR;
|
---|
95 | }
|
---|
96 | VMMR3DECL(int) DBGFR3EventWait(PUVM pUVM, RTMSINTERVAL cMillies, PCDBGFEVENT *ppEvent)
|
---|
97 | {
|
---|
98 | return VERR_INTERNAL_ERROR;
|
---|
99 | }
|
---|
100 | VMMR3DECL(int) DBGFR3Halt(PUVM pUVM)
|
---|
101 | {
|
---|
102 | return VERR_INTERNAL_ERROR;
|
---|
103 | }
|
---|
104 | VMMR3DECL(int) DBGFR3Info(PUVM pUVM, const char *pszName, const char *pszArgs, PCDBGFINFOHLP pHlp)
|
---|
105 | {
|
---|
106 | return VERR_INTERNAL_ERROR;
|
---|
107 | }
|
---|
108 | VMMR3DECL(int) DBGFR3InfoEx(PUVM pUVM, VMCPUID idCpu, const char *pszName, const char *pszArgs, PCDBGFINFOHLP pHlp)
|
---|
109 | {
|
---|
110 | return VERR_INTERNAL_ERROR;
|
---|
111 | }
|
---|
112 | VMMR3DECL(bool) DBGFR3IsHalted(PUVM pUVM)
|
---|
113 | {
|
---|
114 | return true;
|
---|
115 | }
|
---|
116 | VMMR3DECL(int) DBGFR3LogModifyDestinations(PUVM pUVM, const char *pszDestSettings)
|
---|
117 | {
|
---|
118 | return VERR_INTERNAL_ERROR;
|
---|
119 | }
|
---|
120 | VMMR3DECL(int) DBGFR3LogModifyFlags(PUVM pUVM, const char *pszFlagSettings)
|
---|
121 | {
|
---|
122 | return VERR_INTERNAL_ERROR;
|
---|
123 | }
|
---|
124 | VMMR3DECL(int) DBGFR3LogModifyGroups(PUVM pUVM, const char *pszGroupSettings)
|
---|
125 | {
|
---|
126 | return VERR_INTERNAL_ERROR;
|
---|
127 | }
|
---|
128 | VMMR3DECL(RTDBGCFG) DBGFR3AsGetConfig(PUVM pUVM)
|
---|
129 | {
|
---|
130 | return NIL_RTDBGCFG;
|
---|
131 | }
|
---|
132 | VMMR3DECL(int) DBGFR3AsLoadImage(PUVM pUVM, RTDBGAS hAS, const char *pszFilename, const char *pszModName, RTLDRARCH enmArch,
|
---|
133 | PCDBGFADDRESS pModAddress, RTDBGSEGIDX iModSeg, uint32_t fFlags)
|
---|
134 | {
|
---|
135 | return VERR_INTERNAL_ERROR;
|
---|
136 | }
|
---|
137 | VMMR3DECL(int) DBGFR3AsLoadMap(PUVM pUVM, RTDBGAS hAS, const char *pszFilename, const char *pszModName, PCDBGFADDRESS pModAddress, RTDBGSEGIDX iModSeg, RTGCUINTPTR uSubtrahend, uint32_t fFlags)
|
---|
138 | {
|
---|
139 | return VERR_INTERNAL_ERROR;
|
---|
140 | }
|
---|
141 | VMMR3DECL(int) DBGFR3AsUnlinkModuleByName(PUVM pUVM, RTDBGAS hDbgAs, const char *pszModName)
|
---|
142 | {
|
---|
143 | return VERR_INTERNAL_ERROR;
|
---|
144 | }
|
---|
145 | VMMR3DECL(RTDBGAS) DBGFR3AsResolveAndRetain(PUVM pUVM, RTDBGAS hAlias)
|
---|
146 | {
|
---|
147 | return NIL_RTDBGAS;
|
---|
148 | }
|
---|
149 | VMMR3DECL(int) DBGFR3AsLineByAddr(PUVM pUVM, RTDBGAS hDbgAs, PCDBGFADDRESS pAddress,
|
---|
150 | PRTGCINTPTR poffDisp, PRTDBGLINE pLine, PRTDBGMOD phMod)
|
---|
151 | {
|
---|
152 | return VERR_DBG_LINE_NOT_FOUND;
|
---|
153 | }
|
---|
154 | VMMR3DECL(int) DBGFR3Resume(PUVM pUVM)
|
---|
155 | {
|
---|
156 | return VERR_INTERNAL_ERROR;
|
---|
157 | }
|
---|
158 | VMMR3DECL(int) DBGFR3StackWalkBegin(PUVM pUVM, VMCPUID idCpu, DBGFCODETYPE enmCodeType, PCDBGFSTACKFRAME *ppFirstFrame)
|
---|
159 | {
|
---|
160 | return VERR_INTERNAL_ERROR;
|
---|
161 | }
|
---|
162 | VMMR3DECL(PCDBGFSTACKFRAME) DBGFR3StackWalkNext(PCDBGFSTACKFRAME pCurrent)
|
---|
163 | {
|
---|
164 | return NULL;
|
---|
165 | }
|
---|
166 | VMMR3DECL(void) DBGFR3StackWalkEnd(PCDBGFSTACKFRAME pFirstFrame)
|
---|
167 | {
|
---|
168 | }
|
---|
169 | VMMR3DECL(int) DBGFR3Step(PUVM pUVM, VMCPUID idCpu)
|
---|
170 | {
|
---|
171 | return VERR_INTERNAL_ERROR;
|
---|
172 | }
|
---|
173 | VMMR3DECL(int) DBGFR3AsSymbolByAddr(PUVM pUVM, RTDBGAS hDbgAs, PCDBGFADDRESS pAddress, uint32_t fFlags, PRTGCINTPTR poffDisplacement, PRTDBGSYMBOL pSymbol, PRTDBGMOD phMod)
|
---|
174 | {
|
---|
175 | return VERR_INTERNAL_ERROR;
|
---|
176 | }
|
---|
177 | VMMR3DECL(int) DBGFR3AsSymbolByName(PUVM pUVM, RTDBGAS hDbgAs, const char *pszSymbol, PRTDBGSYMBOL pSymbol, PRTDBGMOD phMod)
|
---|
178 | {
|
---|
179 | return VERR_INTERNAL_ERROR;
|
---|
180 | }
|
---|
181 | VMMR3DECL(int) DBGFR3MemScan(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, RTGCUINTPTR cbRange, RTGCUINTPTR uAlign, const void *pabNeedle, size_t cbNeedle, PDBGFADDRESS pHitAddress)
|
---|
182 | {
|
---|
183 | return VERR_INTERNAL_ERROR;
|
---|
184 | }
|
---|
185 | VMMR3DECL(int) DBGFR3MemRead(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, void *pvBuf, size_t cbRead)
|
---|
186 | {
|
---|
187 | return VERR_INTERNAL_ERROR;
|
---|
188 | }
|
---|
189 | VMMR3DECL(int) DBGFR3MemReadString(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, char *pszBuf, size_t cchBuf)
|
---|
190 | {
|
---|
191 | return VERR_INTERNAL_ERROR;
|
---|
192 | }
|
---|
193 | VMMR3DECL(int) DBGFR3MemWrite(PUVM pUVM, VMCPUID idCpu, PCDBGFADDRESS pAddress, const void *pvBuf, size_t cbRead)
|
---|
194 | {
|
---|
195 | return VERR_INTERNAL_ERROR;
|
---|
196 | }
|
---|
197 | VMMDECL(int) DBGFR3PagingDumpEx(PUVM pUVM, VMCPUID idCpu, uint32_t fFlags, uint64_t cr3, uint64_t u64FirstAddr,
|
---|
198 | uint64_t u64LastAddr, uint32_t cMaxDepth, PCDBGFINFOHLP pHlp)
|
---|
199 | {
|
---|
200 | return VERR_INTERNAL_ERROR;
|
---|
201 | }
|
---|
202 | VMMR3DECL(int) DBGFR3RegNmValidate(PUVM pUVM, VMCPUID idDefCpu, const char *pszReg)
|
---|
203 | {
|
---|
204 | if ( !strcmp(pszReg, "ah")
|
---|
205 | || !strcmp(pszReg, "ax")
|
---|
206 | || !strcmp(pszReg, "eax")
|
---|
207 | || !strcmp(pszReg, "rax"))
|
---|
208 | return VINF_SUCCESS;
|
---|
209 | return VERR_DBGF_REGISTER_NOT_FOUND;
|
---|
210 | }
|
---|
211 | VMMR3DECL(int) DBGFR3RegCpuQueryU8( PUVM pUVM, VMCPUID idCpu, DBGFREG enmReg, uint8_t *pu8)
|
---|
212 | {
|
---|
213 | return VERR_INTERNAL_ERROR;
|
---|
214 | }
|
---|
215 | VMMR3DECL(int) DBGFR3RegCpuQueryU16( PUVM pUVM, VMCPUID idCpu, DBGFREG enmReg, uint16_t *pu16)
|
---|
216 | {
|
---|
217 | return VERR_INTERNAL_ERROR;
|
---|
218 | }
|
---|
219 | VMMR3DECL(int) DBGFR3RegCpuQueryU32( PUVM pUVM, VMCPUID idCpu, DBGFREG enmReg, uint32_t *pu32)
|
---|
220 | {
|
---|
221 | return VERR_INTERNAL_ERROR;
|
---|
222 | }
|
---|
223 | VMMR3DECL(int) DBGFR3RegCpuQueryU64( PUVM pUVM, VMCPUID idCpu, DBGFREG enmReg, uint64_t *pu64)
|
---|
224 | {
|
---|
225 | return VERR_INTERNAL_ERROR;
|
---|
226 | }
|
---|
227 | VMMR3DECL(int) DBGFR3RegNmQuery(PUVM pUVM, VMCPUID idDefCpu, const char *pszReg, PDBGFREGVAL pValue, PDBGFREGVALTYPE penmType)
|
---|
228 | {
|
---|
229 | if (idDefCpu == 0 || idDefCpu == DBGFREG_HYPER_VMCPUID)
|
---|
230 | {
|
---|
231 | if (!strcmp(pszReg, "ah"))
|
---|
232 | {
|
---|
233 | pValue->u16 = 0xf0;
|
---|
234 | *penmType = DBGFREGVALTYPE_U8;
|
---|
235 | return VINF_SUCCESS;
|
---|
236 | }
|
---|
237 | if (!strcmp(pszReg, "ax"))
|
---|
238 | {
|
---|
239 | pValue->u16 = 0xbabe;
|
---|
240 | *penmType = DBGFREGVALTYPE_U16;
|
---|
241 | return VINF_SUCCESS;
|
---|
242 | }
|
---|
243 | if (!strcmp(pszReg, "eax"))
|
---|
244 | {
|
---|
245 | pValue->u32 = 0xcafebabe;
|
---|
246 | *penmType = DBGFREGVALTYPE_U32;
|
---|
247 | return VINF_SUCCESS;
|
---|
248 | }
|
---|
249 | if (!strcmp(pszReg, "rax"))
|
---|
250 | {
|
---|
251 | pValue->u64 = UINT64_C(0x00beef00feedface);
|
---|
252 | *penmType = DBGFREGVALTYPE_U32;
|
---|
253 | return VINF_SUCCESS;
|
---|
254 | }
|
---|
255 | }
|
---|
256 | return VERR_DBGF_REGISTER_NOT_FOUND;
|
---|
257 | }
|
---|
258 | VMMR3DECL(int) DBGFR3RegPrintf(PUVM pUVM, VMCPUID idCpu, char *pszBuf, size_t cbBuf, const char *pszFormat, ...)
|
---|
259 | {
|
---|
260 | return VERR_INTERNAL_ERROR;
|
---|
261 | }
|
---|
262 | VMMDECL(ssize_t) DBGFR3RegFormatValue(char *pszBuf, size_t cbBuf, PCDBGFREGVAL pValue, DBGFREGVALTYPE enmType, bool fSpecial)
|
---|
263 | {
|
---|
264 | return VERR_INTERNAL_ERROR;
|
---|
265 | }
|
---|
266 | VMMR3DECL(int) DBGFR3RegNmSet(PUVM pUVM, VMCPUID idDefCpu, const char *pszReg, PCDBGFREGVAL pValue, DBGFREGVALTYPE enmType)
|
---|
267 | {
|
---|
268 | return VERR_INTERNAL_ERROR;
|
---|
269 | }
|
---|
270 |
|
---|
271 | VMMR3DECL(PDBGFADDRESS) DBGFR3AddrFromPhys(PUVM pUVM, PDBGFADDRESS pAddress, RTGCPHYS PhysAddr)
|
---|
272 | {
|
---|
273 | return NULL;
|
---|
274 | }
|
---|
275 | VMMR3DECL(int) DBGFR3AddrToHostPhys(PUVM pUVM, VMCPUID idCpu, PDBGFADDRESS pAddress, PRTHCPHYS pHCPhys)
|
---|
276 | {
|
---|
277 | return VERR_INTERNAL_ERROR;
|
---|
278 | }
|
---|
279 | VMMR3DECL(int) DBGFR3AddrToVolatileR3Ptr(PUVM pUVM, VMCPUID idCpu, PDBGFADDRESS pAddress, bool fReadOnly, void **ppvR3Ptr)
|
---|
280 | {
|
---|
281 | return VERR_INTERNAL_ERROR;
|
---|
282 | }
|
---|
283 |
|
---|
284 | VMMR3DECL(int) DBGFR3OSRegister(PUVM pUVM, PCDBGFOSREG pReg)
|
---|
285 | {
|
---|
286 | return VERR_INTERNAL_ERROR;
|
---|
287 | }
|
---|
288 | VMMR3DECL(int) DBGFR3OSDetect(PUVM pUVM, char *pszName, size_t cchName)
|
---|
289 | {
|
---|
290 | return VERR_INTERNAL_ERROR;
|
---|
291 | }
|
---|
292 | VMMR3DECL(int) DBGFR3OSQueryNameAndVersion(PUVM pUVM, char *pszName, size_t cchName, char *pszVersion, size_t cchVersion)
|
---|
293 | {
|
---|
294 | return VERR_INTERNAL_ERROR;
|
---|
295 | }
|
---|
296 | VMMR3DECL(void *) DBGFR3OSQueryInterface(PUVM pUVM, DBGFOSINTERFACE enmIf)
|
---|
297 | {
|
---|
298 | return NULL;
|
---|
299 | }
|
---|
300 |
|
---|
301 | VMMR3DECL(int) DBGFR3SelQueryInfo(PUVM pUVM, VMCPUID idCpu, RTSEL Sel, uint32_t fFlags, PDBGFSELINFO pSelInfo)
|
---|
302 | {
|
---|
303 | return VERR_INTERNAL_ERROR;
|
---|
304 | }
|
---|
305 |
|
---|
306 | VMMR3DECL(CPUMMODE) DBGFR3CpuGetMode(PUVM pUVM, VMCPUID idCpu)
|
---|
307 | {
|
---|
308 | return CPUMMODE_INVALID;
|
---|
309 | }
|
---|
310 | VMMR3DECL(VMCPUID) DBGFR3CpuGetCount(PUVM pUVM)
|
---|
311 | {
|
---|
312 | return 1;
|
---|
313 | }
|
---|
314 | VMMR3DECL(bool) DBGFR3CpuIsIn64BitCode(PUVM pUVM, VMCPUID idCpu)
|
---|
315 | {
|
---|
316 | return false;
|
---|
317 | }
|
---|
318 |
|
---|
319 | VMMR3DECL(int) DBGFR3CoreWrite(PUVM pUVM, const char *pszFilename, bool fReplaceFile)
|
---|
320 | {
|
---|
321 | return VERR_INTERNAL_ERROR;
|
---|
322 | }
|
---|
323 |
|
---|
324 |
|
---|
325 | //////////////////////////////////////////////////////////////////////////
|
---|
326 | // The rest should eventually be replaced by DBGF calls and eliminated. //
|
---|
327 | /////////////////////////////////////////////////////////////////////////
|
---|
328 |
|
---|
329 | #include <VBox/vmm/cpum.h>
|
---|
330 |
|
---|
331 | VMMDECL(uint64_t) CPUMGetGuestCR3(PVMCPU pVCpu)
|
---|
332 | {
|
---|
333 | return 0;
|
---|
334 | }
|
---|
335 |
|
---|
336 | VMMDECL(uint64_t) CPUMGetGuestCR4(PVMCPU pVCpu)
|
---|
337 | {
|
---|
338 | return 0;
|
---|
339 | }
|
---|
340 |
|
---|
341 | VMMDECL(RTSEL) CPUMGetGuestCS(PVMCPU pVCpu)
|
---|
342 | {
|
---|
343 | return 0;
|
---|
344 | }
|
---|
345 |
|
---|
346 | VMMDECL(PCCPUMCTXCORE) CPUMGetGuestCtxCore(PVMCPU pVCpu)
|
---|
347 | {
|
---|
348 | return NULL;
|
---|
349 | }
|
---|
350 |
|
---|
351 | VMMDECL(uint32_t) CPUMGetGuestEIP(PVMCPU pVCpu)
|
---|
352 | {
|
---|
353 | return 0;
|
---|
354 | }
|
---|
355 |
|
---|
356 | VMMDECL(uint64_t) CPUMGetGuestRIP(PVMCPU pVCpu)
|
---|
357 | {
|
---|
358 | return 0;
|
---|
359 | }
|
---|
360 |
|
---|
361 | VMMDECL(RTGCPTR) CPUMGetGuestIDTR(PVMCPU pVCpu, uint16_t *pcbLimit)
|
---|
362 | {
|
---|
363 | return 0;
|
---|
364 | }
|
---|
365 |
|
---|
366 | VMMDECL(CPUMMODE) CPUMGetGuestMode(PVMCPU pVCpu)
|
---|
367 | {
|
---|
368 | return CPUMMODE_INVALID;
|
---|
369 | }
|
---|
370 |
|
---|
371 | VMMDECL(RTSEL) CPUMGetHyperCS(PVMCPU pVCpu)
|
---|
372 | {
|
---|
373 | return 0xfff8;
|
---|
374 | }
|
---|
375 |
|
---|
376 | VMMDECL(uint32_t) CPUMGetHyperEIP(PVMCPU pVCpu)
|
---|
377 | {
|
---|
378 | return 0;
|
---|
379 | }
|
---|
380 |
|
---|
381 | VMMDECL(PCPUMCTX) CPUMQueryGuestCtxPtr(PVMCPU pVCpu)
|
---|
382 | {
|
---|
383 | return NULL;
|
---|
384 | }
|
---|
385 |
|
---|
386 | VMMDECL(bool) CPUMIsGuestIn64BitCode(PVMCPU pVCpu)
|
---|
387 | {
|
---|
388 | return false;
|
---|
389 | }
|
---|
390 |
|
---|
391 | VMMDECL(uint32_t) CPUMGetGuestEFlags(PVMCPU pVCpu)
|
---|
392 | {
|
---|
393 | return 2;
|
---|
394 | }
|
---|
395 |
|
---|
396 | #include <VBox/vmm/hm.h>
|
---|
397 | VMMR3DECL(bool) HMR3IsEnabled(PUVM pUVM)
|
---|
398 | {
|
---|
399 | return true;
|
---|
400 | }
|
---|
401 |
|
---|
402 |
|
---|
403 | #include <VBox/vmm/pgm.h>
|
---|
404 |
|
---|
405 | VMMDECL(RTHCPHYS) PGMGetHyperCR3(PVMCPU pVCpu)
|
---|
406 | {
|
---|
407 | return 0;
|
---|
408 | }
|
---|
409 |
|
---|
410 | VMMDECL(PGMMODE) PGMGetShadowMode(PVMCPU pVCpu)
|
---|
411 | {
|
---|
412 | return PGMMODE_INVALID;
|
---|
413 | }
|
---|
414 |
|
---|
415 | VMMR3DECL(int) PGMR3DbgR3Ptr2GCPhys(PUVM pUVM, RTR3PTR R3Ptr, PRTGCPHYS pGCPhys)
|
---|
416 | {
|
---|
417 | return VERR_INTERNAL_ERROR;
|
---|
418 | }
|
---|
419 |
|
---|
420 | VMMR3DECL(int) PGMR3DbgR3Ptr2HCPhys(PUVM pUVM, RTR3PTR R3Ptr, PRTHCPHYS pHCPhys)
|
---|
421 | {
|
---|
422 | return VERR_INTERNAL_ERROR;
|
---|
423 | }
|
---|
424 | VMMR3DECL(int) PGMR3DbgHCPhys2GCPhys(PUVM pUVM, RTHCPHYS HCPhys, PRTGCPHYS pGCPhys)
|
---|
425 | {
|
---|
426 | return VERR_INTERNAL_ERROR;
|
---|
427 | }
|
---|
428 |
|
---|
429 |
|
---|
430 | #include <VBox/vmm/vmm.h>
|
---|
431 |
|
---|
432 | VMMR3DECL(PVMCPU) VMMR3GetCpuByIdU(PUVM pUVM, RTCPUID idCpu)
|
---|
433 | {
|
---|
434 | return NULL;
|
---|
435 | }
|
---|
436 |
|
---|
437 |
|
---|
438 | VMMR3DECL(PVM) VMR3GetVM(PUVM pUVM)
|
---|
439 | {
|
---|
440 | return NULL;
|
---|
441 | }
|
---|