VirtualBox

Changeset 20679 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jun 18, 2009 10:38:52 AM (16 years ago)
Author:
vboxsync
Message:

ACPI: fix problem with certain Windows ACPI impls (such as XP) mistreating CPU objects - make them all of the same size and control behavior entirely by patching

File:
1 edited

Legend:

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

    r20677 r20679  
    661661    if (fACPI)
    662662    {
     663        BOOL fShowCpu = fExtProfile;
     664        /* Always show the CPU leafs when we have multiple VCPUs or when the IO-APIC is enabled.
     665         * The Windows SMP kernel needs a CPU leaf or else its idle loop will burn cpu cycles; the
     666         * intelppm driver refuses to register an idle state handler.
     667         */
     668        if ((cCpus > 1) ||  fIOAPIC)
     669            fShowCpu = true;
     670         
    663671        rc = CFGMR3InsertNode(pDevices, "acpi", &pDev);                             RC_CHECK();
    664672        rc = CFGMR3InsertNode(pDev,     "0", &pInst);                               RC_CHECK();
     
    678686#endif
    679687        rc = CFGMR3InsertInteger(pCfg,  "ShowRtc", fExtProfile);                    RC_CHECK();
    680         rc = CFGMR3InsertInteger(pCfg,  "ShowCpu", fExtProfile);                    RC_CHECK();
     688
     689        rc = CFGMR3InsertInteger(pCfg,  "ShowCpu", fShowCpu);                       RC_CHECK();
    681690        rc = CFGMR3InsertInteger(pInst, "PCIDeviceNo",          7);                 RC_CHECK();
    682691        Assert(!afPciDeviceNo[7]);
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