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 98a2174

Browse files
VMM/VMMAll/NEMAllNativeTemplate-win.cpp.h: Triy to figure out the offending register when WHvSetVirtualProcessorRegisters() fails, github:gh-346
svn:sync-xref-src-repo-rev: r171286
1 parent a359142 commit 98a2174

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

‎src/VBox/VMM/VMMAll/NEMAllNativeTemplate-win.cpp.h‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: NEMAllNativeTemplate-win.cpp.h 111296 2025-10-09 09:36:25Z ramshankar.venkataraman@oracle.com $ */
1+
/* $Id: NEMAllNativeTemplate-win.cpp.h 111694 2025-11-13 13:00:17Z alexander.eichner@oracle.com $ */
22
/** @file
33
* NEM - Native execution manager, Windows code template ring-0/3.
44
*/
@@ -493,6 +493,18 @@ NEM_TMPL_STATIC int nemHCWinCopyStateToHyperV(PVMCC pVM, PVMCPUCC pVCpu)
493493
AssertLogRelMsgFailed(("WHvSetVirtualProcessorRegisters(%p, %u,,%u,) -> %Rhrc (Last=%#x/%u)\n",
494494
pVM->nem.s.hPartition, pVCpu->idCpu, iReg,
495495
hrc, RTNtLastStatusValue(), RTNtLastErrorValue()));
496+
/* Try to figure out the register causing the error. */
497+
for (uint32_t i = 0; i < iReg; i++)
498+
{
499+
hrc = WHvSetVirtualProcessorRegisters(pVM->nem.s.hPartition, pVCpu->idCpu, &aenmNames[i], 1, &aValues[i]);
500+
if (FAILED(hrc))
501+
{
502+
AssertLogRelMsgFailed(("WHvSetVirtualProcessorRegisters(%p, %u, %#RX64, 1, %#RX64) -> %Rhrc (Last=%#x/%u)\n",
503+
pVM->nem.s.hPartition, pVCpu->idCpu, aenmNames[i], aValues[i].Reg64,
504+
hrc, RTNtLastStatusValue(), RTNtLastErrorValue()));
505+
break;
506+
}
507+
}
496508
return VERR_INTERNAL_ERROR;
497509
}
498510

0 commit comments

Comments
(0)

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