mbox series

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

Message ID 20221017184541.2658-1-graf@amazon.com (mailing list archive)
Headers show
Series KVM: x86: Add KVM_X86_SET_MSR_FILTE compat handler | expand

Message

Alexander Graf Oct. 17, 2022, 6:45 p.m. UTC
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(-)