lkml.org 
[lkml]   [2022]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] KVM: selftests: x86: Skip unsupported test when Arch LBR is available
Date
Hi,

> - ret = _vcpu_set_msr(vm, 0, MSR_IA32_PERF_CAPABILITIES, PMU_CAP_LBR_FMT);
> - TEST_ASSERT(ret == 0, "Bad PERF_CAPABILITIES didn't fail.");
> + /* Note, on Arch LBR capable platforms, LBR_FMT in perf capability msr is 0x3f,
> + * so skip below test if running on these platforms. */
> + if (host_cap.lbr_format != PMU_CAP_LBR_FMT) {
> + ret = _vcpu_set_msr(vm, 0, MSR_IA32_PERF_CAPABILITIES, PMU_CAP_LBR_FMT);
> + TEST_ASSERT(ret == 0, "Bad PERF_CAPABILITIES didn't fail.");
> + }

Why not try a different value?

Paolo


\
 
 \ /
  Last update: 2022-05-10 17:21    [W:0.076 / U:1.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site