VirtualBox

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


Ignore:
Timestamp:
Aug 29, 2013 1:01:54 PM (11 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Update comment and add assertion. We no longer have gaps between leaving and thread-context hook deregisteration.

File:
1 edited

Legend:

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

    r48153 r48156  
    69096909
    69106910    /*
    6911      * The VMCS state here will not be reliable because we deregister the hook in VMMR0EntryFast()
    6912      * on the way out. If we had got a preempt/resume callback -after- hmR0VmxLeave() but before
    6913      * deregistering the hook, the VMCS state will be ACTIVE. Once deregistered we no longer get
    6914      * notifications and lose track. Following that if we get rescheduled to another host CPU, the
    6915      * VMCS state says ACTIVE even though it really is not.
    6916      *
    69176911     * Load the VCPU's VMCS as the current (and active) one.
    69186912     */
     6913    Assert(pVCpu->hm.s.vmx.uVmcsState & HMVMX_VMCS_STATE_CLEAR);
    69196914    int rc = VMXActivateVmcs(pVCpu->hm.s.vmx.HCPhysVmcs);
    69206915    if (RT_FAILURE(rc))
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