VirtualBox

Changeset 60471 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Apr 13, 2016 1:30:39 PM (9 years ago)
Author:
vboxsync
Message:

VMM/APIC: Don't allow modify reserved MB1 bits in DFR.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/APICAll.cpp

    r60464 r60471  
    10821082    Assert(!XAPIC_IN_X2APIC_MODE(pVCpu));
    10831083
     1084    uDfr &= XAPIC_DFR;
     1085    uDfr |= XAPIC_DFR_RSVD_MB1;
     1086
    10841087    Log4(("APIC%u: apicSetDfr: uDfr=%#RX32\n", pVCpu->idCpu, uDfr));
    10851088
    10861089    PXAPICPAGE pXApicPage = VMCPU_TO_XAPICPAGE(pVCpu);
    1087     apicWriteRaw32(pXApicPage, XAPIC_OFF_DFR, uDfr & XAPIC_DFR);
     1090    apicWriteRaw32(pXApicPage, XAPIC_OFF_DFR, uDfr);
    10881091    return VINF_SUCCESS;
    10891092}
     
    12211224static VBOXSTRICTRC apicSetLvtEntry(PVMCPU pVCpu, uint16_t offLvt, uint32_t uLvt)
    12221225{
     1226    VMCPU_ASSERT_EMT(pVCpu);
     1227
    12231228#if XAPIC_HARDWARE_VERSION == XAPIC_HARDWARE_VERSION_P4
    1224     VMCPU_ASSERT_EMT(pVCpu);
    12251229    AssertMsg(   offLvt == XAPIC_OFF_LVT_TIMER
    12261230              || offLvt == XAPIC_OFF_LVT_THERMAL
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