VirtualBox

Changeset 48565 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Sep 19, 2013 10:16:00 PM (11 years ago)
Author:
vboxsync
Message:

VMM/HM: Added total VM-exits STAM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r48556 r48565  
    647647
    648648#ifdef VBOX_WITH_STATISTICS
     649        HM_REG_COUNTER(&pVCpu->hm.s.StatExitAll,                "/HM/CPU%d/Exit/All", "Exits (total).");
    649650        HM_REG_COUNTER(&pVCpu->hm.s.StatExitShadowNM,           "/HM/CPU%d/Exit/Trap/Shw/#NM", "Shadow #NM (device not available, no math co-processor) exception.");
    650651        HM_REG_COUNTER(&pVCpu->hm.s.StatExitGuestNM,            "/HM/CPU%d/Exit/Trap/Gst/#NM", "Guest #NM (device not available, no math co-processor) exception.");
     
    16281629VMMR3_INT_DECL(void) HMR3ResetCpu(PVMCPU pVCpu)
    16291630{
    1630     /* Sync. entire state on VM reset R0-reentry. It's safe to update
     1631    /* Sync. entire state on VM reset R0-reentry. It's safe to reset
    16311632       the HM flags here, all other EMTs are in ring-3. See VMR3Reset(). */
    1632     pVCpu->hm.s.fContextUseFlags = (HM_CHANGED_HOST_CONTEXT | HM_CHANGED_ALL_GUEST);
     1633    VMCPU_HMCF_RESET_TO(pVCpu, HM_CHANGED_HOST_CONTEXT | HM_CHANGED_ALL_GUEST);
    16331634
    16341635    pVCpu->hm.s.vmx.u32CR0Mask     = 0;
     
    26482649VMMR3_INT_DECL(void) HMR3NotifyScheduled(PVMCPU pVCpu)
    26492650{
    2650     pVCpu->hm.s.fContextUseFlags |= HM_CHANGED_ALL_GUEST;
     2651    VMCPU_HMCF_SET(pVCpu, HM_CHANGED_ALL_GUEST);
    26512652}
    26522653
     
    26592660VMMR3_INT_DECL(void) HMR3NotifyEmulated(PVMCPU pVCpu)
    26602661{
    2661     pVCpu->hm.s.fContextUseFlags |= HM_CHANGED_ALL_GUEST;
     2662    VMCPU_HMCF_SET(pVCpu, HM_CHANGED_ALL_GUEST);
    26622663}
    26632664
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