Skip to content

KVM: x86: Add KVM_X86_SET_MSR_FILTE compat handler

Alexander Graf kvm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kvm: Add support for arch compat vm ioctlsinclude/linux/kvm_host.h virt/kvm/kvm_main.c+13 -00 replies
2/3KVM: x86: Make filter arg for set_msr_filter()arch/x86/kvm/x86.c+17 -140 replies
3/3KVM: x86: Add compat handler for KVM_X86_SET_MSR_FILTERarch/x86/kvm/x86.c+56 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] KVM: x86: Add KVM_X86_SET_MSR_FILTE compat handler

In commit 1a155254ff937 ("KVM: x86: Introduce MSR filtering") we introduced a new ioctl to handle MSR filtering. However, this ioctl passes a pointer to kernel space in an ioctl struct - which breaks in 32-on-64 bit compat situations.

This patch set introduces a compat mechanism for architecutre spacific VM ioctls and implements an MSR_FILTER wrapper in it.

Alexander Graf (3):
kvm: Add support for arch compat vm ioctls
KVM: x86: Make filter arg for set_msr_filter()
KVM: x86: Add compat handler for KVM_X86_SET_MSR_FILTER

 arch/x86/kvm/x86.c       | 87 +++++++++++++++++++++++++++++++++-------
 include/linux/kvm_host.h |  2 +
 virt/kvm/kvm_main.c      | 11 +++++
 3 files changed, 86 insertions(+), 14 deletions(-)
Signature · 12 lines
2.37.1




Amazon Development Center Germany GmbH
Krausenstr. 38
10117 Berlin
Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss
Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B
Sitz: Berlin
Ust-ID: DE 289 237 879