diff options
author | Chao Peng <chao.p.peng@linux.intel.com> | 2018-10-24 10:05:11 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-12-21 11:28:35 +0100 |
commit | 86f5201df0d3e3efc78d3eac7fc5a59b813287cd (patch) | |
tree | 3f55a8ef84aa81ce4921a82069ece3014f519876 /arch/x86/include/asm | |
parent | KVM: x86: Add Intel PT virtualization work mode (diff) | |
download | linux-86f5201df0d3e3efc78d3eac7fc5a59b813287cd.tar.xz 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/include/asm')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index bca77c25a19a..ffb8a853e0d4 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -1105,6 +1105,7 @@ struct kvm_x86_ops { bool (*mpx_supported)(void); bool (*xsaves_supported)(void); bool (*umip_emulated)(void); + bool (*pt_supported)(void); int (*check_nested_events)(struct kvm_vcpu *vcpu, bool external_intr); void (*request_immediate_exit)(struct kvm_vcpu *vcpu); |