VirtualBox

Changeset 60761 in vbox


Ignore:
Timestamp:
Apr 29, 2016 11:39:41 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106956
Message:

VMM/APIC: Disallow setting the mode as 'disabled'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/APIC.cpp

    r60752 r60761  
    14951495    {
    14961496        case APICMODE_DISABLED:
     1497        {
     1498            /** @todo permanently disabling the APIC won't really work (needs
     1499             *        fixing in HM, CPUM, PDM and possibly other places). See
     1500             *        @bugref{8353}. */
     1501#if 0
    14971502            pApic->enmOriginalMode = enmOriginalMode;
    14981503            CPUMClearGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_APIC);
    14991504            CPUMClearGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_X2APIC);
    15001505            break;
     1506#else
     1507            return VMR3SetError(pVM->pUVM, VERR_INVALID_PARAMETER, RT_SCR_POS, "APIC mode 'disabled' is not supported yet.");
     1508#endif
     1509        }
    15011510
    15021511        case APICMODE_X2APIC:
     
    15111520
    15121521        default:
    1513             return VMR3SetError(pVM->pUVM, VERR_INVALID_STATE, RT_SRC_POS, "APIC mode %#x unknown.", uOriginalMode);
     1522            return VMR3SetError(pVM->pUVM, VERR_INVALID_PARAMETER, RT_SRC_POS, "APIC mode %#x unknown.", uOriginalMode);
    15141523    }
    15151524
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