VirtualBox

Changeset 91586 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Oct 6, 2021 9:02:05 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147296
Message:

VMM/CPUM: When using NEM and a VM is configured with nested virtualization, don't rely on nested-paging and unrestricted guest execution being available since we disable nested virtualization anyway.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUMR3CpuId.cpp

    r91354 r91586  
    42014201        if (pConfig->fNestedHWVirt)
    42024202        {
    4203             if (!fNestedPagingAndFullGuestExec)
    4204                 return VMSetError(pVM, VERR_CPUM_INVALID_HWVIRT_CONFIG, RT_SRC_POS,
    4205                                   "Cannot enable nested VT-x/AMD-V without nested-paging and unresricted guest execution!\n");
    4206 
    42074203            /** @todo Think about enabling this later with NEM/KVM. */
    42084204            if (VM_IS_NEM_ENABLED(pVM))
     
    42114207                pConfig->fNestedHWVirt = false;
    42124208            }
     4209            else if (!fNestedPagingAndFullGuestExec)
     4210                return VMSetError(pVM, VERR_CPUM_INVALID_HWVIRT_CONFIG, RT_SRC_POS,
     4211                                  "Cannot enable nested VT-x/AMD-V without nested-paging and unresricted guest execution!\n");
    42134212        }
    42144213
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