Index: /trunk/include/VBox/err.mac
===================================================================
--- /trunk/include/VBox/err.mac	(revision 75993)
+++ /trunk/include/VBox/err.mac	(revision 75994)
@@ -6,5 +6,5 @@
 
 ;
-; Copyright (C) 2006-2017 Oracle Corporation
+; Copyright (C) 2006-2018 Oracle Corporation
 ;
 ; This file is part of VirtualBox Open Source Edition (OSE), as
@@ -51,4 +51,5 @@
 %define VERR_RAW_MODE_NOT_SUPPORTED    (-1023)
 %define VERR_INCONSISTENT_VM_HANDLE    (-1024)
+%define VERR_VM_RESTORED    (-1025)
 %define VINF_EM_FIRST    1100
 %define VINF_EM_TERMINATE    1100
@@ -92,5 +93,4 @@
 %define VINF_EM_RAW_STALE_SELECTOR    1138
 %define VINF_EM_RAW_IRET_TRAP    1139
-%define VINF_EM_RAW_EMULATE_IO_BLOCK    1140
 %define VERR_EM_INTERPRETER    (-1148)
 %define VERR_EM_INTERNAL_ERROR    (-1149)
@@ -103,4 +103,7 @@
 %define VINF_EM_RAW_INJECT_TRPM_EVENT    1157
 %define VERR_EM_GUEST_CPU_HANG    (-1158)
+%define VINF_EM_PENDING_R3_IOPORT_READ    1159
+%define VINF_EM_PENDING_R3_IOPORT_WRITE    1160
+%define VINF_EM_RESUME_R3_HISTORY_EXEC    1161
 %define VERR_DBGF_NOT_ATTACHED    (-1200)
 %define VERR_DBGF_ALREADY_ATTACHED    (-1201)
@@ -242,4 +245,6 @@
 %define VERR_PGM_PHYS_PAGE_MAP_MMIO2_IPE    (-1684)
 %define VERR_PGM_PHYS_MMIO_EX_IPE    (-1685)
+%define VERR_PGM_MODE_IPE    (-1686)
+%define VERR_PGM_SHW_NONE_IPE    (-1687)
 %define VERR_MM_RAM_CONFLICT    (-1700)
 %define VERR_MM_HYPER_NO_MEMORY    (-1701)
@@ -262,4 +267,6 @@
 %define VERR_CPUM_INVALID_XCR0    (-1765)
 %define VINF_CPUM_HOST_CR0_MODIFIED    (1766)
+%define VERR_CPUM_INVALID_HWVIRT_CONFIG    (-1767)
+%define VERR_CPUM_INVALID_HWVIRT_FEAT_COMBO    (-1768)
 %define VERR_SSM_UNIT_EXISTS    (-1800)
 %define VERR_SSM_UNIT_NOT_FOUND    (-1801)
@@ -470,4 +477,5 @@
 %define VERR_VMM_WRONG_HM_VMCPU_STATE    (-2716)
 %define VERR_VMM_SMAP_BUT_AC_CLEAR    (-2717)
+%define VERR_VMM_WRONG_NEM_VMCPU_STATE    (-2718)
 %define VERR_PDM_NO_SUCH_LUN    (-2800)
 %define VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES    (-2801)
@@ -719,4 +727,5 @@
 %define VERR_SUPDRV_NOT_BUDDING_VM_PROCESS_1    (-3748)
 %define VERR_SUPDRV_NOT_BUDDING_VM_PROCESS_2    (-3749)
+%define VERR_SUPDRV_NO_RAW_MODE_HYPER_V_ROOT    (-7000)
 %define VERR_SUPLIB_PATH_NOT_ABSOLUTE    (-3750)
 %define VERR_SUPLIB_PATH_NOT_CLEAN    (-3751)
@@ -791,7 +800,6 @@
 %define VERR_VMX_UNABLE_TO_START_VM    (-4005)
 %define VERR_VMX_INVALID_HOST_STATE    (-4006)
-%define VERR_VMX_ILLEGAL_FEATURE_CONTROL_MSR    (-4007)
-%define VERR_VMX_UNSUPPORTED_MODE    (-4008)
 %define VERR_VMX_NO_VMX    (-4009)
+%define VERR_VMX_NOT_SUPPORTED    (-4010)
 %define VERR_VMX_IN_VMX_ROOT_MODE    (-4011)
 %define VERR_VMX_X86_CR4_VMXE_CLEARED    (-4012)
@@ -812,11 +820,12 @@
 %define VERR_VMX_MSR_ALL_VMX_DISABLED    (-4028)
 %define VERR_VMX_MSR_VMX_DISABLED    (-4029)
-%define VERR_VMX_ENTRY_CTLS_CACHE_INVALID    (-4030)
-%define VERR_VMX_EXIT_CTLS_CACHE_INVALID    (-4031)
-%define VERR_VMX_PIN_EXEC_CTLS_CACHE_INVALID    (-4032)
-%define VERR_VMX_PROC_EXEC_CTLS_CACHE_INVALID    (-4033)
-%define VERR_VMX_PROC_EXEC2_CTLS_CACHE_INVALID    (-4034)
-%define VERR_VMX_MSR_VMX_ENABLE_FAILED    (-4035)
-%define VERR_VMX_MSR_SMX_VMX_ENABLE_FAILED    (-4036)
+%define VERR_VMX_VMCS_FIELD_CACHE_INVALID    (-4030)
+%define VERR_VMX_MSR_VMX_ENABLE_FAILED    (-4031)
+%define VERR_VMX_MSR_SMX_VMX_ENABLE_FAILED    (-4032)
+%define VINF_VMX_VMEXIT    4033
+%define VERR_VMX_VMENTRY_FAILED    (-4033)
+%define VERR_VMX_VMEXIT_FAILED    (-4034)
+%define VINF_VMX_INTERCEPT_NOT_ACTIVE    4035
+%define VINF_VMX_MODIFIES_BEHAVIOR    4036
 %define VERR_SVM_UNABLE_TO_START_VM    (-4050)
 %define VERR_SVM_ILLEGAL_EFER_MSR    (-4051)
@@ -838,4 +847,5 @@
 %define VINF_SVM_VMEXIT    4067
 %define VINF_SVM_VMRUN    4068
+%define VINF_SVM_INTERCEPT_NOT_ACTIVE    4069
 %define VERR_HM_UNKNOWN_CPU    (-4100)
 %define VERR_HM_NO_CPUID    (-4101)
@@ -856,5 +866,5 @@
 %define VERR_HM_INVALID_HM64ON32OP    (-4116)
 %define VINF_HM_DOUBLE_FAULT    4117
-%define VINF_HM_INTERCEPT_NOT_ACTIVE    4118
+%define VINF_HM_PENDING_XCPT    4118
 %define VERR_DIS_INVALID_OPCODE    (-4200)
 %define VERR_DIS_GEN_FAILURE    (-4201)
@@ -1039,5 +1049,6 @@
 %define VWRN_GSTCTL_OBJECTSTATE_CHANGED    6220
 %define VERR_GSTCTL_PROCESS_WRONG_STATE    (-6221)
-%define VWRN_GSTCTL_PROCESS_EXIT_CODE    6221
+%define VERR_GSTCTL_MAX_OBJECTS_REACHED    (-6222)
+%define VERR_GSTCTL_PROCESS_EXIT_CODE    (-6223)
 %define VERR_GIM_NOT_ENABLED    (-6300)
 %define VERR_GIM_IPE_1    (-6301)
@@ -1063,10 +1074,45 @@
 %define VERR_GSTDND_GUEST_ERROR    (-6500)
 %define VERR_AUDIO_BACKEND_INIT_FAILED    (-6600)
-%define VERR_AUDIO_NO_FREE_INPUT_STREAMS    (-6601)
-%define VERR_AUDIO_NO_FREE_OUTPUT_STREAMS    (-6602)
-%define VERR_AUDIO_STREAM_PENDING_DISABLE    (-6603)
-%define VINF_AUDIO_MORE_DATA_AVAILABLE    (6604)
+%define VERR_AUDIO_BACKEND_NOT_ATTACHED    (-6601)
+%define VERR_AUDIO_NO_FREE_INPUT_STREAMS    (-6602)
+%define VERR_AUDIO_NO_FREE_OUTPUT_STREAMS    (-6603)
+%define VERR_AUDIO_STREAM_PENDING_DISABLE    (-6604)
+%define VINF_AUDIO_MORE_DATA_AVAILABLE    (6605)
+%define VERR_AUDIO_STREAM_NOT_READY    (-6605)
+%define VERR_AUDIO_STREAM_COULD_NOT_CREATE    (-6606)
 %define VERR_APIC_INTR_NOT_PENDING    (-6700)
 %define VERR_APIC_INTR_MASKED_BY_TPR    (-6701)
 %define VERR_APIC_INTR_DISCARDED    (-6702)
+%define VERR_NEM_NOT_ENABLED    (-6800)
+%define VERR_NEM_NOT_AVAILABLE    (-6801)
+%define VERR_NEM_INIT_FAILED    (-6802)
+%define VERR_NEM_MISSING_KERNEL_API    (-6803)
+%define VERR_NEM_RING3_ONLY    (-6804)
+%define VERR_NEM_VM_CREATE_FAILED    (-6805)
+%define VERR_NEM_MAP_PAGES_FAILED    (-6806)
+%define VERR_NEM_UNMAP_PAGES_FAILED    (-6807)
+%define VERR_NEM_GET_REGISTERS_FAILED    (-6808)
+%define VERR_NEM_SET_REGISTERS_FAILED    (-6809)
+%define VERR_NEM_FLUSH_TLB    (-6810)
+%define VINF_NEM_FLUSH_TLB    (6810)
+%define VERR_NEM_SET_TSC    (-6811)
+%define VERR_NEM_IPE_0    (-6890)
+%define VERR_NEM_IPE_1    (-6891)
+%define VERR_NEM_IPE_2    (-6892)
+%define VERR_NEM_IPE_3    (-6893)
+%define VERR_NEM_IPE_4    (-6894)
+%define VERR_NEM_IPE_5    (-6895)
+%define VERR_NEM_IPE_6    (-6896)
+%define VERR_NEM_IPE_7    (-6897)
+%define VERR_NEM_IPE_8    (-6898)
+%define VERR_NEM_IPE_9    (-6899)
+%define VERR_RECORDING_CODEC_NOT_FOUND    (-6900)
+%define VERR_RECORDING_CODEC_INIT_FAILED    (-6902)
+%define VERR_RECORDING_CODEC_NOT_SUPPORTED    (-6903)
+%define VERR_RECORDING_FORMAT_NOT_SUPPORTED    (-6904)
+%define VERR_RECORDING_RESTRICTED    (-6905)
+%define VINF_RECORDING_LIMIT_REACHED    (6906)
+%define VERR_RECORDING_LIMIT_REACHED    (-6906)
+%define VINF_RECORDING_THROTTLED    (6907)
+%define VERR_RECORDING_THROTTLED    (-6907)
 %include "iprt/err.mac"
