From: Alexander Graf <graf@amazon.com>
To: <kvm@vger.kernel.org>
Cc: <linux-kernel@vger.kernel.org>, <x86@kernel.org>,
Paolo Bonzini <pbonzini@redhat.com>,
Sean Christopherson <seanjc@google.com>,
"Andrew Randrianasulu" <randrianasulu@gmail.com>,
Thomas Huth <thuth@redhat.com>
Subject: [PATCH 0/3] KVM: x86: Add KVM_X86_SET_MSR_FILTE compat handler
Date: Mon, 17 Oct 2022 20:45:38 +0200 [thread overview]
Message-ID: <20221017184541.2658-1-graf@amazon.com> (raw)
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(-)
--
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
next reply other threads:[~2022-10-17 18:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-17 18:45 Alexander Graf [this message]
2022-10-17 18:45 ` [PATCH 1/3] kvm: Add support for arch compat vm ioctls Alexander Graf
2022-10-17 18:45 ` [PATCH 2/3] KVM: x86: Make filter arg for set_msr_filter() Alexander Graf
2022-10-17 18:45 ` [PATCH 3/3] KVM: x86: Add compat handler for KVM_X86_SET_MSR_FILTER Alexander Graf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221017184541.2658-1-graf@amazon.com \
--to=graf@amazon.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=randrianasulu@gmail.com \
--cc=seanjc@google.com \
--cc=thuth@redhat.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox