VirtualBox

Changeset 71966 in vbox for trunk


Ignore:
Timestamp:
Apr 23, 2018 4:40:51 AM (7 years ago)
Author:
vboxsync
Message:

VMM/HMSVMAll: Some comments on the nuances of the VMCB caching with hardware-assisted SVM execution of nested-guests.

Location:
trunk
Files:
2 edited

Legend:

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

    r71933 r71966  
    10191019 * SVM R0 code for hardware-assisted SVM execution of a nested-guest.
    10201020 *
     1021 * A VMCB field needs to be cached when it needs to be modified for execution using
     1022 * hardware-assisted SVM and any of the following are true:
     1023 *   - If the original field needs to be inspected during execution of the
     1024 *     nested-guest or #VMEXIT processing.
     1025 *   - If the field is written back to memory on #VMEXIT by the physical CPU.
     1026 *
     1027 * A VMCB field needs to be restored only when the field is written back to
     1028 * memory on #VMEXIT by the physical CPU and thus would be visible to the guest.
     1029 *
    10211030 * @remarks Please update hmR3InfoSvmNstGstVmcbCache() when changes are made to
    10221031 *          this structure.
  • trunk/src/VBox/VMM/VMMAll/HMSVMAll.cpp

    r71933 r71966  
    146146        /*
    147147         * Restore fields as our own code might look at the VMCB controls as part
    148          * of the #VMEXIT handling. Otherwise, we don't need to restore the current
    149          * fields because none of them are written by a physical CPU on #VMEXIT.
     148         * of the #VMEXIT handling in IEM. Otherwise, strictly speaking we don't need to
     149         * restore these fields because currently none of them are written back to memory
     150         * by a physical CPU on #VMEXIT.
    150151         */
    151152        pVmcbNstGstCtrl->u16InterceptRdCRx                 = pVmcbNstGstCache->u16InterceptRdCRx;
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