Index: /trunk/include/iprt/err.mac
===================================================================
--- /trunk/include/iprt/err.mac	(revision 75993)
+++ /trunk/include/iprt/err.mac	(revision 75994)
@@ -158,4 +158,5 @@
 %define VERR_MISMATCH    (-22408)
 %define VERR_WRONG_TYPE    (-22409)
+%define VWRN_WRONG_TYPE    (22409)
 %define VERR_PRIVILEGE_NOT_HELD    (-22410)
 %define VERR_PROC_TCB_PRIV_NOT_HELD    (-22411)
@@ -163,4 +164,10 @@
 %define VERR_PROC_IQ_PRIV_NOT_HELD    (-22413)
 %define VERR_MP_TOO_MANY_CPUS    (-22414)
+%define VERR_WRONG_PARAMETER_COUNT    (-22415)
+%define VERR_WRONG_PARAMETER_TYPE    (-22416)
+%define VERR_INVALID_CLIENT_ID    (-22417)
+%define VERR_INVALID_SESSION_ID    (-22418)
+%define VERR_PROC_ELEVATION_REQUIRED    (-22419)
+%define VERR_INCOMPATIBLE_CONFIG    (-22420)
 %define VERR_FILE_IO_ERROR    (-100)
 %define VERR_OPEN_FAILED    (-101)
@@ -227,4 +234,5 @@
 %define VERR_IS_A_BLOCK_DEVICE    (-163)
 %define VERR_IS_A_CHAR_DEVICE    (-164)
+%define VERR_DRIVE_IS_EMPTY    (-165)
 %define VERR_SEARCH_ERROR    (-200)
 %define VERR_NO_MORE_FILES    (-201)
@@ -440,4 +448,7 @@
 %define VERR_CV_TODO    (-692)
 %define VERR_CV_IPE    (-693)
+%define VERR_DBG_NO_UNWIND_INFO    (-694)
+%define VERR_DBG_UNWIND_INFO_NOT_FOUND    (-695)
+%define VERR_DBG_MALFORMED_UNWIND_INFO    (-696)
 %define VERR_RT_REQUEST_INVALID_TYPE    (-700)
 %define VERR_RT_REQUEST_STATE    (-701)
@@ -468,4 +479,5 @@
 %define VERR_S3_BUCKET_NOT_EMPTY    (-878)
 %define VERR_S3_CANCELED    (-879)
+%define VERR_HTTP_STATUS_SERVER_ERROR    (-884)
 %define VERR_HTTP_INIT_FAILED    (-885)
 %define VERR_HTTP_NOT_FOUND    (-886)
@@ -678,6 +690,6 @@
 %define VERR_ASN1_CURSOR_LONG_TAG    (-22830)
 %define VERR_ASN1_CURSOR_BAD_LENGTH_ENCODING    (-22831)
-%define VERR_ASN1_CURSOR_ILLEGAL_IDEFINITE_LENGTH    (-22832)
-%define VERR_ASN1_CURSOR_IDEFINITE_LENGTH_NOT_SUP    (-22833)
+%define VERR_ASN1_CURSOR_ILLEGAL_INDEFINITE_LENGTH    (-22832)
+%define VERR_ASN1_CURSOR_BAD_INDEFINITE_LENGTH    (-22833)
 %define VERR_ASN1_CURSOR_BAD_LENGTH    (-22834)
 %define VERR_ASN1_CURSOR_NO_MORE_DATA    (-22835)
@@ -703,4 +715,5 @@
 %define VERR_ASN1_TOO_DEEPLY_NESTED    (-22855)
 %define VERR_ASN1_UNEXPECTED_OBJ_ID    (-22856)
+%define VERR_ASN1_INVALID_INTEGER_ENCODING    (-22857)
 %define VERR_ASN1_INTERNAL_ERROR_1    (-22895)
 %define VERR_ASN1_INTERNAL_ERROR_2    (-22896)
@@ -738,4 +751,5 @@
 %define VERR_LDRVI_PAGE_HASH_MISMATCH    (-22928)
 %define VERR_LDRVI_IMAGE_HASH_MISMATCH    (-22929)
+%define VERR_LDRVI_BAD_CERT_FORMAT    (-22930)
 %define VERR_LDR_FORWARDER    (-22950)
 %define VERR_LDR_NOT_FORWARDER    (-22951)
@@ -743,4 +757,42 @@
 %define VERR_LDR_FORWARDER_CHAIN_TOO_LONG    (-22953)
 %define VERR_LDR_FORWARDERS_NOT_SUPPORTED    (-22954)
+%define VERR_LDRMACHO_OTHER_ENDIAN_NOT_SUPPORTED    (-22955)
+%define VERR_LDRMACHO_BAD_HEADER    (-22956)
+%define VERR_LDRMACHO_UNSUPPORTED_FILE_TYPE    (-22957)
+%define VERR_LDRMACHO_UNSUPPORTED_MACHINE    (-22958)
+%define VERR_LDRMACHO_BAD_LOAD_COMMAND    (-22959)
+%define VERR_LDRMACHO_UNKNOWN_LOAD_COMMAND    (-22960)
+%define VERR_LDRMACHO_UNSUPPORTED_LOAD_COMMAND    (-22961)
+%define VERR_LDRMACHO_BAD_SECTION    (-22962)
+%define VERR_LDRMACHO_UNSUPPORTED_SECTION    (-22963)
+%define VERR_LDRMACHO_UNSUPPORTED_INIT_SECTION    (-22964)
+%define VERR_LDRMACHO_UNSUPPORTED_TERM_SECTION    (-22965)
+%define VERR_LDRMACHO_UNKNOWN_SECTION    (-22966)
+%define VERR_LDRMACHO_BAD_SECTION_ORDER    (-22967)
+%define VERR_LDRMACHO_BIT_MIX    (-22968)
+%define VERR_LDRMACHO_BAD_OBJECT_FILE    (-22969)
+%define VERR_LDRMACHO_BAD_SYMBOL    (-22970)
+%define VERR_LDRMACHO_UNSUPPORTED_FIXUP_TYPE    (-22971)
+%define VERR_LDRMACHO_MIXED_DEBUG_SECTION_FLAGS    (-22972)
+%define VERR_LDRMACHO_NON_CONT_SEG_BITS    (-22973)
+%define VERR_LDRMACHO_TODO    (-22974)
+%define VERR_LDRMACHO_BAD_SYMTAB_SIZE    (-22975)
+%define VERR_LDR_DUPLICATE_SEGMENT_NAME    (-22976)
+%define VERR_LDR_NO_IMAGE_UUID    (-22977)
+%define VERR_LDR_BAD_FIXUP    (-22978)
+%define VERR_LDR_ADDRESS_OVERFLOW    (-22979)
+%define VERR_LDRLX_BAD_HEADER    (-22980)
+%define VERR_LDRLX_BAD_LOADER_SECTION    (-22981)
+%define VERR_LDRLX_BAD_FIXUP_SECTION    (-22982)
+%define VERR_LDRLX_BAD_OBJECT_TABLE    (-22983)
+%define VERR_LDRLX_BAD_PAGE_MAP    (-22984)
+%define VERR_LDRLX_BAD_ITERDATA    (-22985)
+%define VERR_LDRLX_BAD_ITERDATA2    (-22986)
+%define VERR_LDRLX_BAD_BUNDLE    (-22987)
+%define VERR_LDRLX_NO_SONAME    (-22988)
+%define VERR_LDRLX_BAD_SONAME    (-22989)
+%define VERR_LDRLX_BAD_FORWARDER    (-22990)
+%define VERR_LDRLX_NRICHAIN_NOT_SUPPORTED    (-22991)
+%define VERR_LDRLX_IMPORT_ORDINAL_OUT_OF_BOUNDS    (-22992)
 %define VERR_CR_X509_GENERIC_ERROR    (-23000)
 %define VERR_CR_X509_INTERNAL_ERROR    (-23001)
@@ -813,4 +865,5 @@
 %define VERR_CR_PKCS7_SIGNER_CERT_NOT_SHIPPED    (-22358)
 %define VERR_CR_PKCS7_SIGNER_INFO_DIGEST_ENCRYPT_MISMATCH    (-22359)
+%define VERR_CR_PKCS7_NOT_DATA    (-22360)
 %define VERR_CR_SPC_GENERIC_ERROR    (-23400)
 %define VERR_CR_SPC_NOT_EXACTLY_ONE_SIGNER_INFOS    (-23401)
@@ -848,5 +901,28 @@
 %define VERR_CR_PKIX_OSSL_D2I_PUBLIC_KEY_FAILED    (-23516)
 %define VERR_CR_PKIX_OSSL_EVP_PKEY_TYPE_ERROR    (-23517)
