From: David Woodhouse <[email protected]> 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 <[email protected]> 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

