VirtualBox

Changeset 49512 in vbox for trunk


Ignore:
Timestamp:
Nov 15, 2013 4:42:02 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90678
Message:

Main/src-client, VMM/HMSVMR0: Enable TPR patching regardless of guest bitness for certain guests types.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r49495 r49512  
    117117
    118118#include <string>
    119 /* XXX: We don't need class declared in NetworkServiceRunner, this file included because of 
     119/* XXX: We don't need class declared in NetworkServiceRunner, this file included because of
    120120 * mcrodefintions TRUNKTYPE_*
    121121 */
     
    10551055
    10561056            /** @todo Not exactly pretty to check strings; VBOXOSTYPE would be better, but that requires quite a bit of API change in Main. */
    1057             if (    !fIsGuest64Bit
    1058                 &&  fIOAPIC
     1057            if (    fIOAPIC
    10591058                &&  (   osTypeId == "WindowsNT4"
    10601059                     || osTypeId == "Windows2000"
  • trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp

    r49481 r49512  
    46714671        && (   !(u32ErrCode & X86_TRAP_PF_P)                                                             /* Not present */
    46724672            || (u32ErrCode & (X86_TRAP_PF_P | X86_TRAP_PF_RSVD)) == (X86_TRAP_PF_P | X86_TRAP_PF_RSVD))  /* MMIO page. */
     4673        && !CPUMIsGuestInLongModeEx(pCtx)
    46734674        && !CPUMGetGuestCPL(pVCpu)
    4674         && !CPUMIsGuestInLongModeEx(pCtx)
    46754675        && pVM->hm.s.cPatches < RT_ELEMENTS(pVM->hm.s.aPatches))
    46764676    {
     
    48714871        && (uFaultAddress & 0xfff) == 0x80  /* TPR offset. */
    48724872        && !(u32ErrCode & X86_TRAP_PF_P)    /* Not present. */
     4873        && !CPUMIsGuestInLongModeEx(pCtx)
    48734874        && !CPUMGetGuestCPL(pVCpu)
    4874         && !CPUMIsGuestInLongModeEx(pCtx)
    48754875        && pVM->hm.s.cPatches < RT_ELEMENTS(pVM->hm.s.aPatches))
    48764876    {
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette