VirtualBox

Changeset 43974 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Nov 27, 2012 2:52:12 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
82332
Message:

VMM: Fix MSR range values for X2APIC, add in the X2APIC TPR MSR.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevAPIC.cpp

    r43657 r43974  
    10561056
    10571057    APICState      *pApic = getLapicById(pDev, idCpu);
    1058     uint32_t        iReg = (u32Reg - MSR_IA32_APIC_START) & 0xff;
     1058    uint32_t        iReg = (u32Reg - MSR_IA32_X2APIC_START) & 0xff;
    10591059    return apicWriteRegister(pDev, pApic, iReg, u64Value, VINF_SUCCESS /*rcBusy*/, true /*fMsr*/);
    10601060}
     
    10721072
    10731073    APICState      *pApic = getLapicById(pDev, idCpu);
    1074     uint32_t        iReg = (u32Reg - MSR_IA32_APIC_START) & 0xff;
     1074    uint32_t        iReg = (u32Reg - MSR_IA32_X2APIC_START) & 0xff;
    10751075    return apicReadRegister(pDev, pApic, iReg, pu64Value, VINF_SUCCESS /*rcBusy*/, true /*fMsr*/);
    10761076}
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