diff options
author | Tom Lendacky <thomas.lendacky@amd.com> | 2018-02-21 13:39:51 -0600 |
---|---|---|
committer | Radim Krčmář <rkrcmar@redhat.com> | 2018-03-01 19:00:28 +0100 |
commit | 801e459a6f3a63af9d447e6249088c76ae16efc4 (patch) | |
tree | b23a56566b4ace273ae07cd150acec275e3cd669 /arch/x86/include | |
parent | d4858aaf6bd8a90e2dacc0dfec2077e334dcedbf (diff) | |
download | op-kernel-dev-801e459a6f3a63af9d447e6249088c76ae16efc4.zip op-kernel-dev-801e459a6f3a63af9d447e6249088c76ae16efc4.tar.gz |
KVM: x86: Add a framework for supporting MSR-based features
Provide a new KVM capability that allows bits within MSRs to be recognized
as features. Two new ioctls are added to the /dev/kvm ioctl routine to
retrieve the list of these MSRs and then retrieve their values. A kvm_x86_ops
callback is used to determine support for the listed MSR-based features.
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
[Tweaked documentation. - Radim]
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 0a9e330..bab0694 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -1095,6 +1095,8 @@ struct kvm_x86_ops { int (*mem_enc_op)(struct kvm *kvm, void __user *argp); int (*mem_enc_reg_region)(struct kvm *kvm, struct kvm_enc_region *argp); int (*mem_enc_unreg_region)(struct kvm *kvm, struct kvm_enc_region *argp); + + int (*get_msr_feature)(struct kvm_msr_entry *entry); }; struct kvm_arch_async_pf { |