OSDN Git Service

KVM: x86: Check for Intel PT MSR virtualization using KVM cpu caps
authorSean Christopherson <sean.j.christopherson@intel.com>
Mon, 2 Mar 2020 23:56:59 +0000 (15:56 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:58:37 +0000 (17:58 +0100)
commit7b874c26a62487acaf2e7e179715991c70db25db
tree2e23226e45030fb34d5fc0d68c09f71ee954e396
parenta7a200eb4c698b70f60a1b8e4e2c6e1c3fcb982e
KVM: x86: Check for Intel PT MSR virtualization using KVM cpu caps

Use kvm_cpu_cap_has() to check for Intel PT when processing the list of
virtualized MSRs to pave the way toward removing ->pt_supported().

No functional change intended.

Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c