[RFC PATCH 10/55] KVM: x86: Allow MP state ioctls on plane vCPU fds

From
David Woodhouse <dwmw2@infradead.org>
Date
2026-10-17 12:25:05
Also in
kvm, linux-kselftest, lkml
Reply to
David Woodhouse, 2026-10-17
From: David Woodhouse <redacted>

A new plane vCPU for an AP starts, like any non-boot x86 vCPU, in the
uninitialised wait-for-INIT state, and nothing ever sends INIT/SIPI to
the higher plane of an AP. The VMM placing an initial VTL context on
it has to mark it runnable itself.

Signed-off-by: David Woodhouse <redacted>
Assisted-by: LLM
---
 arch/x86/kvm/x86.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index ca5d8e081fdc..970c738558f2 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -6278,6 +6278,8 @@ bool kvm_arch_is_vcpu_plane_ioctl(unsigned ioctl)
 	case KVM_SET_ONE_REG:
 	case KVM_GET_SREGS2:
 	case KVM_SET_SREGS2:
+	case KVM_GET_MP_STATE:
+	case KVM_SET_MP_STATE:
 	case KVM_GET_VCPU_EVENTS:
 	case KVM_SET_VCPU_EVENTS:
 	case KVM_GET_XCRS:
-- 
2.50.1
Thread (61 messages) 61 messages, 2 authors, last reply 9d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help