Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5d69d96

Browse files
committed
VMM: bugref:9918 Fix propagating HMR0 initialization error to ring-3, prevents ambiguous VERR_NOT_SUPPORTED guru when VT-x/AMD-V is exclusively grabbed by another hypervisor (safer fix).
svn:sync-xref-src-repo-rev: r170336
1 parent 62b86c0 commit 5d69d96

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/VBox/VMM/VMMR3/HM.cpp‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: HM.cpp 110815 2025年08月26日 08:47:24Z ramshankar.venkataraman@oracle.com $ */
1+
/* $Id: HM.cpp 110816 2025年08月26日 08:56:57Z ramshankar.venkataraman@oracle.com $ */
22
/** @file
33
* HM - Intel/AMD VM Hardware Support Manager.
44
*/
@@ -1184,7 +1184,9 @@ static int hmR3InitFinalizeR0(PVM pVM)
11841184
/*
11851185
* Report ring-0 init errors.
11861186
*/
1187-
if (RT_FAILURE(pVM->hm.s.ForR3.rcInit))
1187+
if ( RT_FAILURE(pVM->hm.s.ForR3.rcInit)
1188+
|| ( !pVM->hm.s.vmx.fSupported
1189+
&& !pVM->hm.s.svm.fSupported))
11881190
{
11891191
LogRel(("HM: Failed to initialize %s: %Rrc\n", pVM->hm.s.vmx.fSupported ? "VT-x" : "AMD-V", pVM->hm.s.ForR3.rcInit));
11901192
switch (pVM->hm.s.ForR3.rcInit)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /