Changeset 96200 in vbox
- Timestamp:
- Aug 14, 2022 3:24:35 AM (2 years ago)
- Location:
- trunk/include
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VMMDevTesting.mac
r93115 r96200 40 40 %define VMMDEV_TESTING_MMIO_READBACK (VMMDEV_TESTING_MMIO_BASE + VMMDEV_TESTING_MMIO_OFF_READBACK) 41 41 %define VMMDEV_TESTING_MMIO_READBACK_R3 (VMMDEV_TESTING_MMIO_BASE + VMMDEV_TESTING_MMIO_OFF_READBACK_R3) 42 %define VMMDEV_TESTING_MMIO_RM_SEL 0xdf0043 %define VMMDEV_TESTING_MMIO_RM_OFF(val) ((val) - VMMDEV_TESTING_MMIO_BASE)44 %define VMMDEV_TESTING_MMIO_RM_OFF2(off) (off)42 %define VMMDEV_TESTING_MMIO_RM_SEL 0xdf00 43 %define VMMDEV_TESTING_MMIO_RM_OFF(val) ((val) - VMMDEV_TESTING_MMIO_BASE) 44 %define VMMDEV_TESTING_MMIO_RM_OFF2(off) (off) 45 45 %define VMMDEV_TESTING_IOPORT_BASE 0x0510 46 46 %define VMMDEV_TESTING_IOPORT_COUNT 0x0010 … … 51 51 %define VMMDEV_TESTING_IOPORT_DATA (VMMDEV_TESTING_IOPORT_BASE + 4) 52 52 %define VMMDEV_TESTING_IOPORT_NOP_R3 (VMMDEV_TESTING_IOPORT_BASE + 5) 53 %define VMMDEV_TESTING_IOPORT_LOCKED_LO (VMMDEV_TESTING_IOPORT_BASE + 6) 54 %define VMMDEV_TESTING_IOPORT_LOCKED_HI (VMMDEV_TESTING_IOPORT_BASE + 7) 53 55 %define VMMDEV_TESTING_CMD_INIT 0xcab1e000 54 56 %define VMMDEV_TESTING_CMD_TERM 0xcab1e001 … … 91 93 %define VMMDEV_TESTING_UNIT_INSTRS_PER_SEC 0x1a 92 94 %define VMMDEV_TESTING_UNIT_NONE 0x1b 93 %define VMMDEV_TESTING_NOP_RET 0x64726962 95 %define VMMDEV_TESTING_UNIT_PP1K 0x1c 96 %define VMMDEV_TESTING_UNIT_PP10K 0x1d 97 %define VMMDEV_TESTING_UNIT_PPM 0x1e 98 %define VMMDEV_TESTING_UNIT_PPB 0x1f 99 %define VMMDEV_TESTING_UNIT_TICKS 0x20 100 %define VMMDEV_TESTING_UNIT_TICKS_PER_CALL 0x21 101 %define VMMDEV_TESTING_UNIT_TICKS_PER_OCCURENCE 0x22 102 %define VMMDEV_TESTING_UNIT_PAGES 0x23 103 %define VMMDEV_TESTING_UNIT_PAGES_PER_SEC 0x24 104 %define VMMDEV_TESTING_UNIT_TICKS_PER_PAGE 0x25 105 %define VMMDEV_TESTING_UNIT_NS_PER_PAGE 0x26 106 %define VMMDEV_TESTING_UNIT_PS 0x27 107 %define VMMDEV_TESTING_UNIT_PS_PER_CALL 0x28 108 %define VMMDEV_TESTING_UNIT_PS_PER_FRAME 0x29 109 %define VMMDEV_TESTING_UNIT_PS_PER_OCCURRENCE 0x2a 110 %define VMMDEV_TESTING_UNIT_PS_PER_PACKET 0x2b 111 %define VMMDEV_TESTING_UNIT_PS_PER_ROUND_TRIP 0x2c 112 %define VMMDEV_TESTING_UNIT_PS_PER_PAGE 0x2d 113 %define VMMDEV_TESTING_NOP_RET 0x64726962 114 %define VMMDEV_TESTING_LOCKED_LO_HOLD_MASK 0x0000ffff 115 %define VMMDEV_TESTING_LOCKED_LO_WAIT_MASK 0xffff0000 116 %define VMMDEV_TESTING_LOCKED_LO_WAIT_SHIFT 16 117 %define VMMDEV_TESTING_LOCKED_HI_TICKS_MASK 0x000fffff 118 %define VMMDEV_TESTING_LOCKED_HI_MBZ_MASK 0x03f00000 119 %define VMMDEV_TESTING_LOCKED_HI_THREAD_SHARED 0x04000000 120 %define VMMDEV_TESTING_LOCKED_HI_EMT_SHARED 0x08000000 121 %define VMMDEV_TESTING_LOCKED_HI_TYPE_RW 0x10000000 122 %define VMMDEV_TESTING_LOCKED_HI_BUSY_SUCCESS 0x20000000 123 %define VMMDEV_TESTING_LOCKED_HI_POKE 0x40000000 124 %define VMMDEV_TESTING_LOCKED_HI_ENABLED 0x80000000 125 %define VMMDEV_TESTING_CFG_DWORD0 0x0000 126 %define VMMDEV_TESTING_CFG_DWORD1 0x0001 127 %define VMMDEV_TESTING_CFG_DWORD2 0x0002 128 %define VMMDEV_TESTING_CFG_DWORD3 0x0003 129 %define VMMDEV_TESTING_CFG_DWORD4 0x0004 130 %define VMMDEV_TESTING_CFG_DWORD5 0x0005 131 %define VMMDEV_TESTING_CFG_DWORD6 0x0006 132 %define VMMDEV_TESTING_CFG_DWORD7 0x0007 133 %define VMMDEV_TESTING_CFG_DWORD8 0x0008 134 %define VMMDEV_TESTING_CFG_DWORD9 0x0009 135 %define VMMDEV_TESTING_CFG_IS_NEM_LINUX 0x0100 136 %define VMMDEV_TESTING_CFG_IS_NEM_WINDOWS 0x0101 137 %define VMMDEV_TESTING_CFG_IS_NEM_DARWIN 0x0102 94 138 %endif -
trunk/include/VBox/err.mac
r93115 r96200 107 107 %define VINF_EM_PENDING_R3_IOPORT_WRITE 1160 108 108 %define VINF_EM_RESUME_R3_HISTORY_EXEC 1161 109 %define VINF_EM_EMULATE_SPLIT_LOCK 1162 109 110 %define VERR_DBGF_NOT_ATTACHED (-1200) 110 111 %define VERR_DBGF_ALREADY_ATTACHED (-1201) … … 149 150 %define VINF_DBGF_R3_BP_OWNER_DEFER 1239 150 151 %define VERR_DBGF_BP_OWNER_CALLBACK_WRONG_STATUS (-1240) 152 %define VERR_DBGF_CANCELLED (-1241) 151 153 %define VWRN_CONTINUE_ANALYSIS 1400 152 154 %define VWRN_CONTINUE_RECOMPILE VWRN_CONTINUE_ANALYSIS … … 205 207 %define VINF_PGM_CACHED_PAGE 1622 206 208 %define VINF_PGM_GCPHYS_ALIASED 1623 207 %define VINF_PGM_CHANGE_MODE 1624208 209 %define VINF_PGM_SYNCPAGE_MODIFIED_PDE 1625 209 210 %define VERR_PGM_GCPHYS_RANGE_CROSSES_BOUNDARY (-1626) … … 268 269 %define VERR_PGM_MODE_IPE (-1686) 269 270 %define VERR_PGM_SHW_NONE_IPE (-1687) 271 %define VERR_PGM_PAE_PDPE_RSVD (-1688) 272 %define VERR_PGM_NOT_SUPPORTED_FOR_NEM_MODE (-1689) 270 273 %define VERR_MM_RAM_CONFLICT (-1700) 271 274 %define VERR_MM_HYPER_NO_MEMORY (-1701) … … 402 405 %define VERR_CFGM_NOT_BYTES (-2108) 403 406 %define VERR_CFGM_NOT_ENOUGH_SPACE (-2109) 407 %define VERR_CFGM_NOT_PASSWORD (-2110) 404 408 %define VERR_CFGM_INVALID_NODE_PATH (-2160) 405 409 %define VERR_CFGM_NODE_EXISTS (-2161) … … 420 424 %define VERR_TM_TSC_ALREADY_PAUSED (-2210) 421 425 %define VERR_TM_VIRTUAL_TICKING_IPE (-2211) 426 %define VERR_TM_TOO_MANY_TIMERS (-2212) 427 %define VERR_TM_INVALID_TIMER_QUEUE (-2213) 428 %define VERR_TM_TIMER_QUEUE_CANNOT_GROW (-2214) 429 %define VERR_TM_IPE_1 (-2291) 430 %define VERR_TM_IPE_2 (-2292) 431 %define VERR_TM_IPE_3 (-2293) 432 %define VERR_TM_IPE_4 (-2294) 433 %define VERR_TM_IPE_5 (-2295) 434 %define VERR_TM_IPE_6 (-2296) 435 %define VERR_TM_IPE_7 (-2297) 436 %define VERR_TM_IPE_8 (-2298) 437 %define VERR_TM_IPE_9 (-2299) 422 438 %define VERR_REM_VIRTUAL_HARDWARE_ERROR (-2300) 423 439 %define VERR_REM_VIRTUAL_CPU_ERROR (-2301) … … 431 447 %define VERR_TRPM_DONT_PANIC (-2403) 432 448 %define VERR_TRPM_PANIC (-2404) 433 %define VINF_TRPM_XCPT_DISPATCHED 2405 434 %define VERR_TRPM_BAD_TRAP_IN_OP (-2406) 435 %define VERR_TRPM_IPE_1 (-2407) 436 %define VERR_TRPM_IPE_2 (-2408) 437 %define VERR_TRPM_IPE_3 (-2409) 438 %define VERR_TRPM_HM_IPE (-2410) 449 %define VERR_TRPM_BAD_TRAP_IN_OP (-2405) 450 %define VERR_TRPM_IPE_1 (-2406) 451 %define VERR_TRPM_IPE_2 (-2407) 452 %define VERR_TRPM_IPE_3 (-2408) 453 %define VERR_TRPM_HM_IPE (-2409) 439 454 %define VERR_SELM_SHADOW_GDT_WRITE (-2500) 440 455 %define VERR_SELM_SHADOW_LDT_WRITE (-2501) … … 501 516 %define VERR_VMM_SMAP_BUT_AC_CLEAR (-2717) 502 517 %define VERR_VMM_WRONG_NEM_VMCPU_STATE (-2718) 518 %define VERR_VMM_CONTEXT_HOOK_STILL_ENABLED (-2719) 519 %define VERR_VMM_CANNOT_BLOCK (-2720) 503 520 %define VERR_PDM_NO_SUCH_LUN (-2800) 504 521 %define VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES (-2801) … … 603 620 %define VERR_PDM_MEDIAEX_IOREQ_INVALID_STATE (-2899) 604 621 %define VINF_PDM_PCI_DO_DEFAULT (7200) 622 %define VERR_PDM_CRITSECT_ABORT_FAILED (-7201) 623 %define VERR_PDM_CRITSECTRW_TOO_MANY_READERS (-7202) 624 %define VERR_PDM_CRITSECTRW_TOO_MANY_WRITERS (-7203) 625 %define VERR_PDM_CRITSECTRW_TOO_MANY_RECURSIONS (-7204) 626 %define VERR_PDM_CRITSECTRW_IPE (-7205) 627 %define VERR_PDM_CRITSECTRW_MISALIGNED (-7206) 605 628 %define VERR_HGCM_SERVICE_NOT_FOUND (-2900) 606 629 %define VINF_HGCM_CLIENT_REJECTED 2901 … … 611 634 %define VINF_HGCM_SAVE_STATE (2906) 612 635 %define VERR_HGCM_SERVICE_EXISTS (-2907) 636 %define VERR_HGCM_TOO_MANY_CLIENTS (-2908) 637 %define VERR_HGCM_TOO_MANY_CLIENT_CALLS (-2909) 613 638 %define VERR_NAT_REDIR_GUEST_IP (-3001) 614 639 %define VERR_NAT_REDIR_SETUP (-3002) … … 783 808 %define VERR_SUPLIB_TEXT_NOT_SEALED (-3777) 784 809 %define VERR_SUPLIB_UNEXPECTED_INSTRUCTION (-3778) 785 %define VERR_GMM_SEED_ME (-3800)786 810 %define VERR_GMM_OUT_OF_MEMORY (-3801) 787 811 %define VERR_GMM_HIT_GLOBAL_LIMIT (-3802) … … 1078 1102 %define VERR_SUP_VP_CREATE_READ_EVT_SEM_FAILED (-5675) 1079 1103 %define VERR_SUP_VP_UNDESIRABLE_MODULE (-5676) 1104 %define VERR_SUP_DRIVERLESS (-5699) 1105 %define VINF_SUP_DRIVERLESS 5699 1080 1106 %define VERR_EXTPACK_UNSUPPORTED_HOST_UNINSTALL (-6000) 1081 1107 %define VERR_EXTPACK_VBOX_VERSION_MISMATCH (-6001) … … 1117 1143 %define VERR_AUDIO_STREAM_NOT_READY (-6605) 1118 1144 %define VERR_AUDIO_STREAM_COULD_NOT_CREATE (-6606) 1145 %define VERR_AUDIO_ENUMERATION_FAILED (-6607) 1146 %define VERR_AUDIO_STREAM_INIT_IN_PROGRESS (-6608) 1147 %define VINF_AUDIO_STREAM_ASYNC_INIT_NEEDED (6609) 1119 1148 %define VERR_APIC_INTR_NOT_PENDING (-6700) 1120 1149 %define VERR_APIC_INTR_MASKED_BY_TPR (-6701) … … 1137 1166 %define VERR_NEM_MISSING_KERNEL_API_4 (-6814) 1138 1167 %define VERR_NEM_MISSING_KERNEL_API_5 (-6815) 1168 %define VERR_NEM_QUERY_DIRTY_BITMAP_FAILED (-6816) 1169 %define VERR_NEM_MISSING_FEATURE (-6817) 1139 1170 %define VERR_NEM_IPE_0 (-6890) 1140 1171 %define VERR_NEM_IPE_1 (-6891) … … 1156 1187 %define VINF_RECORDING_THROTTLED (6907) 1157 1188 %define VERR_RECORDING_THROTTLED (-6907) 1189 %define VERR_RECORDING_ENCODING_FAILED (-6908) 1158 1190 %define VERR_SHCLPB_MAX_TRANSFERS_REACHED (-7100) 1159 1191 %define VERR_SHCLPB_MAX_OBJECTS_REACHED (-7101) … … 1161 1193 %define VERR_SHCLPB_LIST_HANDLE_INVALID (-7103) 1162 1194 %define VERR_SHCLPB_OBJ_HANDLE_INVALID (-7104) 1163 %define VERR_SHCLPB_ TRANSFER_ID_NOT_FOUND (-7105)1195 %define VERR_SHCLPB_EVENT_ID_NOT_FOUND (-7105) 1164 1196 %define VERR_SHCLPB_MAX_EVENTS_REACHED (-7106) 1165 %define VERR_IOMMU_IPE_1 (-7201) 1166 %define VERR_IOMMU_IPE_2 (-7202) 1167 %define VERR_IOMMU_IPE_3 (-7203) 1168 %define VERR_IOMMU_IPE_4 (-7204) 1169 %define VERR_IOMMU_DTE_READ_FAILED (-7205) 1170 %define VERR_IOMMU_DTE_BAD_OFFSET (-7206) 1171 %define VERR_IOMMU_ADDR_TRANSLATION_FAILED (-7207) 1172 %define VERR_IOMMU_ADDR_ACCESS_DENIED (-7208) 1173 %define VERR_IOMMU_INTR_REMAP_FAILED (-7209) 1174 %define VERR_IOMMU_INTR_REMAP_DENIED (-7210) 1175 %define VERR_IOMMU_CMD_NOT_SUPPORTED (-7211) 1176 %define VERR_IOMMU_CMD_INVALID_FORMAT (-7212) 1177 %define VERR_IOMMU_CMD_HW_ERROR (-7213) 1197 %define VERR_SHCLPB_TRANSFER_ID_NOT_FOUND (-7150) 1198 %define VERR_IOMMU_DTE_READ_FAILED (-7300) 1199 %define VERR_IOMMU_DTE_BAD_OFFSET (-7301) 1200 %define VERR_IOMMU_ADDR_TRANSLATION_FAILED (-7302) 1201 %define VERR_IOMMU_ADDR_ACCESS_DENIED (-7303) 1202 %define VERR_IOMMU_INTR_REMAP_FAILED (-7304) 1203 %define VERR_IOMMU_INTR_REMAP_DENIED (-7305) 1204 %define VERR_IOMMU_CMD_NOT_SUPPORTED (-7306) 1205 %define VERR_IOMMU_CMD_INVALID_FORMAT (-7307) 1206 %define VERR_IOMMU_CMD_HW_ERROR (-7308) 1207 %define VERR_IOMMU_NOT_PRESENT (-7309) 1208 %define VERR_IOMMU_CANNOT_CALL_SELF (-7310) 1209 %define VINF_IOMMU_ADDR_TRANSLATION_DISABLED 7311 1210 %define VERR_IOMMU_IPE_0 (-7390) 1211 %define VERR_IOMMU_IPE_1 (-7391) 1212 %define VERR_IOMMU_IPE_2 (-7392) 1213 %define VERR_IOMMU_IPE_3 (-7393) 1214 %define VERR_IOMMU_IPE_4 (-7394) 1215 %define VERR_IOMMU_IPE_5 (-7395) 1216 %define VERR_IOMMU_IPE_6 (-7396) 1217 %define VERR_IOMMU_IPE_7 (-7397) 1218 %define VERR_IOMMU_IPE_8 (-7398) 1219 %define VERR_IOMMU_IPE_9 (-7399) 1178 1220 %include "iprt/err.mac" -
trunk/include/VBox/param.mac
r93115 r96200 30 30 %ifndef RT_WITHOUT_PRAGMA_ONCE 31 31 %endif 32 %define GUEST_PAGE_SIZE 0x1000 33 %define GUEST_PAGE_OFFSET_MASK 0xfff 34 %define GUEST_PAGE_SHIFT 12 35 %define HOST_PAGE_SIZE PAGE_SIZE 36 %define HOST_PAGE_OFFSET_MASK PAGE_OFFSET_MASK 37 %define HOST_PAGE_SHIFT PAGE_SHIFT 32 38 %if ARCH_BITS == 64 33 39 %define VBOX_MAX_ALLOC_PAGE_COUNT (_512M / PAGE_SIZE) … … 57 63 %endif 58 64 %define MM_MMIO_32_MAX _2G 65 %define PDM_NET_SHAPER_MAX_GROUPS 32 66 %define PDM_NET_SHAPER_MAX_NAME_LEN 63 59 67 %define PGM_HANDY_PAGES 128 60 68 %define PGM_HANDY_PAGES_SET_FF 32 -
trunk/include/iprt/err.mac
r93115 r96200 55 55 %define VERR_NO_PAGE_MEMORY (-27) 56 56 %define VINF_ALREADY_INITIALIZED 28 57 %define VERR_ALREADY_INITIALIZED (-28) 57 58 %define VERR_THREAD_IS_DEAD (-29) 58 59 %define VERR_THREAD_NOT_WAITABLE (-30) … … 174 175 %define VERR_EMPTY_STRING (-22422) 175 176 %define VERR_TOO_MANY_REFERENCES (-22423) 177 %define VINF_THREAD_IS_TERMINATING (22424) 178 %define VERR_THREAD_IS_TERMINATING (-22424) 179 %define VERR_PROC_NO_ARG_TRANSLATION (-22425) 180 %define VERR_FLOAT_UNDERFLOW (-22426) 181 %define VWRN_FLOAT_UNDERFLOW (22426) 182 %define VERR_FLOAT_OVERFLOW (-22427) 183 %define VWRN_FLOAT_OVERFLOW (22427) 176 184 %define VERR_FILE_IO_ERROR (-100) 177 185 %define VERR_OPEN_FAILED (-101) … … 610 618 %define VERR_DVM_MAP_NO_VOLUME (-22201) 611 619 %define VERR_LOG_REVISION_MISMATCH (-22300) 620 %define VINF_LOG_DISABLED (22301) 621 %define VINF_LOG_NO_LOGGER (22302) 612 622 %define VERR_SYS_CANNOT_POWER_OFF (-22500) 613 623 %define VINF_SYS_MAY_POWER_OFF (22501) … … 1147 1157 %define VERR_CR_CIPHER_INVALID_KEY_LENGTH (-25807) 1148 1158 %define VERR_CR_CIPHER_INVALID_INITIALIZATION_VECTOR_LENGTH (-25808) 1159 %define VERR_CR_CIPHER_INVALID_TAG_LENGTH (-25809) 1160 %define VERR_CR_CIPHER_OSSL_GET_TAG_FAILED (-25810) 1161 %define VERR_CR_CIPHER_OSSL_SET_TAG_FAILED (-25811) 1149 1162 %define VERR_SHMEM_MAXIMUM_MAPPINGS_REACHED (-26000) 1150 1163 %define VERR_IOQUEUE_HANDLE_NOT_REGISTERED (-26200) … … 1162 1175 %define VERR_TRACELOG_READER_LOG_UNSUPPORTED (-26601) 1163 1176 %define VERR_TRACELOG_READER_ITERATOR_END (-26602) 1177 %define VERR_HARDAVL_INDEX_OUT_OF_BOUNDS (-26801) 1178 %define VERR_HARDAVL_POINTER_OUT_OF_BOUNDS (-26802) 1179 %define VERR_HARDAVL_MISALIGNED_POINTER (-26803) 1180 %define VERR_HARDAVL_NODE_IS_FREE (-26804) 1181 %define VERR_HARDAVL_STACK_OVERFLOW (-26810) 1182 %define VERR_HARDAVL_INSERT_INVALID_KEY_RANGE (-26811) 1183 %define VERR_HARDAVL_BAD_LEFT_HEIGHT (-26812) 1184 %define VERR_HARDAVL_BAD_RIGHT_HEIGHT (-26813) 1185 %define VERR_HARDAVL_BAD_NEW_HEIGHT (-26814) 1186 %define VERR_HARDAVL_UNEXPECTED_NULL_LEFT (-26815) 1187 %define VERR_HARDAVL_UNEXPECTED_NULL_RIGHT (-26816) 1188 %define VERR_HARDAVL_TRAVERSED_TOO_MANY_NODES (-26817) 1189 %define VERR_HARDAVL_LOOKUP_TOO_DEEP (-26818) 1190 %define VERR_HARDAVL_BAD_HEIGHT (-26819) 1191 %define VERR_HARDAVL_UNBALANCED (-26820) -
trunk/include/iprt/x86.mac
r93115 r96200 45 45 %define X86_EFL_1 RT_BIT_32(1) 46 46 %define X86_EFL_PF RT_BIT_32(2) 47 %define X86_EFL_PF_BIT 2 47 48 %define X86_EFL_AF RT_BIT_32(4) 48 49 %define X86_EFL_AF_BIT 4 … … 52 53 %define X86_EFL_SF_BIT 7 53 54 %define X86_EFL_TF RT_BIT_32(8) 55 %define X86_EFL_TF_BIT 8 54 56 %define X86_EFL_IF RT_BIT_32(9) 57 %define X86_EFL_IF_BIT 9 55 58 %define X86_EFL_DF RT_BIT_32(10) 59 %define X86_EFL_DF_BIT 10 56 60 %define X86_EFL_OF RT_BIT_32(11) 57 61 %define X86_EFL_OF_BIT 11 58 62 %define X86_EFL_IOPL (RT_BIT_32(12) | RT_BIT_32(13)) 59 63 %define X86_EFL_NT RT_BIT_32(14) 64 %define X86_EFL_NT_BIT 14 60 65 %define X86_EFL_RF RT_BIT_32(16) 66 %define X86_EFL_RF_BIT 16 61 67 %define X86_EFL_VM RT_BIT_32(17) 68 %define X86_EFL_VM_BIT 17 62 69 %define X86_EFL_AC RT_BIT_32(18) 70 %define X86_EFL_AC_BIT 18 63 71 %define X86_EFL_VIF RT_BIT_32(19) 72 %define X86_EFL_VIF_BIT 19 64 73 %define X86_EFL_VIP RT_BIT_32(20) 74 %define X86_EFL_VIP_BIT 20 65 75 %define X86_EFL_ID RT_BIT_32(21) 76 %define X86_EFL_ID_BIT 21 66 77 %define X86_EFL_LIVE_MASK 0x003f7fd5 67 78 %define X86_EFL_RA1_MASK RT_BIT_32(1) … … 284 295 %define X86_CPUID_SVM_FEATURE_EDX_VGIF RT_BIT(16) 285 296 %define X86_CPUID_SVM_FEATURE_EDX_GMET RT_BIT(17) 297 %define X86_CPUID_SVM_FEATURE_EDX_SSSCHECK RT_BIT(19) 298 %define X86_CPUID_SVM_FEATURE_EDX_SPEC_CTRL RT_BIT(20) 299 %define X86_CPUID_SVM_FEATURE_EDX_HOST_MCE_OVERRIDE RT_BIT(23) 300 %define X86_CPUID_SVM_FEATURE_EDX_TLBICTL RT_BIT(24) 286 301 %define X86_CR0_PE RT_BIT_32(0) 287 302 %define X86_CR0_PROTECTION_ENABLE RT_BIT_32(0) … … 312 327 %define X86_CR3_PAE_PAGE_MASK (0xffffffe0) 313 328 %define X86_CR3_AMD64_PAGE_MASK 0x000ffffffffff000 329 %define X86_CR3_EPT_PAGE_MASK 0x0000fffffffff000 314 330 %define X86_CR4_VME RT_BIT_32(0) 315 331 %define X86_CR4_PVI RT_BIT_32(1) … … 599 615 %define MSR_LASTBRANCH_30_TO_IP 0x6de 600 616 %define MSR_LASTBRANCH_31_TO_IP 0x6df 617 %define MSR_LASTBRANCH_0_INFO 0xdc0 618 %define MSR_LASTBRANCH_1_INFO 0xdc1 619 %define MSR_LASTBRANCH_2_INFO 0xdc2 620 %define MSR_LASTBRANCH_3_INFO 0xdc3 621 %define MSR_LASTBRANCH_4_INFO 0xdc4 622 %define MSR_LASTBRANCH_5_INFO 0xdc5 623 %define MSR_LASTBRANCH_6_INFO 0xdc6 624 %define MSR_LASTBRANCH_7_INFO 0xdc7 625 %define MSR_LASTBRANCH_8_INFO 0xdc8 626 %define MSR_LASTBRANCH_9_INFO 0xdc9 627 %define MSR_LASTBRANCH_10_INFO 0xdca 628 %define MSR_LASTBRANCH_11_INFO 0xdcb 629 %define MSR_LASTBRANCH_12_INFO 0xdcc 630 %define MSR_LASTBRANCH_13_INFO 0xdcd 631 %define MSR_LASTBRANCH_14_INFO 0xdce 632 %define MSR_LASTBRANCH_15_INFO 0xdcf 633 %define MSR_LASTBRANCH_16_INFO 0xdd0 634 %define MSR_LASTBRANCH_17_INFO 0xdd1 635 %define MSR_LASTBRANCH_18_INFO 0xdd2 636 %define MSR_LASTBRANCH_19_INFO 0xdd3 637 %define MSR_LASTBRANCH_20_INFO 0xdd4 638 %define MSR_LASTBRANCH_21_INFO 0xdd5 639 %define MSR_LASTBRANCH_22_INFO 0xdd6 640 %define MSR_LASTBRANCH_23_INFO 0xdd7 641 %define MSR_LASTBRANCH_24_INFO 0xdd8 642 %define MSR_LASTBRANCH_25_INFO 0xdd9 643 %define MSR_LASTBRANCH_26_INFO 0xdda 644 %define MSR_LASTBRANCH_27_INFO 0xddb 645 %define MSR_LASTBRANCH_28_INFO 0xddc 646 %define MSR_LASTBRANCH_29_INFO 0xddd 647 %define MSR_LASTBRANCH_30_INFO 0xdde 648 %define MSR_LASTBRANCH_31_INFO 0xddf 649 %define MSR_LASTBRANCH_SELECT 0x1c8 601 650 %define MSR_LASTBRANCH_TOS 0x1c9 651 %define MSR_LER_FROM_IP 0x1dd 652 %define MSR_LER_TO_IP 0x1de 602 653 %define MSR_IA32_TSX_CTRL 0x122 603 654 %define MSR_IA32_MTRR_PHYSBASE0 0x200 … … 657 708 %define MSR_IA32_VMX_TRUE_ENTRY_CTLS 0x490 658 709 %define MSR_IA32_VMX_VMFUNC 0x491 710 %define MSR_IA32_VMX_PROCBASED_CTLS3 0x492 659 711 %define MSR_IA32_RTIT_CTL 0x570 660 712 %define MSR_IA32_DS_AREA 0x600 … … 816 868 %define X86_PAGE_1G_BASE_MASK 0xffffffffc0000000 817 869 %define X86_IS_CANONICAL(a_u64Addr) ((uint64_t)(a_u64Addr) + 0x800000000000 < UINT64_C(0x1000000000000)) 870 %define X86_GET_PAGE_BASE_MASK(a_cShift) (0xffffffffffffffff << (a_cShift)) 871 %define X86_GET_PAGE_OFFSET_MASK(a_cShift) (~X86_GET_PAGE_BASE_MASK(a_cShift)) 818 872 %define X86_PTE_BIT_P 0 819 873 %define X86_PTE_BIT_RW 1 … … 933 987 %define X86_PDPE_AVL_MASK (RT_BIT_32(9) | RT_BIT_32(10) | RT_BIT_32(11)) 934 988 %define X86_PDPE_PG_MASK 0x000ffffffffff000 989 %define X86_PDPE1G_PG_MASK 0x000fffffc0000000 935 990 %define X86_PDPE_PAE_MBZ_MASK 0xfff00000000001e6 936 991 %define X86_PDPE_LM_NX RT_BIT_64(63) … … 980 1035 %define X86_INVPCID_TYPE_ALL_CONTEXT_EXCL_GLOBAL 3 981 1036 %define X86_INVPCID_TYPE_MAX_VALID X86_INVPCID_TYPE_ALL_CONTEXT_EXCL_GLOBAL 1037 %define X86_FPU_INT64_INDEFINITE INT64_MIN 1038 %define X86_FPU_INT32_INDEFINITE INT32_MIN 1039 %define X86_FPU_INT16_INDEFINITE INT16_MIN 982 1040 %ifndef VBOX_FOR_DTRACE_LIB 983 1041 %endif … … 1008 1066 %define X86_FSW_XCPT_MASK 0x007f 1009 1067 %define X86_FSW_XCPT_ES_MASK 0x00ff 1010 %define X86_FSW_C0 RT_BIT_32(8) 1011 %define X86_FSW_C1 RT_BIT_32(9) 1012 %define X86_FSW_C2 RT_BIT_32(10) 1068 %define X86_FSW_C0 RT_BIT_32(X86_FSW_C0_BIT) 1069 %define X86_FSW_C0_BIT 8 1070 %define X86_FSW_C1 RT_BIT_32(X86_FSW_C1_BIT) 1071 %define X86_FSW_C1_BIT 9 1072 %define X86_FSW_C2 RT_BIT_32(X86_FSW_C2_BIT) 1073 %define X86_FSW_C2_BIT 10 1013 1074 %define X86_FSW_TOP_MASK 0x3800 1014 1075 %define X86_FSW_TOP_SHIFT 11 1015 1076 %define X86_FSW_TOP_SMASK 0x0007 1016 1077 %define X86_FSW_TOP_GET(a_uFsw) (((a_uFsw) >> X86_FSW_TOP_SHIFT) & X86_FSW_TOP_SMASK) 1017 %define X86_FSW_C3 RT_BIT_32(14) 1078 %define X86_FSW_TOP_GET_ST(a_uFsw, a_iSt) ((((a_uFsw) >> X86_FSW_TOP_SHIFT) + (a_iSt)) & X86_FSW_TOP_SMASK) 1079 %define X86_FSW_C3 RT_BIT_32(X86_FSW_C3_BIT) 1080 %define X86_FSW_C3_BIT 14 1018 1081 %define X86_FSW_C_MASK 0x4700 1019 1082 %define X86_FSW_B RT_BIT_32(15) 1083 %define X86_FSW_CX_TO_QUOTIENT(a_fFsw) \ 1084 ( (((a_fFsw) & X86_FSW_C1) >> (X86_FSW_C1_BIT - 0)) \ 1085 | (((a_fFsw) & X86_FSW_C3) >> (X86_FSW_C3_BIT - 1)) \ 1086 | (((a_fFsw) & X86_FSW_C0) >> (X86_FSW_C0_BIT - 2)) ) 1087 %define X86_FSW_CX_FROM_QUOTIENT(a_uQuotient) \ 1088 ( ((uint16_t)((a_uQuotient) & 1) << (X86_FSW_C1_BIT - 0)) \ 1089 | ((uint16_t)((a_uQuotient) & 2) << (X86_FSW_C3_BIT - 1)) \ 1090 | ((uint16_t)((a_uQuotient) & 4) << (X86_FSW_C0_BIT - 2)) ) 1020 1091 %define X86_FCW_IM RT_BIT_32(0) 1092 %define X86_FCW_IM_BIT 0 1021 1093 %define X86_FCW_DM RT_BIT_32(1) 1094 %define X86_FCW_DM_BIT 1 1022 1095 %define X86_FCW_ZM RT_BIT_32(2) 1096 %define X86_FCW_ZM_BIT 2 1023 1097 %define X86_FCW_OM RT_BIT_32(3) 1098 %define X86_FCW_OM_BIT 3 1024 1099 %define X86_FCW_UM RT_BIT_32(4) 1100 %define X86_FCW_UM_BIT 4 1025 1101 %define X86_FCW_PM RT_BIT_32(5) 1102 %define X86_FCW_PM_BIT 5 1026 1103 %define X86_FCW_MASK_ALL 0x007f 1027 %define X86_FCW_XCPT_MASK 1104 %define X86_FCW_XCPT_MASK 0x003f 1028 1105 %define X86_FCW_PC_MASK 0x0300 1106 %define X86_FCW_PC_SHIFT 8 1029 1107 %define X86_FCW_PC_24 0x0000 1030 1108 %define X86_FCW_PC_RSVD 0x0100 … … 1032 1110 %define X86_FCW_PC_64 0x0300 1033 1111 %define X86_FCW_RC_MASK 0x0c00 1112 %define X86_FCW_RC_SHIFT 10 1034 1113 %define X86_FCW_RC_NEAREST 0x0000 1035 1114 %define X86_FCW_RC_DOWN 0x0400 1036 1115 %define X86_FCW_RC_UP 0x0800 1037 1116 %define X86_FCW_RC_ZERO 0x0c00 1117 %define X86_FCW_IC_MASK 0x1000 1118 %define X86_FCW_IC_AFFINE 0x1000 1119 %define X86_FCW_IC_PROJECTIVE 0x0000 1038 1120 %define X86_FCW_ZERO_MASK 0xf080 1039 1121 %define X86_MXCSR_IE RT_BIT_32(0) … … 1051 1133 %define X86_MXCSR_PM RT_BIT_32(12) 1052 1134 %define X86_MXCSR_RC_MASK 0x6000 1135 %define X86_MXCSR_RC_SHIFT 13 1053 1136 %define X86_MXCSR_RC_NEAREST 0x0000 1054 1137 %define X86_MXCSR_RC_DOWN 0x2000
Note:
See TracChangeset
for help on using the changeset viewer.