VirtualBox

Changeset 72872 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jul 4, 2018 1:14:32 PM (7 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: bugref:9193 Fix a bug with our exception bitmap cache going out of sync with the VMCS value.
Added additional consistency checks for VMCS cache values (exception bitmap, TSC offset) - now reports specific
errors via u32HmError on VERR_VMX_INVALID_GUEST_STATE gurus.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/err.h

    r72580 r72872  
    20962096/** VT-x features disabled by the BIOS. */
    20972097#define VERR_VMX_MSR_VMX_DISABLED                   (-4029)
    2098 /** VM-Entry Controls internal cache invalid. */
    2099 #define VERR_VMX_ENTRY_CTLS_CACHE_INVALID           (-4030)
    2100 /** VM-Exit Controls internal cache invalid. */
    2101 #define VERR_VMX_EXIT_CTLS_CACHE_INVALID            (-4031)
    2102 /** VM-Execution Pin-based Controls internal cache invalid. */
    2103 #define VERR_VMX_PIN_EXEC_CTLS_CACHE_INVALID        (-4032)
    2104 /** VM-Execution Primary Processor-based Controls internal cache
    2105  *  invalid. */
    2106 #define VERR_VMX_PROC_EXEC_CTLS_CACHE_INVALID       (-4033)
    2107 /** VM-Execution Secondary Processor-based Controls internal
    2108  *  cache invalid. */
    2109 #define VERR_VMX_PROC_EXEC2_CTLS_CACHE_INVALID      (-4034)
     2098/** VT-x VMCS field cache invalid. */
     2099#define VERR_VMX_VMCS_FIELD_CACHE_INVALID           (-4030)
    21102100/** Failed to set VMXON enable bit while enabling VT-x through the MSR. */
    2111 #define VERR_VMX_MSR_VMX_ENABLE_FAILED              (-4035)
     2101#define VERR_VMX_MSR_VMX_ENABLE_FAILED              (-4031)
    21122102/** Failed to enable VMXON-in-SMX bit while enabling VT-x through the MSR. */
    2113 #define VERR_VMX_MSR_SMX_VMX_ENABLE_FAILED          (-4036)
     2103#define VERR_VMX_MSR_SMX_VMX_ENABLE_FAILED          (-4032)
    21142104/** @} */
    21152105
  • trunk/include/VBox/vmm/hm_vmx.h

    r72855 r72872  
    149149/** EPT requires page-walk length of 4. */
    150150#define VMX_UFC_EPT_PAGE_WALK_LENGTH_UNSUPPORTED                14
     151/** @} */
     152
     153/** @name VMX HM-error codes for VERR_VMX_VMCS_FIELD_CACHE_INVALID.
     154 *  VCI = VMCS-field Cache Invalid.
     155 * @{
     156 */
     157/** Cache of VM-entry controls invalid. */
     158#define VMX_VCI_CTRL_ENTRY                                      300
     159/** Cache of VM-exit controls invalid. */
     160#define VMX_VCI_CTRL_EXIT                                       301
     161/** Cache of pin-based VM-execution controls invalid. */
     162#define VMX_VCI_CTRL_PIN_EXEC                                   302
     163/** Cache of processor-based VM-execution controls invalid. */
     164#define VMX_VCI_CTRL_PROC_EXEC                                  303
     165/** Cache of secondary processor-based VM-execution controls invalid. */
     166#define VMX_VCI_CTRL_PROC_EXEC2                                 304
     167/** Cache of exception bitmap invalid. */
     168#define VMX_VCI_CTRL_XCPT_BITMAP                                305
     169/** Cache of TSC offset invalid. */
     170#define VMX_VCI_CTRL_TSC_OFFSET                                 306
    151171/** @} */
    152172
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette