[RFC PATCH 20/55] KVM: x86: allow KVM_TRANSLATE on plane vCPU fds

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

The VMM needs to translate guest virtual addresses in the context of a
specific plane to implement HvCallTranslateVirtualAddress, which a
higher VTL uses to resolve a lower VTL's buffer addresses.
KVM_TRANSLATE already works on any vCPU; permit it on plane fds too.

Signed-off-by: David Woodhouse <redacted>
Assisted-by: LLM
---
 arch/x86/kvm/x86.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index eb5d4932641e..1a9a241264ca 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -6310,6 +6310,7 @@ bool kvm_arch_is_vcpu_plane_ioctl(unsigned ioctl)
 	case KVM_GET_XSAVE2:
 	case KVM_SET_XSAVE:
 	case KVM_GET_REG_LIST:
+	case KVM_TRANSLATE:
 		return true;
 	default:
 		return false;
-- 
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