diff options
author | Alexander Graf | 2022-10-05 00:56:42 +0200 |
---|---|---|
committer | Paolo Bonzini | 2022-10-11 09:36:01 +0200 |
commit | 860054d8ce4067ef2bc3deb2a98cf93350fc03e4 (patch) | |
tree | ab5395d13844ca7c223f7f58ad6824829c3e0157 /linux-user/thunk.c | |
parent | x86: Implement MSR_CORE_THREAD_COUNT MSR (diff) | |
download | qemu-860054d8ce4067ef2bc3deb2a98cf93350fc03e4.tar.gz qemu-860054d8ce4067ef2bc3deb2a98cf93350fc03e4.tar.xz qemu-860054d8ce4067ef2bc3deb2a98cf93350fc03e4.zip |
i386: kvm: Add support for MSR filtering
KVM has grown support to deflect arbitrary MSRs to user space since
Linux 5.10. For now we don't expect to make a lot of use of this
feature, so let's expose it the easiest way possible: With up to 16
individually maskable MSRs.
This patch adds a kvm_filter_msr() function that other code can call
to install a hook on KVM MSR reads or writes.
Signed-off-by: Alexander Graf <agraf@csgraf.de>
Message-Id: <20221004225643.65036-3-agraf@csgraf.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'linux-user/thunk.c')
0 files changed, 0 insertions, 0 deletions