VirtualBox

Changeset 60398 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Apr 8, 2016 4:29:01 PM (9 years ago)
Author:
vboxsync
Message:

VMM/APIC: Get rid of specialized R0 code and clean up ordering issues.
It's still not nice that CPUMR3Reset() momentarily gets an un-initialized APIC base MSR until
it's re-cached again using CPUMR3InitCompleted() but I hope to eventually get rid of this
caching business entirely once the old APIC infrastructure can be kicked out.

Location:
trunk/src/VBox/VMM/VMMR0
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r60364 r60398  
    469469                        if (RT_SUCCESS(rc))
    470470                        {
    471 #ifdef VBOX_WITH_NEW_APIC
    472                             rc = APICR0InitVM(pVM);
    473 #endif
     471                            VMM_CHECK_SMAP_CHECK2(pVM, rc = VERR_VMM_RING0_ASSERTION);
    474472                            if (RT_SUCCESS(rc))
    475473                            {
    476                                 VMM_CHECK_SMAP_CHECK2(pVM, rc = VERR_VMM_RING0_ASSERTION);
    477                                 if (RT_SUCCESS(rc))
    478                                 {
    479                                     GVMMR0DoneInitVM(pVM);
    480                                     VMM_CHECK_SMAP_CHECK2(pVM, RT_NOTHING);
    481                                     return rc;
    482                                 }
    483 #ifdef VBOX_WITH_NEW_APIC
    484                             APICR0TermVM(pVM);
    485 #endif
     474                                GVMMR0DoneInitVM(pVM);
     475                                VMM_CHECK_SMAP_CHECK2(pVM, RT_NOTHING);
     476                                return rc;
    486477                            }
    487478
     
    528519    if (GVMMR0DoingTermVM(pVM, pGVM))
    529520    {
    530 #ifdef VBOX_WITH_NEW_APIC
    531         APICR0TermVM(pVM);
    532 #endif
    533521        GIMR0TermVM(pVM);
    534522
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