VirtualBox

Changeset 43035 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 28, 2012 1:19:43 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: VM settings / System page: Disable hardware acceleration automatically (on settings save) if its not supported.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.cpp

    r42551 r43035  
    317317    systemData.m_fUseAbsHID = mCbUseAbsHID->isChecked();
    318318    systemData.m_fPAEEnabled = mCbPae->isChecked();
    319     systemData.m_fHwVirtExEnabled = mCbVirt->checkState() == Qt::Checked || mSlCPU->value() > 1;
     319    systemData.m_fHwVirtExEnabled = !systemData.m_fPFHwVirtExSupported ? false :
     320                                    mCbVirt->isChecked() || mSlCPU->value() > 1;
    320321    systemData.m_fNestedPagingEnabled = mCbNestedPaging->isChecked();
    321322    systemData.m_iRAMSize = mSlMemory->value();
     
    457458            "by pressing the OK button.");
    458459        return true;
     460    }
     461
     462    /* VT-x/AMD-V test */
     463    {
     464        /* Get system data from cache: */
     465        const UIDataSettingsMachineSystem &systemData = m_cache.base();
     466        if (mCbVirt->isChecked() && !systemData.m_fPFHwVirtExSupported)
     467        {
     468            aWarning = tr (
     469                "you have hardware virtualization (VT-x/AMD-V) enabled. "
     470                "Your host configuration does not support "
     471                "hardware virtualization, so it will be disabled. "
     472                "This will be done automatically when you accept the VM Settings "
     473                "by pressing the OK button.");
     474            return true;
     475        }
    459476    }
    460477
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