Changeset 19334 in vbox for trunk/include
- Timestamp:
- May 4, 2009 4:03:57 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 46812
- Location:
- trunk/include/VBox
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/dbgf.h
r19293 r19334 35 35 #include <VBox/vmm.h> 36 36 #include <VBox/log.h> /* LOG_ENABLED */ 37 #include <VBox/dbgfsel.h> 37 38 38 39 #include <iprt/stdarg.h> … … 814 815 815 816 817 /** @name DBGFR3SelQueryInfo flags. 818 * @{ */ 819 /** Get the info from the guest descriptor table. */ 820 #define DBGFSELQI_FLAGS_DT_GUEST UINT32_C(0) 821 /** Get the info from the shadow descriptor table. 822 * Only works in raw-mode. */ 823 #define DBGFSELQI_FLAGS_DT_SHADOW UINT32_C(1) 824 /** @} */ 825 VMMR3DECL(int) DBGFR3SelQueryInfo(PVM pVM, VMCPUID idCpu, RTSEL Sel, uint32_t fFlags, PDBGFSELINFO pSelInfo); 826 827 816 828 /** 817 829 * Guest OS digger interface identifier. -
trunk/include/VBox/selm.h
r18927 r19334 35 35 #include <VBox/x86.h> 36 36 #include <VBox/dis.h> 37 #include <VBox/dbgfsel.h> 37 38 38 39 … … 85 86 VMMDECL(int) SELMGetLDTFromSel(PVM pVM, RTSEL SelLdt, PRTGCPTR ppvLdt, unsigned *pcbLimit); 86 87 87 /**88 * Selector information structure.89 */90 typedef struct SELMSELINFO91 {92 /** The base address. */93 RTGCPTR GCPtrBase;94 /** The limit (-1). */95 RTGCUINTPTR cbLimit;96 /** The raw descriptor. */97 union98 {99 X86DESC Raw;100 X86DESC64 Raw64;101 };102 /** The selector. */103 RTSEL Sel;104 /** Set if the selector is used by the hypervisor. */105 bool fHyper;106 /** Set if the selector is a real mode segment. */107 bool fRealMode;108 } SELMSELINFO;109 /** Pointer to a SELM selector information struct. */110 typedef SELMSELINFO *PSELMSELINFO;111 /** Pointer to a const SELM selector information struct. */112 typedef const SELMSELINFO *PCSELMSELINFO;113 114 VMMDECL(int) SELMSelInfoValidateCS(PCSELMSELINFO pSelInfo, RTSEL SelCPL);115 116 /** @def SELMSelInfoIsExpandDown117 * Tests whether the selector info describes an expand-down selector or now.118 *119 * @returns true / false.120 * @param pSelInfo The selector info.121 *122 * @remark Realized as a macro for reasons of speed/lazyness and to avoid123 * dragging in VBox/x86.h for now.124 */125 #define SELMSelInfoIsExpandDown(pSelInfo) \126 ( (pSelInfo)->Raw.Gen.u1DescType \127 && ((pSelInfo)->Raw.Gen.u4Type & (X86_SEL_TYPE_DOWN | X86_SEL_TYPE_CODE)) == X86_SEL_TYPE_DOWN)128 129 88 130 89 #ifdef IN_RING3 … … 140 99 VMMR3DECL(int) SELMR3UpdateFromCPUM(PVM pVM, PVMCPU pVCpu); 141 100 VMMR3DECL(int) SELMR3SyncTSS(PVM pVM, PVMCPU pVCpu); 142 VMMR3DECL(int) SELMR3GetSelectorInfo(PVM pVM, PVMCPU pVCpu, RTSEL Sel, P SELMSELINFO pSelInfo);143 VMMR3DECL(int) SELMR3GetShadowSelectorInfo(PVM pVM, RTSEL Sel, P SELMSELINFO pSelInfo);101 VMMR3DECL(int) SELMR3GetSelectorInfo(PVM pVM, PVMCPU pVCpu, RTSEL Sel, PDBGFSELINFO pSelInfo); 102 VMMR3DECL(int) SELMR3GetShadowSelectorInfo(PVM pVM, RTSEL Sel, PDBGFSELINFO pSelInfo); 144 103 VMMR3DECL(void) SELMR3DisableMonitoring(PVM pVM); 145 104 VMMR3DECL(void) SELMR3DumpDescriptor(X86DESC Desc, RTSEL Sel, const char *pszMsg);
Note:
See TracChangeset
for help on using the changeset viewer.