summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2023-05-10 13:41:39 +0000
committervboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>2023-05-10 13:41:39 +0000
commit5bf4508a0462e478082c9d20930d032b6eb2ad28 (patch)
tree83c93f082f1f1c4d43592855272594cd2ee95cb0
parent1e65f095bcbb6529d6abc00a3025cf03c83d09a0 (diff)
downloadVirtualBox-svn-5bf4508a0462e478082c9d20930d032b6eb2ad28.tar.gz
VMM/EM: Nested VMX: bugref:10318 Clarify comment regarding priority of interrupt-window vs NMI delivery. The code should eventually be restructured.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@99725 cfe28804-0f27-0410-a406-dd0f0b0b656f
-rw-r--r--src/VBox/VMM/VMMR3/EM.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/VBox/VMM/VMMR3/EM.cpp b/src/VBox/VMM/VMMR3/EM.cpp
index f54c5e79934..965623bd49d 100644
--- a/src/VBox/VMM/VMMR3/EM.cpp
+++ b/src/VBox/VMM/VMMR3/EM.cpp
@@ -1857,8 +1857,9 @@ int emR3ForcedActions(PVM pVM, PVMCPU pVCpu, int rc)
/*
* VMX interrupt-window VM-exit.
* This is a bit messy with the way the code below is currently structured,
- * but checking VMCPU_FF_INTERRUPT_NMI here should allow pending NMI to be delivered
- * prior to causing an interrupt-window VM-exit.
+ * but checking VMCPU_FF_INTERRUPT_NMI here (combined with CPUMAreInterruptsInhibitedByNmi
+ * already checked at this point) should allow a pending NMI to be delivered prior to
+ * causing an interrupt-window VM-exit.
*/
/** @todo Restructure this later to happen after injecting NMI/causing NMI-exit, see
* code in VMX R0 event delivery. */