+%define VERR_CR_PKIX_OSSL_D2I_PRIVATE_KEY_FAILED    (-23518)
+%define VERR_CR_PKIX_OSSL_EVP_PKEY_RSA_PAD_ERROR    (-23519)
+%define VERR_CR_PKIX_OSSL_SIGN_FINAL_FAILED    (-23520)
+%define VERR_CR_PKIX_OSSL_VS_IPRT_SIGNATURE_SIZE    (-23521)
+%define VERR_CR_PKIX_OSSL_VS_IPRT_SIGNATURE    (-23522)
+%define VERR_CR_PKIX_NOT_RSA_PRIVATE_KEY    (-23523)
+%define VERR_CR_PKIX_NOT_RSA_PUBLIC_KEY    (-23524)
 %define VERR_CR_STORE_GENERIC_ERROR    (-23700)
+%define VERR_CR_KEY_UNKNOWN_TYPE    (-23800)
+%define VERR_CR_KEY_FORMAT_NOT_SUPPORTED    (-23801)
+%define VERR_CR_KEY_ENCRYPTED    (-23802)
+%define VERR_CR_KEY_NO_DEK_INFO    (-23803)
+%define VERR_CR_KEY_DEK_INFO_TOO_LONG    (-23804)
+%define VERR_CR_KEY_DECRYPTION_NOT_SUPPORTED    (-23805)
+%define VERR_CR_KEY_UNSUPPORTED_CIPHER    (-23806)
+%define VERR_CR_KEY_UNEXPECTED_CIPHER_PARAMS    (-23807)
+%define VERR_CR_KEY_MISSING_CIPHER_PARAMS    (-23808)
+%define VERR_CR_KEY_TOO_SHORT_CIPHER_IV    (-23809)
+%define VERR_CR_KEY_MALFORMED_CIPHER_IV    (-23810)
+%define VERR_CR_KEY_PASSWORD_ENCODING    (-23811)
+%define VERR_CR_KEY_OSSL_DECRYPT_INIT_ERROR    (-23812)
+%define VERR_CR_KEY_DECRYPTION_FAILED    (-23813)
+%define VINF_CR_KEY_WAS_DECRYPTED    (23814)
+%define VERR_CR_KEY_GEN_FAILED_RSA    (-23815)
 %define VERR_CR_RSA_GENERIC_ERROR    (-23900)
 %define VERR_BIGNUM_SENSITIVE_INPUT    (-24000)
@@ -855,4 +931,15 @@
 %define VERR_CR_DIGEST_OSSL_DIGEST_INIT_ERROR    (-24200)
 %define VERR_CR_DIGEST_OSSL_DIGEST_CTX_COPY_ERROR    (-24201)
+%define VINF_CR_DIGEST_DEPRECATED    (24202)
+%define VERR_CR_DIGEST_DEPRECATED    (-24202)
+%define VINF_CR_DIGEST_COMPROMISED    (24203)
+%define VERR_CR_DIGEST_COMPROMISED    (-24203)
+%define VINF_CR_DIGEST_SEVERELY_COMPROMISED    (24204)
+%define VERR_CR_DIGEST_SEVERELY_COMPROMISED    (-24204)
+%define VERR_CR_DIGEST_NOT_SUPPORTED    (-24205)
+%define VERR_CR_PASSWORD_2_KEY_DERIVIATION_FAILED    (-24396)
+%define VERR_CR_RANDOM_SETUP_FAILED    (-24397)
+%define VERR_CR_RANDOM_FAILED    (-24398)
+%define VERR_CR_MALFORMED_PEM_HEADER    (-24399)
 %define VERR_PATH_MATCH_UNKNOWN_VARIABLE    (-24400)
 %define VERR_PATH_MATCH_VARIABLE_MUST_BE_FIRST    (-24401)
@@ -873,4 +960,9 @@
 %define VERR_JSON_ITERATOR_END    (-24701)
 %define VERR_JSON_MALFORMED    (-24702)
+%define VERR_JSON_IS_EMPTY    (-24703)
+%define VERR_JSON_INVALID_UTF16_ESCAPE_SEQUENCE    (-24704)
+%define VERR_JSON_MISSING_SURROGATE_PAIR    (-24705)
+%define VERR_JSON_BAD_SURROGATE_PAIR_SEQUENCE    (-24706)
+%define VERR_JSON_INVALID_CODEPOINT    (-24707)
 %define VERR_VFS_UNKNOWN_FORMAT    (-24800)
 %define VERR_VFS_BOGUS_FORMAT    (-24801)
@@ -1014,2 +1106,36 @@
 %define VERR_SERIALPORT_BREAK_DETECTED    (-25500)
 %define VERR_SERIALPORT_INVALID_BAUDRATE    (-25501)
