Changeset 49770 in vbox
- Timestamp:
- Dec 4, 2013 10:51:06 AM (11 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
-
VMMR0/HMSVMR0.cpp (modified) (2 diffs)
-
VMMR3/HM.cpp (modified) (3 diffs)
-
include/HMInternal.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp
r49729 r49770 4676 4676 #ifdef VBOX_HM_WITH_GUEST_PATCHING 4677 4677 /* TPR patching for 32-bit guests, using the reserved bit in the page tables for MMIO regions. */ 4678 if ( pVM->hm.s.fT RPPatchingAllowed4678 if ( pVM->hm.s.fTprPatchingAllowed 4679 4679 && (GCPhysFaultAddr & PAGE_OFFSET_MASK) == 0x80 /* TPR offset. */ 4680 4680 && ( !(u32ErrCode & X86_TRAP_PF_P) /* Not present */ … … 4877 4877 #ifdef VBOX_HM_WITH_GUEST_PATCHING 4878 4878 /* Shortcut for APIC TPR reads and writes; only applicable to 32-bit guests. */ 4879 if ( pVM->hm.s.fT RPPatchingAllowed4879 if ( pVM->hm.s.fTprPatchingAllowed 4880 4880 && (uFaultAddress & 0xfff) == 0x80 /* TPR offset. */ 4881 4881 && !(u32ErrCode & X86_TRAP_PF_P) /* Not present. */ -
trunk/src/VBox/VMM/VMMR3/HM.cpp
r49748 r49770 409 409 /** @cfgm{/HM/TPRPatchingEnabled, bool, false} 410 410 * Enables TPR patching for 32-bit windows guests with IO-APIC. */ 411 rc = CFGMR3QueryBoolDef(pCfgHM, "TPRPatchingEnabled", &pVM->hm.s.fT RPPatchingAllowed, false);411 rc = CFGMR3QueryBoolDef(pCfgHM, "TPRPatchingEnabled", &pVM->hm.s.fTprPatchingAllowed, false); 412 412 AssertRCReturn(rc, rc); 413 413 … … 949 949 if (!pVM->hm.s.fHasIoApic) 950 950 { 951 Assert(!pVM->hm.s.fT RPPatchingAllowed); /* paranoia */952 pVM->hm.s.fT RPPatchingAllowed = false;951 Assert(!pVM->hm.s.fTprPatchingAllowed); /* paranoia */ 952 pVM->hm.s.fTprPatchingAllowed = false; 953 953 } 954 954 … … 1463 1463 CPUMSetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_NX); 1464 1464 1465 LogRel(("HM: TPR Patching %s.\n", (pVM->hm.s.fTRPPatchingAllowed) ? "enabled" : "disabled"));1465 LogRel(("HM: TPR patching %s.\n", (pVM->hm.s.fTprPatchingAllowed) ? "enabled" : "disabled")); 1466 1466 1467 1467 LogRel((pVM->hm.s.fAllow64BitGuests -
trunk/src/VBox/VMM/include/HMInternal.h
r49755 r49770 328 328 329 329 /** Set when TPR patching is allowed. */ 330 bool fT RPPatchingAllowed;330 bool fTprPatchingAllowed; 331 331 332 332 /** Set when we initialize VT-x or AMD-V once for all CPUs. */
Note:
See TracChangeset
for help on using the changeset viewer.

