VirtualBox

Ignore:
Timestamp:
Sep 16, 2008 1:04:14 PM (16 years ago)
Author:
vboxsync
Message:

multiple LAPICs intermediate commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r12432 r12487  
    431431        {
    432432            ComPtr<IHostFloppyDrive> hostFloppyDrive;
    433             hrc = floppyDrive->GetHostDrive(hostFloppyDrive.asOutParam());              H();
     433            hrc = floppyDrive->GetHostDrive(hostFloppyDrive.asOutParam());                  H();
    434434            if (hostFloppyDrive)
    435435            {
     
    500500     * Advanced Programmable Interrupt Controller.
    501501     */
     502#ifdef VBOX_WITH_SMP_GUESTS
     503    rc = CFGMR3InsertNode(pDevices, "apic", &pDev);                                 RC_CHECK();
     504    /* We need LAPIC per-CPU, as it allows cross-calls */
     505    for (ULONG ulInstance = 0; ulInstance < cCpus; ulInstance++)
     506    {
     507        char szInstance[4]; Assert(ulInstance <= 999);
     508        RTStrPrintf(szInstance, sizeof(szInstance), "%lu", ulInstance);
     509        rc = CFGMR3InsertNode(pDev, szInstance, &pInst);
     510        RC_CHECK();
     511        rc = CFGMR3InsertInteger(pInst, "Trusted",              1);     /* boolean */   RC_CHECK();
     512        rc = CFGMR3InsertNode(pInst,    "Config", &pCfg);                               RC_CHECK();
     513        rc = CFGMR3InsertInteger(pCfg,  "IOAPIC", fIOAPIC);                             RC_CHECK();
     514    }
     515#else
    502516    rc = CFGMR3InsertNode(pDevices, "apic", &pDev);                                 RC_CHECK();
    503517    rc = CFGMR3InsertNode(pDev,     "0", &pInst);                                   RC_CHECK();
     
    505519    rc = CFGMR3InsertNode(pInst,    "Config", &pCfg);                               RC_CHECK();
    506520    rc = CFGMR3InsertInteger(pCfg,  "IOAPIC", fIOAPIC);                             RC_CHECK();
     521#endif
    507522
    508523    if (fIOAPIC)
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