VirtualBox

Changeset 42156 in vbox for trunk/src/VBox/VMM/include


Ignore:
Timestamp:
Jul 16, 2012 6:59:45 AM (13 years ago)
Author:
vboxsync
Message:

VMM/VMMR0: HWVMXR0: Use MSR auto load/store areas in the VMCS. Added IA32_TSC_AUX for auto load/store. Cleanups.

Location:
trunk/src/VBox/VMM/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/HWACCMInternal.h

    r42056 r42156  
    4242
    4343
    44 #if 0
    45 /* Seeing somewhat random behaviour on my Nehalem system with auto-save of guest MSRs;
    46  * for some strange reason the CPU doesn't save the MSRs during the VM-exit.
    47  * Clearly visible with a dual VCPU configured OpenSolaris 200906 live cd VM.
     44/* The MSR auto load/store does not work for KERNEL_GS_BASE MSR, thus we
     45 * handle this MSR manually. See @bugref{6208}. This is clearly visible while
     46 * booting Solaris 11 (11.1 b19) VMs with 2 Cpus.
    4847 *
    49  * Note: change the assembly files when enabling this! (remove the manual auto load/save)
     48 * Note: don't forget to update the assembly files while modifying this!
    5049 */
    5150#define VBOX_WITH_AUTO_MSR_LOAD_RESTORE
    52 #endif
    5351
    5452RT_C_DECLS_BEGIN
     
    626624        /** Virtual address of the MSR load area (1 page). */
    627625        R0PTRTYPE(uint8_t *)        pHostMSR;
    628 #endif /* VBOX_WITH_AUTO_MSR_LOAD_RESTORE */
    629626
    630627        /* Number of automatically loaded/restored MSRs. */
    631628        uint32_t                    cCachedMSRs;
    632629        uint32_t                    uAlignement;
     630#endif /* VBOX_WITH_AUTO_MSR_LOAD_RESTORE */
    633631
    634632        /* Host's IA32_TSC_AUX MSR (for RDTSCP in VMX non-root). */
  • trunk/src/VBox/VMM/include/HWACCMInternal.mac

    r37323 r42156  
    1616
    1717%define VMX_USE_CACHED_VMCS_ACCESSES
     18%define VBOX_WITH_AUTO_MSR_LOAD_RESTORE
    1819
    1920;Maximum number of cached entries.
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