summaryrefslogtreecommitdiff
path: root/arch/x86/include/uapi/asm
diff options
context:
space:
mode:
authorAlexander Graf <graf@amazon.com>2020-09-25 17:34:17 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2020-09-28 14:58:05 +0300
commit51de8151bd21bae0ce76f604eec6a7176f7093b3 (patch)
tree2be4314648b13c5df06a917302c4b786bbe6ba95 /arch/x86/include/uapi/asm
parent1ae099540e8c7f1ee066b3ad45cc91f582bb1ce8 (diff)
downloadlinux-51de8151bd21bae0ce76f604eec6a7176f7093b3.tar.xz
KVM: x86: Add infrastructure for MSR filtering
In the following commits we will add pieces of MSR filtering. To ensure that code compiles even with the feature half-merged, let's add a few stubs and struct definitions before the real patches start. Signed-off-by: Alexander Graf <graf@amazon.com> Message-Id: <20200925143422.21718-4-graf@amazon.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/uapi/asm')
-rw-r--r--arch/x86/include/uapi/asm/kvm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/uapi/asm/kvm.h b/arch/x86/include/uapi/asm/kvm.h
index 0780f97c1850..c2fd0aa2f587 100644
--- a/arch/x86/include/uapi/asm/kvm.h
+++ b/arch/x86/include/uapi/asm/kvm.h
@@ -192,6 +192,8 @@ struct kvm_msr_list {
__u32 indices[0];
};
+#define KVM_MSR_FILTER_READ (1 << 0)
+#define KVM_MSR_FILTER_WRITE (1 << 1)
struct kvm_cpuid_entry {
__u32 function;