Message ID | 20220609083916.36658-1-weijiang.yang@intel.com (mailing list archive) |
---|---|
Headers | show |
Series | Fix up test failures induced by !enable_pmu | expand |
On 9/6/2022 4:39 pm, Yang Weijiang wrote: > When pmu is disabled via enable_pmu=0, some perf related MSRs or instructions > are not available to VM, this results into some test failures, fix them in > this series. How about applying it in the x86/unittests.cfg: check = /sys/module/kvm/parameters/enable_pmu=N and add another pmu_disable.flat to cover all those unavailable expectations ?
On 6/10/2022 8:02 AM, Like Xu wrote: > On 9/6/2022 4:39 pm, Yang Weijiang wrote: >> When pmu is disabled via enable_pmu=0, some perf related MSRs or >> instructions >> are not available to VM, this results into some test failures, fix >> them in >> this series. > > How about applying it in the x86/unittests.cfg: > > check = /sys/module/kvm/parameters/enable_pmu=N I'm afraid you mean check enable_pmu=Y for those failing tests? Let's not hide the defects of the code :-) > > and add another pmu_disable.flat to cover all those unavailable > expectations ? A standalone test for !enable_pmu is a good idea, but the checklist is open, it may be added to the _TODO_ list.