VirtualBox

Changeset 82658 in vbox


Ignore:
Timestamp:
Jan 6, 2020 5:10:53 AM (5 years ago)
Author:
vboxsync
Message:

VMM/HMSVMR0: Fix PAT MSR to treat all guest memory as WB, regression from r121857.

File:
1 edited

Legend:

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

    r82612 r82658  
    17911791     * Setup the PAT MSR (applicable for Nested Paging only).
    17921792     *
     1793     * The default value should be MSR_IA32_CR_PAT_INIT_VAL, but we treat all guest memory
     1794     * as WB, so choose type 6 for all PAT slots, see @bugref{9634}.
     1795     *
    17931796     * While guests can modify and see the modified values through the shadow values,
    17941797     * we shall not honor any guest modifications of this MSR to ensure caching is always
     
    17971800     * For nested-guests this needs to always be set as well, see @bugref{7243#c109}.
    17981801     */
    1799     pVmcb->guest.u64PAT = MSR_IA32_CR_PAT_INIT_VAL;
     1802    pVmcb->guest.u64PAT = UINT64_C(0x0006060606060606);
    18001803
    18011804    /* Enable the last branch record bit if LBR virtualization is enabled. */
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