diff options
author | Chao Peng <chao.p.peng@linux.intel.com> | 2018-10-24 16:05:11 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-12-21 11:28:35 +0100 |
commit | 86f5201df0d3e3efc78d3eac7fc5a59b813287cd (patch) | |
tree | 3f55a8ef84aa81ce4921a82069ece3014f519876 /arch/x86/kvm/svm.c | |
parent | f99e3daf94ff35dd4a878d32ff66e1fd35223ad6 (diff) | |
download | talos-op-linux-86f5201df0d3e3efc78d3eac7fc5a59b813287cd.tar.gz talos-op-linux-86f5201df0d3e3efc78d3eac7fc5a59b813287cd.zip |
KVM: x86: Add Intel Processor Trace cpuid emulation
Expose Intel Processor Trace to guest only when
the PT works in Host-Guest mode.
Signed-off-by: Chao Peng <chao.p.peng@linux.intel.com>
Signed-off-by: Luwei Kang <luwei.kang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 1a64844dcdfb..47a9a45a2f70 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -5947,6 +5947,11 @@ static bool svm_umip_emulated(void) return false; } +static bool svm_pt_supported(void) +{ + return false; +} + static bool svm_has_wbinvd_exit(void) { return true; @@ -7188,6 +7193,7 @@ static struct kvm_x86_ops svm_x86_ops __ro_after_init = { .mpx_supported = svm_mpx_supported, .xsaves_supported = svm_xsaves_supported, .umip_emulated = svm_umip_emulated, + .pt_supported = svm_pt_supported, .set_supported_cpuid = svm_set_supported_cpuid, |