diff options
author | Sean Christopherson <sean.j.christopherson@intel.com> | 2019-12-20 20:45:12 -0800 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-01-13 19:33:56 +0100 |
commit | 616c59b52342b0370ab822ce88fa0ff7f3671e4a (patch) | |
tree | 4ea943c84e9efb8cf0d9039cb0ff3c7ee24c951d /arch/x86/include/asm/topology.h | |
parent | b39033f504a7eda15dcb2465679b8d46651b3645 (diff) |
perf/x86: Provide stubs of KVM helpers for non-Intel CPUs
Provide stubs for perf_guest_get_msrs() and intel_pt_handle_vmx() when
building without support for Intel CPUs, i.e. CPU_SUP_INTEL=n. Lack of
stubs is not currently a problem as the only user, KVM_INTEL, takes a
dependency on CPU_SUP_INTEL=y. Provide the stubs for all CPUs so that
KVM_INTEL can be built for any CPU with compatible hardware support,
e.g. Centuar and Zhaoxin CPUs.
Note, the existing stub for perf_guest_get_msrs() is essentially dead
code as KVM selects CONFIG_PERF_EVENTS, i.e. the only user guarantees
the full implementation is built.
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20191221044513.21680-19-sean.j.christopherson@intel.com
Diffstat (limited to 'arch/x86/include/asm/topology.h')
0 files changed, 0 insertions, 0 deletions