VirtualBox

Ignore:
Timestamp:
Sep 18, 2008 5:47:53 PM (16 years ago)
Author:
vboxsync
Message:

reworked APIC structures layout - hopefully not broken smth accidentally

File:
1 edited

Legend:

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

    r12520 r12588  
    499499    /*
    500500     * Advanced Programmable Interrupt Controller.
    501      * SMP: Each CPU has a LAPIC (cross-calls).
     501     * SMP: Each CPU has a LAPIC, but we have a single device representing all LAPICs states,
     502     *      thus only single insert
    502503     */
    503504    rc = CFGMR3InsertNode(pDevices, "apic", &pDev);                                 RC_CHECK();
    504     for (unsigned iCpu = 0; iCpu < cCpus; iCpu++)
    505     {
    506         rc = CFGMR3InsertNodeF(pDev, &pInst, "%u", iCpu);                           RC_CHECK();
    507         rc = CFGMR3InsertInteger(pInst, "Trusted",          1);     /* boolean */   RC_CHECK();
    508         rc = CFGMR3InsertNode(pInst,    "Config", &pCfg);                           RC_CHECK();
    509         rc = CFGMR3InsertInteger(pCfg,  "IOAPIC", fIOAPIC);                         RC_CHECK();
    510     }
    511 
     505    rc = CFGMR3InsertNode(pDev, "0", &pInst);                                       RC_CHECK();
     506    rc = CFGMR3InsertInteger(pInst, "Trusted",              1);     /* boolean */   RC_CHECK();
     507    rc = CFGMR3InsertNode(pInst,    "Config", &pCfg);                               RC_CHECK();
     508    rc = CFGMR3InsertInteger(pCfg,  "IOAPIC", fIOAPIC);                             RC_CHECK();
     509    rc = CFGMR3InsertInteger(pCfg,  "NumCPUs", cCpus);                              RC_CHECK();
     510
     511    /* SMP: @todo: IOAPIC may be required for SMP configs */
    512512    if (fIOAPIC)
    513513    {
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