+%define VERR_REST_RESPONSE_CONTENT_TYPE_NOT_SUPPORTED    (-25700)
+%define VERR_REST_RESPONSE_INVALID_UTF8_ENCODING    (-25701)
+%define VERR_REST_RESPONSE_EMBEDDED_ZERO_CHAR    (-25702)
+%define VERR_REST_RESPONSE_REPEAT_HEADER_FIELD    (-25703)
+%define VWRN_REST_UNABLE_TO_DECODE_DATE    (25704)
+%define VERR_REST_UNABLE_TO_DECODE_DATE    (-25704)
+%define VERR_REST_WRONG_JSON_TYPE_FOR_BOOL    (-25705)
+%define VERR_REST_WRONG_JSON_TYPE_FOR_INTEGER    (-25706)
+%define VERR_REST_WRONG_JSON_TYPE_FOR_DOUBLE    (-25707)
+%define VERR_REST_WRONG_JSON_TYPE_FOR_STRING    (-25708)
+%define VERR_REST_WRONG_JSON_TYPE_FOR_DATE    (-25709)
+%define VERR_REST_UNABLE_TO_PARSE_STRING_AS_BOOL    (-25710)
+%define VERR_REST_PATH_PARAMETER_NOT_SET    (-25711)
+%define VERR_REST_REQUIRED_QUERY_PARAMETER_NOT_SET    (-25712)
+%define VERR_REST_REQUIRED_HEADER_PARAMETER_NOT_SET    (-25713)
+%define VERR_REST_INTERNAL_ERROR_1    (-25791)
+%define VERR_REST_INTERNAL_ERROR_2    (-25792)
+%define VERR_REST_INTERNAL_ERROR_3    (-25793)
+%define VERR_REST_INTERNAL_ERROR_4    (-25794)
+%define VERR_REST_INTERNAL_ERROR_5    (-25795)
+%define VERR_REST_INTERNAL_ERROR_6    (-25796)
+%define VERR_REST_INTERNAL_ERROR_7    (-25797)
+%define VERR_REST_INTERNAL_ERROR_8    (-25798)
+%define VERR_REST_INTERNAL_ERROR_9    (-25799)
+%define VERR_CR_CIPHER_NOT_SUPPORTED    (-25800)
+%define VERR_CR_CIPHER_OSSL_ENCRYPT_INIT_FAILED    (-25801)
+%define VERR_CR_CIPHER_OSSL_ENCRYPT_UPDATE_FAILED    (-25802)
+%define VERR_CR_CIPHER_OSSL_ENCRYPT_FINAL_FAILED    (-25803)
+%define VERR_CR_CIPHER_OSSL_DECRYPT_INIT_FAILED    (-25804)
+%define VERR_CR_CIPHER_OSSL_DECRYPT_UPDATE_FAILED    (-25805)
+%define VERR_CR_CIPHER_OSSL_DECRYPT_FINAL_FAILED    (-25806)
+%define VERR_CR_CIPHER_INVALID_KEY_LENGTH    (-25807)
+%define VERR_CR_CIPHER_INVALID_INITIALIZATION_VECTOR_LENGTH    (-25808)
+%define VERR_SHMEM_MAXIMUM_MAPPINGS_REACHED    (-26000)
Index: /trunk/include/iprt/x86.mac
===================================================================
--- /trunk/include/iprt/x86.mac	(revision 75993)
+++ /trunk/include/iprt/x86.mac	(revision 75994)
@@ -177,4 +177,10 @@
 %define X86_CPUID_STEXT_FEATURE_EBX_SHA               RT_BIT_32(29)
 %define X86_CPUID_STEXT_FEATURE_ECX_PREFETCHWT1       RT_BIT_32(0)
+%define X86_CPUID_STEXT_FEATURE_ECX_UMIP              RT_BIT_32(2)
+%define X86_CPUID_STEXT_FEATURE_ECX_PKU               RT_BIT_32(3)
+%define X86_CPUID_STEXT_FEATURE_ECX_OSPKE             RT_BIT_32(4)
+%define X86_CPUID_STEXT_FEATURE_ECX_MAWAU             0x003e0000
+%define X86_CPUID_STEXT_FEATURE_ECX_RDPID             RT_BIT_32(2)
+%define X86_CPUID_STEXT_FEATURE_ECX_SGX_LC            RT_BIT_32(30)
 %define X86_CPUID_STEXT_FEATURE_EDX_IBRS_IBPB         RT_BIT_32(26)
 %define X86_CPUID_STEXT_FEATURE_EDX_STIBP             RT_BIT_32(27)
@@ -239,4 +245,8 @@
 %define X86_CPUID_AMD_ADVPOWER_EDX_PFI       RT_BIT_32(11)
 %define X86_CPUID_AMD_ADVPOWER_EDX_PA        RT_BIT_32(12)
+%define X86_CPUID_AMD_EFEID_EBX_CLZERO       RT_BIT_32(0)
+%define X86_CPUID_AMD_EFEID_EBX_IRPERF       RT_BIT_32(1)
+%define X86_CPUID_AMD_EFEID_EBX_XSAVE_ER_PTR RT_BIT_32(2)
+%define X86_CPUID_AMD_EFEID_EBX_IBPB         RT_BIT_32(12)
 %define X86_CPUID_SVM_FEATURE_EDX_NESTED_PAGING             RT_BIT(0)
 %define X86_CPUID_SVM_FEATURE_EDX_LBR_VIRT                  RT_BIT(1)
@@ -274,4 +284,5 @@
 %define X86_CR0_PG                          RT_BIT_32(31)
 %define X86_CR0_PAGING                      RT_BIT_32(31)
+%define X86_CR0_BIT_PG                      31
 %define X86_CR3_PWT                         RT_BIT_32(3)
 %define X86_CR3_PCD                         RT_BIT_32(4)
@@ -292,4 +303,5 @@
 %define X86_CR4_VMXE                        RT_BIT_32(13)
 %define X86_CR4_SMXE                        RT_BIT_32(14)
+%define X86_CR4_FSGSBASE                    RT_BIT_32(16)
 %define X86_CR4_PCIDE                       RT_BIT_32(17)
 %define X86_CR4_OSXSAVE                     RT_BIT_32(18)
@@ -305,6 +317,8 @@
 %define X86_DR6_BS                          RT_BIT_32(14)
 %define X86_DR6_BT                          RT_BIT_32(15)
-%define X86_DR6_INIT_VAL                    0xFFFF0FF0
+%define X86_DR6_RTM                         RT_BIT_32(16)
+%define X86_DR6_INIT_VAL                    0xffff0ff0
 %define X86_DR6_RA1_MASK                    0xffff0ff0
+%define X86_DR6_RA1_MASK_RTM                0xfffe0ff0
 %define X86_DR6_RAZ_MASK                    RT_BIT_64(12)
 %define X86_DR6_MBZ_MASK                    0xffffffff00000000
@@ -322,4 +336,5 @@
 %define X86_DR7_LE_ALL                      0x0000000000000055
 %define X86_DR7_GE_ALL                      0x00000000000000aa
+%define X86_DR7_RTM                         RT_BIT_32(11)
 %define X86_DR7_ICE_IR                      RT_BIT_32(12)
 %define X86_DR7_GD                          RT_BIT_32(13)
@@ -378,8 +393,19 @@
 %endif
 %define MSR_CORE_THREAD_COUNT               0x35
-%define MSR_IA32_FEATURE_CONTROL            0x3A
-%define MSR_IA32_FEATURE_CONTROL_LOCK       RT_BIT_32(0)
-%define MSR_IA32_FEATURE_CONTROL_SMX_VMXON  RT_BIT_32(1)
-%define MSR_IA32_FEATURE_CONTROL_VMXON      RT_BIT_32(2)
+%define MSR_IA32_FEATURE_CONTROL                      0x3A
+%define MSR_IA32_FEATURE_CONTROL_LOCK                 RT_BIT_64(0)
+%define MSR_IA32_FEATURE_CONTROL_SMX_VMXON            RT_BIT_64(1)
+%define MSR_IA32_FEATURE_CONTROL_VMXON                RT_BIT_64(2)
+%define MSR_IA32_FEATURE_CONTROL_SENTER_LOCAL_FN_0    RT_BIT_64(8)
+%define MSR_IA32_FEATURE_CONTROL_SENTER_LOCAL_FN_1    RT_BIT_64(9)
+%define MSR_IA32_FEATURE_CONTROL_SENTER_LOCAL_FN_2    RT_BIT_64(10)
+%define MSR_IA32_FEATURE_CONTROL_SENTER_LOCAL_FN_3    RT_BIT_64(11)
+%define MSR_IA32_FEATURE_CONTROL_SENTER_LOCAL_FN_4    RT_BIT_64(12)
+%define MSR_IA32_FEATURE_CONTROL_SENTER_LOCAL_FN_5    RT_BIT_64(13)
+%define MSR_IA32_FEATURE_CONTROL_SENTER_LOCAL_FN_6    RT_BIT_64(14)
+%define MSR_IA32_FEATURE_CONTROL_SENTER_GLOBAL_EN     RT_BIT_64(15)
+%define MSR_IA32_FEATURE_CONTROL_SGX_LAUNCH_EN        RT_BIT_64(17)
+%define MSR_IA32_FEATURE_CONTROL_SGX_GLOBAL_EN        RT_BIT_64(18)
+%define MSR_IA32_FEATURE_CONTROL_LMCE                 RT_BIT_64(20)
 %define MSR_IA32_TSC_ADJUST                 0x3B
 %define MSR_IA32_SPEC_CTRL                  0x48
@@ -391,4 +417,8 @@
 %define MSR_IA32_BIOS_SIGN_ID               0x8B
 %define MSR_IA32_SMM_MONITOR_CTL            0x9B
+%define MSR_IA32_SMM_MONITOR_VALID                  RT_BIT_64(0)
+%define MSR_IA32_SMM_MONITOR_VMXOFF_UNBLOCK_SMI     RT_BIT_64(2)
+%define MSR_IA32_SMM_MONITOR_MSGEG_PHYSADDR(a)      (((a) >> 12) & 0xfffff)
+%define MSR_IA32_SMBASE                     0x9E
 %define MSR_IA32_PMC0                       0xC1
 %define MSR_IA32_PMC1                       0xC2
@@ -401,5 +431,5 @@
 %define MSR_IA32_APERF                      0xE8
 %define MSR_IA32_MTRR_CAP                   0xFE
-%define MSR_IA32_ARCH_CAP                   0x10a
+%define MSR_IA32_ARCH_CAPABILITIES          0x10a
 %define MSR_IA32_ARCH_CAP_F_SPECTRE_FIX     RT_BIT_32(0)
 %define MSR_IA32_ARCH_CAP_F_BETTER_IBRS     RT_BIT_32(1)
