VirtualBox

Changeset 52611 in vbox


Ignore:
Timestamp:
Sep 5, 2014 9:44:51 AM (10 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Added ApicAccessToR3 stat and addressed a 4.3 todo.

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

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

    r52595 r52611  
    1122011220
    1122111221    STAM_COUNTER_INC(&pVCpu->hm.s.StatExitApicAccess);
     11222    if (rc != VINF_SUCCESS)
     11223        STAM_COUNTER_INC(&pVCpu->hm.s.StatExitApicAccessToR3);
    1122211224    return rc;
    1122311225}
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r52280 r52611  
    55
    66/*
    7  * Copyright (C) 2006-2013 Oracle Corporation
     7 * Copyright (C) 2006-2014 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    703703        HM_REG_COUNTER(&pVCpu->hm.s.StatExitMtf,                "/HM/CPU%d/Exit/MonitorTrapFlag", "Monitor Trap Flag.");
    704704        HM_REG_COUNTER(&pVCpu->hm.s.StatExitApicAccess,         "/HM/CPU%d/Exit/ApicAccess", "APIC access. Guest attempted to access memory at a physical address on the APIC-access page.");
     705        HM_REG_COUNTER(&pVCpu->hm.s.StatExitApicAccessToR3,     "/HM/CPU%d/Exit/ApicAccessToR3", "APIC access causing us to go to ring-3.");
    705706
    706707        HM_REG_COUNTER(&pVCpu->hm.s.StatSwitchGuestIrq,         "/HM/CPU%d/Switch/IrqPending", "PDMGetInterrupt() cleared behind our back!?!.");
     
    12321233        else
    12331234        {
    1234             /** @todo This cannot possibly work, there are other places which assumes
    1235              *        this allocation cannot fail (see HMR3CanExecuteGuest()). Make this
    1236              *        a failure case. */
    12371235            LogRel(("HM: No real mode VT-x support (PDMR3VMMDevHeapAlloc returned %Rrc)\n", rc));
    12381236            pVM->hm.s.vmx.pRealModeTSS = NULL;
    12391237            pVM->hm.s.vmx.pNonPagingModeEPTPageTable = NULL;
     1238            return VMSetError(pVM, rc, RT_SRC_POS,
     1239                              "HM failure: No real mode VT-x support (PDMR3VMMDevHeapAlloc returned %Rrc)", rc);
    12401240        }
    12411241    }
     
    24662466        /*
    24672467         * The VMM device heap is a requirement for emulating real mode or protected mode without paging with the unrestricted
    2468          * guest execution feature i missing (VT-x only).
     2468         * guest execution feature is missing (VT-x only).
    24692469         */
    24702470        if (fSupportsRealMode)
     
    26662666
    26672667/**
    2668  * Checks if we are currently using hardware accelerated raw mode.
     2668 * Checks if we are currently using hardware acceleration.
    26692669 *
    26702670 * @returns true if hardware acceleration is being used, otherwise false.
     
    26782678
    26792679/**
    2680  * External interface for querying whether hardware accelerated raw mode is
    2681  * enabled.
     2680 * External interface for querying whether hardware acceleration is enabled.
    26822681 *
    26832682 * @returns true if VT-x or AMD-V is being used, otherwise false.
  • trunk/src/VBox/VMM/include/HMInternal.h

    r52279 r52611  
    912912    STAMCOUNTER             StatExitMtf;
    913913    STAMCOUNTER             StatExitApicAccess;
     914    STAMCOUNTER             StatExitApicAccessToR3;
    914915    STAMCOUNTER             StatPendingHostIrq;
    915916
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