Changeset 43657 in vbox for trunk/src/VBox/VMM/VMMR3/CPUM.cpp
- Timestamp:
- Oct 16, 2012 3:34:05 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 81423
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/CPUM.cpp
r43387 r43657 40 40 #include <VBox/vmm/cpumctx-v1_6.h> 41 41 #include <VBox/vmm/pgm.h> 42 #include <VBox/vmm/pdmapi.h> 42 43 #include <VBox/vmm/mm.h> 43 44 #include <VBox/vmm/selm.h> … … 1490 1491 { 1491 1492 /** @todo anything different for VCPU > 0? */ 1492 PCPUMCTX pCtx = CPUMQueryGuestCtxPtr(pVCpu);1493 PCPUMCTX pCtx = &pVCpu->cpum.s.Guest; 1493 1494 1494 1495 /* … … 1575 1576 */ 1576 1577 pCtx->msrEFER = 0; 1578 1579 /* 1580 * Get the APIC base MSR from the APIC device. For historical reasons (saved state), the APIC base 1581 * continues to reside in the APIC device and we cache it here in the VCPU for all further accesses. 1582 */ 1583 PDMApicGetBase(pVCpu, &pCtx->msrApicBase); 1577 1584 } 1578 1585 … … 1591 1598 1592 1599 #ifdef VBOX_WITH_CRASHDUMP_MAGIC 1593 PCPUMCTX pCtx = CPUMQueryGuestCtxPtr(&pVM->aCpus[i]);1600 PCPUMCTX pCtx = &pVM->aCpus[i].cpum.s.Guest; 1594 1601 1595 1602 /* Magic marker for searching in crash dumps. */ … … 2702 2709 } 2703 2710 2704 /* Notify PGM of the NXE states in case they've changed. */2705 2711 for (VMCPUID iCpu = 0; iCpu < pVM->cCpus; iCpu++) 2712 { 2713 /* Notify PGM of the NXE states in case they've changed. */ 2706 2714 PGMNotifyNxeChanged(&pVM->aCpus[iCpu], !!(pVM->aCpus[iCpu].cpum.s.Guest.msrEFER & MSR_K6_EFER_NXE)); 2715 2716 /* Cache the local APIC base from the APIC device. During init. this is done in CPUMR3ResetCpu(). */ 2717 PDMApicGetBase(&pVM->aCpus[iCpu], &pVM->aCpus[iCpu].cpum.s.Guest.msrApicBase); 2718 } 2707 2719 return VINF_SUCCESS; 2708 2720 } … … 3064 3076 pHlp->pfnPrintf(pHlp, "Guest CPUM (VCPU %d) state: %s\n", pVCpu->idCpu, pszComment); 3065 3077 3066 PCPUMCTX pCtx = CPUMQueryGuestCtxPtr(pVCpu);3078 PCPUMCTX pCtx = &pVCpu->cpum.s.Guest; 3067 3079 cpumR3InfoOne(pVM, pCtx, CPUMCTX2CORE(pCtx), pHlp, enmType, ""); 3068 3080 }
Note:
See TracChangeset
for help on using the changeset viewer.