[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 8/8] WHPX improve interrupt notification registratio
From: |
Justin Terry (VM) |
Subject: |
[Qemu-devel] [PATCH 8/8] WHPX improve interrupt notification registration |
Date: |
Mon, 26 Feb 2018 09:13:36 -0800 |
Improves the usage of the InterruptNotification registration by skipping the
additional call to WHvSetVirtualProcessorRegisters if we have already
registered for the window exit.
Signed-off-by: Justin Terry (VM) <address@hidden>
---
target/i386/whpx-all.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/target/i386/whpx-all.c b/target/i386/whpx-all.c
index 24387bebad..940bbe590d 100644
--- a/target/i386/whpx-all.c
+++ b/target/i386/whpx-all.c
@@ -756,12 +756,11 @@ static void whpx_vcpu_pre_run(CPUState *cpu)
}
/* Update the state of the interrupt delivery notification */
- if (cpu->interrupt_request & CPU_INTERRUPT_HARD) {
+ if (!vcpu->window_registered &&
+ cpu->interrupt_request & CPU_INTERRUPT_HARD) {
reg_values[reg_count].DeliverabilityNotifications.InterruptNotification
= 1;
- if (vcpu->window_registered != 1) {
- vcpu->window_registered = 1;
- }
+ vcpu->window_registered = 1;
reg_names[reg_count] = WHvX64RegisterDeliverabilityNotifications;
reg_count += 1;
}
--
2.13.6
- [Qemu-devel] [PATCH 0/8] WHPX updates based on the 17095 insider sdk., Justin Terry (VM), 2018/02/26
- [Qemu-devel] [PATCH 1/8] Fixing WHPX casing to match SDK, Justin Terry (VM), 2018/02/26
- [Qemu-devel] [PATCH 2/8] Resolves WHPX breaking changes in SDK 17095, Justin Terry (VM), 2018/02/26
- [Qemu-devel] [PATCH 6/8] Fix WHPX issue leaking tpr values, Justin Terry (VM), 2018/02/26
- [Qemu-devel] [PATCH 3/8] Remove unnecessary WHPX __debugbreak();, Justin Terry (VM), 2018/02/26
- [Qemu-devel] [PATCH 5/8] Fix WHPX typo in 'mmio', Justin Terry (VM), 2018/02/26
- [Qemu-devel] [PATCH 4/8] Fix WHPX additional lock acquisition, Justin Terry (VM), 2018/02/26
- [Qemu-devel] [PATCH 7/8] WHXP Removes the use of WHvGetExitContextSize, Justin Terry (VM), 2018/02/26
- [Qemu-devel] [PATCH 8/8] WHPX improve interrupt notification registration,
Justin Terry (VM) <=