VirtualBox

Changeset 47156 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 15, 2013 11:49:02 AM (11 years ago)
Author:
vboxsync
Message:

VMM/HMSVMR0: Compile-time define to trap task switches unconditionally.

File:
1 edited

Legend:

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

    r47123 r47156  
    3535# define HMSVM_ALWAYS_TRAP_ALL_XCPTS
    3636# define HMSVM_ALWAYS_TRAP_PF
     37# define HMSVM_ALWAYS_TRAP_TASK_SWITCH
    3738#endif
    3839
     
    714715        }
    715716
     717#ifdef HMSVM_ALWAYS_TRAP_TASK_SWITCH
     718        pVmcb->ctrl.u32InterceptCtrl1 |= SVM_CTRL1_INTERCEPT_TASK_SWITCH;
     719#endif
     720
    716721        /*
    717722         * The following MSRs are saved/restored automatically during the world-switch.
     
    42534258    HMSVM_VALIDATE_EXIT_HANDLER_PARAMS();
    42544259
     4260#ifndef HMSVM_ALWAYS_TRAP_TASK_SWITCH
     4261    Assert(!pVCpu->CTX_SUFF(pVM)->hm.s.fNestedPaging);
     4262#endif
     4263
    42554264    /* Check if this task-switch occurred while delivery an event through the guest IDT. */
    42564265    PSVMVMCB pVmcb = (PSVMVMCB)pVCpu->hm.s.svm.pvVmcb;
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