VirtualBox

Ignore:
Timestamp:
Dec 25, 2018 4:36:48 AM (6 years ago)
Author:
vboxsync
Message:

VMM: Nested VMX: bugref:9180 Fix MSR initialization issue for exploding VMX features.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r76397 r76464  
    224224            uint8_t const uXcptTmp = VMX_ENTRY_INT_INFO_VECTOR((a_pVCpu)->hm.s.Event.u64IntInfo); \
    225225            Log4Func(("Memory operand decoding failed, raising xcpt %#x\n", uXcptTmp)); \
     226            NOREF(uXcptTmp); \
    226227            return VINF_SUCCESS; \
    227228        } \
     
    11271128 * @param   fEnabledByHost  Set if SUPR0EnableVTx() or similar was used to
    11281129 *                          enable VT-x on the host.
    1129  * @param   pvMsrs          Opaque pointer to VMXMSRS struct.
     1130 * @param   pHwvirtMsrs     Pointer to the hardware-virtualization MSRs.
    11301131 */
    11311132VMMR0DECL(int) VMXR0EnableCpu(PHMGLOBALCPUINFO pHostCpu, PVM pVM, void *pvCpuPage, RTHCPHYS HCPhysCpuPage, bool fEnabledByHost,
    1132                               void *pvMsrs)
     1133                              PCSUPHWVIRTMSRS pHwvirtMsrs)
    11331134{
    11341135    Assert(pHostCpu);
    1135     Assert(pvMsrs);
     1136    Assert(pHwvirtMsrs);
    11361137    Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD));
    11371138
     
    11491150     * invalidated when flushing by VPID.
    11501151     */
    1151     PVMXMSRS pMsrs = (PVMXMSRS)pvMsrs;
     1152    PCVMXMSRS pMsrs = &pHwvirtMsrs->u.vmx;
    11521153    if (pMsrs->u64EptVpidCaps & MSR_IA32_VMX_EPT_VPID_CAP_INVEPT_ALL_CONTEXTS)
    11531154    {
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