VirtualBox

Changeset 73628 in vbox for trunk/include


Ignore:
Timestamp:
Aug 13, 2018 7:45:01 AM (6 years ago)
Author:
vboxsync
Message:

VMM: Nested VMX: bugref:9180 Implement IA32_VMX_MISC MSR.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/hm_vmx.h

    r73606 r73628  
    12371237 *  instructions. */
    12381238#define VMX_MISC_ENTRY_INJECT_SOFT_INT                          RT_BIT(30)
    1239 /** Maximum number of MSRs in the VMCS, (n+1)*512. */
     1239/** Maximum number of MSRs in the auto-load/store MSR areas, (n+1) * 512. */
    12401240#define VMX_MISC_MAX_MSRS(a_MiscMsr)                            (512 * (RT_BF_GET((a_MiscMsr), VMX_BF_MISC_MAX_MSRS) + 1))
     1241/** Maximum CR3-target count supported by the CPU. */
     1242#define VMX_MISC_CR3_TARGET_COUNT(a_MiscMsr)                    (((a) >> 16) & 0xff)
    12411243/** Relationship between the preemption timer and tsc. */
    12421244#define VMX_BF_MISC_PREEMPT_TIMER_TSC_SHIFT                     0
     
    12861288/** @} */
    12871289
     1290/** Maximum number of CR3 target supported by VT-x */
     1291#define VMX_VMCS_CTRL_CR3_TARGET_COUNT_MAX                      4
    12881292
    12891293/** @name VMX MSR - VMCS enumeration.
     
    15741578#define VMX_VMCS_CTRL_CR3_TARGET_VAL1                           0x600a
    15751579#define VMX_VMCS_CTRL_CR3_TARGET_VAL2                           0x600c
    1576 #define VMX_VMCS_CTRL_CR3_TARGET_VAL31                          0x600e
     1580#define VMX_VMCS_CTRL_CR3_TARGET_VAL3                           0x600e
    15771581/** @} */
    15781582
     
    25232527#define VMX_V_VMCS_PHYSADDR_4G_LIMIT                            0
    25242528
     2529/** @name Virtual VMX MSR - Miscellaneous data.
     2530 * @{ */
     2531/** Number of CR3-target values supported. */
     2532#define VMX_V_CR3_TARGET_COUNT                                  4
     2533/** Activity states supported. */
     2534#define VMX_V_GUEST_ACTIVITY_STATE_MASK                         (VMX_VMCS_GUEST_ACTIVITY_HLT)
     2535/** VMX preemption-timer shift (Core i7-2600 taken as reference). */
     2536#define VMX_V_PREEMPT_TIMER_SHIFT                               5
     2537/** Maximum number of MSRs in the auto-load/store MSR areas, (n+1) * 512. */
     2538#define VMX_V_MAX_MSRS                                          0
     2539/** SMM MSEG revision ID. */
     2540#define VMX_V_MSEG_REV_ID                                       0
     2541/** @} */
     2542
    25252543/**
    25262544 * Virtual VMX-instruction diagnostics.
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