VirtualBox

Ignore:
Timestamp:
Jan 7, 2019 1:48:16 PM (6 years ago)
Author:
vboxsync
Message:

Port r124260, r124263, r124271, r124273, r124277, r124278, r124279, r124284, r124285, r124286, r124287, r124288, r124289 and r124290 (Ported fixes over from 5.2, see bugref:9179 for more information)

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:mergeinfo
      •  

        old new  
        88/branches/VBox-5.0:104445,104938,104943,104950,104952-104953,104987-104988,104990,106453
        99/branches/VBox-5.1:112367,115992,116543,116550,116568,116573
        10 /branches/VBox-5.2:119536,120083,120099,120213,120221,120239,123597-123598,123600-123601,123755,125768,125779-125780,125812
         10/branches/VBox-5.2:119536,120083,120099,120213,120221,120239,123597-123598,123600-123601,123755,124260,124263,124271,124273,124277-124279,124284-124286,124288-124290,125768,125779-125780,125812
        1111/branches/andy/draganddrop:90781-91268
        1212/branches/andy/guestctrl20:78916,78930
  • trunk/src/VBox

    • Property svn:mergeinfo
      •  

        old new  
        88/branches/VBox-5.0/src/VBox:104938,104943,104950,104987-104988,104990,106453
        99/branches/VBox-5.1/src/VBox:112367,116543,116550,116568,116573
        10 /branches/VBox-5.2/src/VBox:119536,120083,120099,120213,120221,120239,123597-123598,123600-123601,123755,125768,125779-125780,125812
         10/branches/VBox-5.2/src/VBox:119536,120083,120099,120213,120221,120239,123597-123598,123600-123601,123755,124263,124273,124277-124279,124284-124286,124288-124290,125768,125779-125780,125812
        1111/branches/andy/draganddrop/src/VBox:90781-91268
        1212/branches/andy/guestctrl20/src/VBox:78916,78930
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r76637 r76678  
    25292529#endif
    25302530        /*
    2531          * The IA32_PRED_CMD MSR is write-only and has no state associated with it. We never need to intercept
    2532          * access (writes need to be executed without exiting, reds will #GP-fault anyway).
     2531         * The IA32_PRED_CMD and IA32_FLUSH_CMD MSRs are write-only and has no state
     2532         * associated with then. We never need to intercept access (writes need to
     2533         * be executed without exiting, reads will #GP-fault anyway).
    25332534         */
    25342535        if (pVM->cpum.ro.GuestFeatures.fIbpb)
    25352536            hmR0VmxSetMsrPermission(pVCpu, MSR_IA32_PRED_CMD,     VMXMSREXIT_PASSTHRU_READ, VMXMSREXIT_PASSTHRU_WRITE);
     2537        if (pVM->cpum.ro.GuestFeatures.fFlushCmd)
     2538            hmR0VmxSetMsrPermission(pVCpu, MSR_IA32_FLUSH_CMD,    VMXMSREXIT_PASSTHRU_READ, VMXMSREXIT_PASSTHRU_WRITE);
    25362539
    25372540        /* Though MSR_IA32_PERF_GLOBAL_CTRL is saved/restored lazily, we want intercept reads/write to it for now. */
     
    80578060        pVCpu->hm.s.fLeaveDone = false;
    80588061        Log4Func(("Activated Vmcs. HostCpuId=%u\n", RTMpCpuId()));
     8062
     8063        /*
     8064         * Do the EMT scheduled L1D flush here if needed.
     8065         */
     8066        if (pVCpu->CTX_SUFF(pVM)->hm.s.fL1dFlushOnSched)
     8067            ASMWrMsr(MSR_IA32_FLUSH_CMD, MSR_IA32_FLUSH_CMD_F_L1D);
    80598068    }
    80608069    return rc;
     
    81358144            }
    81368145            pVCpu->hm.s.fLeaveDone = false;
     8146
     8147            /* Do the EMT scheduled L1D flush if needed. */
     8148            if (pVCpu->CTX_SUFF(pVM)->hm.s.fL1dFlushOnSched)
     8149                ASMWrMsr(MSR_IA32_FLUSH_CMD, MSR_IA32_FLUSH_CMD_F_L1D);
    81378150
    81388151            /* Restore longjmp state. */
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