@@ -414,4 +444,5 @@
 %define MSR_IA32_MCG_CTRL                   0x17B
 %define MSR_IA32_CR_PAT                     0x277
+%define MSR_IA32_CR_PAT_INIT_VAL            0x0007040600070406
 %define MSR_IA32_PERFEVTSEL0                0x186
 %define MSR_IA32_PERFEVTSEL1                0x187
@@ -447,4 +478,9 @@
 %define MSR_IA32_DEBUGCTL_FREEZE_WHILE_SMM_EM     RT_BIT_64(14)
 %define MSR_IA32_DEBUGCTL_RTM               RT_BIT_64(15)
+%define MSR_IA32_DEBUGCTL_VALID_MASK_INTEL  (  MSR_IA32_DEBUGCTL_LBR | MSR_IA32_DEBUGCTL_BTF   | MSR_IA32_DEBUGCTL_TR  \
+                                             | MSR_IA32_DEBUGCTL_BTS | MSR_IA32_DEBUGCTL_BTINT | MSR_IA32_DEBUGCTL_BTS_OFF_OS \
+                                             | MSR_IA32_DEBUGCTL_BTS_OFF_USER | MSR_IA32_DEBUGCTL_FREEZE_LBR_ON_PMI \
+                                             | MSR_IA32_DEBUGCTL_FREEZE_PERFMON_ON_PMI | MSR_IA32_DEBUGCTL_FREEZE_WHILE_SMM_EM \
+                                             | MSR_IA32_DEBUGCTL_RTM)
 %define MSR_P4_LASTBRANCH_TOS               0x000001da
 %define MSR_P4_LASTBRANCH_0                 0x000001db
@@ -490,5 +526,5 @@
 %define MSR_IA32_MC0_CTL                    0x400
 %define MSR_IA32_MC0_STATUS                 0x401
-%define MSR_IA32_VMX_BASIC_INFO             0x480
+%define MSR_IA32_VMX_BASIC                  0x480
 %define MSR_IA32_VMX_PINBASED_CTLS          0x481
 %define MSR_IA32_VMX_PROCBASED_CTLS         0x482
@@ -501,5 +537,4 @@
 %define MSR_IA32_VMX_CR4_FIXED1             0x489
 %define MSR_IA32_VMX_VMCS_ENUM              0x48A
-%define MSR_IA32_VMX_VMFUNC                 0x491
 %define MSR_IA32_VMX_PROCBASED_CTLS2        0x48B
 %define MSR_IA32_VMX_EPT_VPID_CAP           0x48C
@@ -508,4 +543,6 @@
 %define MSR_IA32_VMX_TRUE_EXIT_CTLS         0x48F
 %define MSR_IA32_VMX_TRUE_ENTRY_CTLS        0x490
+%define MSR_IA32_VMX_VMFUNC                 0x491
+%define MSR_IA32_RTIT_CTL                   0x570
 %define MSR_IA32_DS_AREA                    0x600
 %define MSR_RAPL_POWER_UNIT                 0x606
@@ -561,5 +598,7 @@
 %define  MSR_K6_EFER_SCE                     RT_BIT_32(0)
 %define  MSR_K6_EFER_LME                     RT_BIT_32(8)
+%define  MSR_K6_EFER_BIT_LME                 8
 %define  MSR_K6_EFER_LMA                     RT_BIT_32(10)
+%define  MSR_K6_EFER_BIT_LMA                 10
 %define  MSR_K6_EFER_NXE                     RT_BIT_32(11)
 %define  MSR_K6_EFER_BIT_NXE                 11
@@ -636,4 +675,8 @@
 %define X86_PAGE_4M_BASE_MASK               0xffffffffffc00000
 %define X86_PAGE_4M_BASE_MASK_32            0xffc00000
+%define X86_PAGE_1G_SIZE                    _1G
+%define X86_PAGE_1G_SHIFT                   30
+%define X86_PAGE_1G_OFFSET_MASK             0x3fffffff
+%define X86_PAGE_1G_BASE_MASK               0xffffffffc0000000
 %define X86_IS_CANONICAL(a_u64Addr)         ((uint64_t)(a_u64Addr) + 0x800000000000 < UINT64_C(0x1000000000000))
 %define X86_PTE_BIT_P                       0
@@ -784,4 +827,11 @@
 %define X86_PML4_SHIFT              39
 %define X86_PML4_MASK               0x1ff
+%define X86_INVPCID_TYPE_INDV_ADDR                  0
+%define X86_INVPCID_TYPE_SINGLE_CONTEXT             1
+%define X86_INVPCID_TYPE_ALL_CONTEXT_INCL_GLOBAL    2
+%define X86_INVPCID_TYPE_ALL_CONTEXT_EXCL_GLOBAL    3
+%define X86_INVPCID_TYPE_MAX_VALID                  X86_INVPCID_TYPE_ALL_CONTEXT_EXCL_GLOBAL
+%ifndef VBOX_FOR_DTRACE_LIB
+%endif
 %ifndef VBOX_FOR_DTRACE_LIB
 %endif
