Changeset 47445 in vbox for trunk/include/VBox/vmm
- Timestamp:
- Jul 29, 2013 12:37:37 AM (11 years ago)
- Location:
- trunk/include/VBox/vmm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/hm_vmx.h
r47437 r47445 788 788 #define MSR_IA32_VMX_BASIC_INFO_VMCS_MEM_TYPE(a) (((a) >> 50) & 0xF) 789 789 /** Whether the processor provides additional information for exits due to INS/OUTS. */ 790 #define MSR_IA32_VMX_BASIC_INFO_VMCS_INS_OUTS(a) (((a) >> 54) & 1)790 #define MSR_IA32_VMX_BASIC_INFO_VMCS_INS_OUTS(a) RT_BOOL((a) & RT_BIT_64(54)) 791 791 /** @} */ 792 792 … … 1413 1413 */ 1414 1414 /** 0-2: IO operation width. */ 1415 #define VMX_EXIT_QUALIFICATION_IO_WIDTH(a) ( a& 7)1415 #define VMX_EXIT_QUALIFICATION_IO_WIDTH(a) ((a) & 7) 1416 1416 /** 3: IO operation direction. */ 1417 #define VMX_EXIT_QUALIFICATION_IO_DIRECTION(a) (( a>> 3) & 1)1418 /** 4: String IO operation . */1419 #define VMX_EXIT_QUALIFICATION_IO_ STRING(a) ((a >> 4) & 1)1417 #define VMX_EXIT_QUALIFICATION_IO_DIRECTION(a) (((a) >> 3) & 1) 1418 /** 4: String IO operation (INS / OUTS). */ 1419 #define VMX_EXIT_QUALIFICATION_IO_IS_STRING(a) RT_BOOL((a) & RT_BIT_64(4)) 1420 1420 /** 5: Repeated IO operation. */ 1421 #define VMX_EXIT_QUALIFICATION_IO_ REP(a) ((a >> 5) & 1)1421 #define VMX_EXIT_QUALIFICATION_IO_IS_REP(a) RT_BOOL((a) & RT_BIT_64(5)) 1422 1422 /** 6: Operand encoding. */ 1423 #define VMX_EXIT_QUALIFICATION_IO_ENCODING(a) (( a>> 6) & 1)1423 #define VMX_EXIT_QUALIFICATION_IO_ENCODING(a) (((a) >> 6) & 1) 1424 1424 /** 16-31: IO Port (0-0xffff). */ 1425 #define VMX_EXIT_QUALIFICATION_IO_PORT(a) (( a>> 16) & 0xffff)1425 #define VMX_EXIT_QUALIFICATION_IO_PORT(a) (((a) >> 16) & 0xffff) 1426 1426 /* Rest reserved. */ 1427 1427 /** @} */ … … 1776 1776 * 1777 1777 * @returns VBox status code 1778 * @retval VINF_SUCCESS 1779 * @retval VERR_VMX_INVALID_VMCS_PTR 1780 * @retval VERR_VMX_INVALID_VMCS_FIELD 1781 * 1778 1782 * @param idxField VMCS index 1779 1783 * @param u32Val 32 bits value 1784 * 1785 * @remarks The values of the two status codes can be ORed together, the result 1786 * will be VERR_VMX_INVALID_VMCS_PTR. 1780 1787 */ 1781 1788 #if ((RT_INLINE_ASM_EXTERNAL || !defined(RT_ARCH_X86)) && !VMX_USE_MSC_INTRINSICS) || defined(VBOX_WITH_HYBRID_32BIT_KERNEL) … … 1837 1844 * 1838 1845 * @returns VBox status code 1846 * @retval VINF_SUCCESS 1847 * @retval VERR_VMX_INVALID_VMCS_PTR 1848 * @retval VERR_VMX_INVALID_VMCS_FIELD 1849 * 1839 1850 * @param idxField VMCS index 1840 1851 * @param u64Val 16, 32 or 64 bits value 1852 * 1853 * @remarks The values of the two status codes can be ORed together, the result 1854 * will be VERR_VMX_INVALID_VMCS_PTR. 1841 1855 */ 1842 1856 #if !defined(RT_ARCH_X86) || defined(VBOX_WITH_HYBRID_32BIT_KERNEL) … … 1901 1915 * 1902 1916 * @returns VBox status code 1917 * @retval VINF_SUCCESS 1918 * @retval VERR_VMX_INVALID_VMCS_PTR 1919 * @retval VERR_VMX_INVALID_VMCS_FIELD 1920 * 1903 1921 * @param idxField VMCS index 1904 1922 * @param pData Ptr to store VM field value 1923 * 1924 * @remarks The values of the two status codes can be ORed together, the result 1925 * will be VERR_VMX_INVALID_VMCS_PTR. 1905 1926 */ 1906 1927 #if ((RT_INLINE_ASM_EXTERNAL || !defined(RT_ARCH_X86)) && !VMX_USE_MSC_INTRINSICS) || defined(VBOX_WITH_HYBRID_32BIT_KERNEL) … … 1972 1993 * 1973 1994 * @returns VBox status code 1995 * @retval VINF_SUCCESS 1996 * @retval VERR_VMX_INVALID_VMCS_PTR 1997 * @retval VERR_VMX_INVALID_VMCS_FIELD 1998 * 1974 1999 * @param idxField VMCS index 1975 2000 * @param pData Ptr to store VM field value 2001 * 2002 * @remarks The values of the two status codes can be ORed together, the result 2003 * will be VERR_VMX_INVALID_VMCS_PTR. 1976 2004 */ 1977 2005 #if (!defined(RT_ARCH_X86) && !VMX_USE_MSC_INTRINSICS) || defined(VBOX_WITH_HYBRID_32BIT_KERNEL) -
trunk/include/VBox/vmm/iem.h
r44529 r47445 29 29 #include <VBox/types.h> 30 30 #include <VBox/vmm/trpm.h> 31 #include <iprt/assert.h> 31 32 32 33 … … 37 38 */ 38 39 40 41 /** 42 * Operand or addressing mode. 43 */ 44 typedef enum IEMMODE 45 { 46 IEMMODE_16BIT = 0, 47 IEMMODE_32BIT, 48 IEMMODE_64BIT 49 } IEMMODE; 50 AssertCompileSize(IEMMODE, 4); 39 51 40 52 … … 54 66 /** @name Given Instruction Interpreters 55 67 * @{ */ 56 68 VMM_INT_DECL(VBOXSTRICTRC) IEMExecStringIoWrite(PVMCPU pVCpu, uint8_t cbValue, IEMMODE enmAddrMode, 69 bool fRepPrefix, uint8_t cbInstr, uint8_t iEffSeg); 70 VMM_INT_DECL(VBOXSTRICTRC) IEMExecStringIoRead(PVMCPU pVCpu, uint8_t cbValue, IEMMODE enmAddrMode, 71 bool fRepPrefix, uint8_t cbInstr); 57 72 /** @} */ 58 73 -
trunk/include/VBox/vmm/pgm.h
r45799 r47445 334 334 VMMDECL(int) PGMGstModifyPage(PVMCPU pVCpu, RTGCPTR GCPtr, size_t cb, uint64_t fFlags, uint64_t fMask); 335 335 VMM_INT_DECL(int) PGMGstGetPaePdpes(PVMCPU pVCpu, PX86PDPE paPdpes); 336 VMM_INT_DECL( int)PGMGstUpdatePaePdpes(PVMCPU pVCpu, PCX86PDPE paPdpes);336 VMM_INT_DECL(void) PGMGstUpdatePaePdpes(PVMCPU pVCpu, PCX86PDPE paPdpes); 337 337 338 338 VMMDECL(int) PGMInvalidatePage(PVMCPU pVCpu, RTGCPTR GCPtrPage);
Note:
See TracChangeset
for help on using the changeset viewer.