Home Home > GIT Browse > SLE15-SP1
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2019-05-19 20:37:56 +0200
committerBorislav Petkov <bp@suse.de>2019-05-19 20:37:56 +0200
commit5a7a12738ee9b8d4da81f7af16a2c2860433e507 (patch)
treecf024521fbb4aba4b13a2986505f8f7d242f1bc1
parentcf93f9c9438d3c842849b2f7f1b8285f4b02ad09 (diff)
perf tools: Add Hygon Dhyana support (fate#327735).
-rw-r--r--tools/perf/arch/x86/util/kvm-stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/arch/x86/util/kvm-stat.c b/tools/perf/arch/x86/util/kvm-stat.c
index bf817beca0a8..9032c5d04bdf 100644
--- a/tools/perf/arch/x86/util/kvm-stat.c
+++ b/tools/perf/arch/x86/util/kvm-stat.c
@@ -155,7 +155,7 @@ int cpu_isa_init(struct perf_kvm_stat *kvm, const char *cpuid)
if (strstr(cpuid, "Intel")) {
kvm->exit_reasons = vmx_exit_reasons;
kvm->exit_reasons_isa = "VMX";
- } else if (strstr(cpuid, "AMD")) {
+ } else if (strstr(cpuid, "AMD") || strstr(cpuid, "Hygon")) {
kvm->exit_reasons = svm_exit_reasons;
kvm->exit_reasons_isa = "SVM";
} else