VirtualBox

Changeset 95495 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Jul 4, 2022 8:18:19 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152109
Message:

VMM/HMSVMR0: updated CR4 write intercept comments with AVX/xcr0.

File:
1 edited

Legend:

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

    r95048 r95495  
    10551055    }
    10561056
    1057     /* CR4 writes must always be intercepted for tracking PGM mode changes. */
     1057    /* CR4 writes must always be intercepted for tracking PGM mode changes and
     1058       AVX (for XCR0 syncing during worlds switching). */
    10581059    pVmcbCtrl0->u16InterceptWrCRx = RT_BIT(4);
    10591060
     
    16661667        pVmcb->ctrl.u16InterceptRdCRx |= RT_BIT(4);
    16671668
    1668     /* CR4 writes are always intercepted (both guest, nested-guest) for tracking PGM mode changes. */
     1669    /* CR4 writes are always intercepted (both guest, nested-guest) for tracking
     1670       PGM mode changes and AVX (for XCR0 syncing during worlds switching). */
    16691671    Assert(pVmcb->ctrl.u16InterceptWrCRx & RT_BIT(4));
    16701672
     
    22052207    pVmcbNstGstCtrl->u16InterceptWrCRx |= pVmcb->ctrl.u16InterceptWrCRx;
    22062208
    2207     /* Always intercept CR4 writes for tracking PGM mode changes. */
     2209    /* Always intercept CR4 writes for tracking PGM mode changes and AVX (for
     2210       XCR0 syncing during worlds switching). */
    22082211    pVmcbNstGstCtrl->u16InterceptWrCRx |= RT_BIT(4);
    22092212
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette