VirtualBox

Ignore:
Timestamp:
Apr 22, 2016 3:32:41 PM (9 years ago)
Author:
vboxsync
Message:

VMM/APIC: Don't need to update CPUID twice on VM startup and fix logging.

File:
1 edited

Legend:

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

    r60654 r60655  
    20252025
    20262026                APICUpdateCpuIdForMode(pVCpu->CTX_SUFF(pVM), APICMODE_DISABLED);
    2027                 Log2(("APIC%u: Switched mode to disabled\n", pVCpu->idCpu));
     2027                LogRel(("APIC%u: Switched mode to disabled\n", pVCpu->idCpu));
    20282028                break;
    20292029            }
     
    20332033                if (enmOldMode != APICMODE_DISABLED)
    20342034                {
    2035                     Log(("APIC%u: Can only transition to xAPIC state from disabled state\n", pVCpu->idCpu));
     2035                    LogRel(("APIC%u: Can only transition to xAPIC state from disabled state\n", pVCpu->idCpu));
    20362036                    return apicMsrAccessError(pVCpu, MSR_IA32_APICBASE, APICMSRACCESS_WRITE_INVALID);
    20372037                }
     
    20392039                uBaseMsr |= MSR_APICBASE_XAPIC_ENABLE_BIT;
    20402040                APICUpdateCpuIdForMode(pVCpu->CTX_SUFF(pVM), APICMODE_XAPIC);
    2041                 Log2(("APIC%u: Switched mode to xApic\n", pVCpu->idCpu));
     2041                LogRel(("APIC%u: Switched mode to xAPIC\n", pVCpu->idCpu));
    20422042                break;
    20432043            }
     
    20472047                if (enmOldMode != APICMODE_XAPIC)
    20482048                {
    2049                     Log(("APIC%u: Can only transition to x2APIC state from xAPIC state\n", pVCpu->idCpu));
     2049                    LogRel(("APIC%u: Can only transition to x2APIC state from xAPIC state\n", pVCpu->idCpu));
    20502050                    return apicMsrAccessError(pVCpu, MSR_IA32_APICBASE, APICMSRACCESS_WRITE_INVALID);
    20512051                }
     
    20712071                                                  | (UINT32_C(1) << pX2ApicPage->id.u32ApicId & UINT32_C(0xf));
    20722072
    2073                 Log2(("APIC%u: Switched mode to x2Apic\n", pVCpu->idCpu));
     2073                LogRel(("APIC%u: Switched mode to x2APIC\n", pVCpu->idCpu));
    20742074                break;
    20752075            }
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