From: David Woodhouse <[email protected]>

A synthetic timer that expires on a suspended higher plane raises
KVM_REQ_HV_STIMER on that plane's vCPU. The request is shared between
the plane twins, so the plane that is running consumes it and processes
its own synthetic timers, not the twin's. The twin's expired timer is
never delivered.

Define KVM_REQ_HV_STIMER with KVM_ARCH_PLANE_REQ(), so each plane keeps
its own request and processes it when it next runs.

Signed-off-by: David Woodhouse <[email protected]>
---
 arch/x86/include/asm/kvm_host.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index fe8fddab6039..0fa3196fba36 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -113,7 +113,7 @@
 #define KVM_REQ_IOAPIC_EOI_EXIT                KVM_ARCH_PLANE_REQ(19)
 #define KVM_REQ_HV_RESET               KVM_ARCH_REQ(20)
 #define KVM_REQ_HV_EXIT                        KVM_ARCH_REQ(21)
-#define KVM_REQ_HV_STIMER              KVM_ARCH_REQ(22)
+#define KVM_REQ_HV_STIMER              KVM_ARCH_PLANE_REQ(22)
 #define KVM_REQ_LOAD_EOI_EXITMAP       KVM_ARCH_REQ(23)
 #define KVM_REQ_GET_NESTED_STATE_PAGES KVM_ARCH_REQ(24)
 #define KVM_REQ_APICV_UPDATE \
-- 
2.50.1


Reply via email to