VirtualBox

Changeset 26459 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Feb 12, 2010 11:42:36 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57608
Message:

Main: HPET machine property, cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r26444 r26459  
    14661466          cCPUs(1),
    14671467          fCpuHotPlug(false),
     1468          fHpetEnabled(false),
    14681469          ulMemorySizeMB((uint32_t)-1),
    14691470          ulVRAMSizeMB(8),
     
    15091510                  && (cCPUs                     == h.cCPUs)
    15101511                  && (fCpuHotPlug               == h.fCpuHotPlug)
     1512                  && (fHpetEnabled              == h.fHpetEnabled)
    15111513                  && (llCpus                    == h.llCpus)
    15121514                  && (llCpuIdLeafs              == h.llCpuIdLeafs)
     
    20932095            }
    20942096        }
     2097        else if (pelmHwChild->nameEquals("HPET"))
     2098        {
     2099            pelmHwChild->getAttributeValue("enabled", hw.fHpetEnabled);
     2100        }
    20952101        else if (pelmHwChild->nameEquals("Boot"))
    20962102        {
     
    29872993    }
    29882994
     2995    if (    (m->sv >= SettingsVersion_v1_10)
     2996       )
     2997    {
     2998         xml::ElementNode *pelmHpet = pelmHardware->createChild("HPET");
     2999         pelmHpet->setAttribute("enabled", hw.fHpetEnabled);
     3000    }
     3001
    29893002    xml::ElementNode *pelmBoot = pelmHardware->createChild("Boot");
    29903003    for (BootOrderMap::const_iterator it = hw.mapBootOrder.begin();
     
    35563569    }
    35573570
     3571    // VirtualBox 3.2 adds support for CPU hotplug, RTC timezone control, HID type and HPET
    35583572    if (    m->sv < SettingsVersion_v1_10
    35593573         && (    fRTCUseUTC
     
    35613575              || hardwareMachine.pointingHidType != PointingHidType_PS2Mouse
    35623576              || hardwareMachine.keyboardHidType != KeyboardHidType_PS2Keyboard
     3577              || hardwareMachine.fHpetEnabled
    35633578            )
    35643579       )
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