Re: [PATCH v4 2/5] KVM: selftests: aarch64: Move pmu helper functions into vpmu.h

2024-02-01 Thread Oliver Upton
On Thu, Feb 01, 2024 at 09:56:51PM -0500, Shaoqin Huang wrote: > -static uint64_t get_pmcr_n(uint64_t pmcr) > -{ > - return FIELD_GET(ARMV8_PMU_PMCR_N, pmcr); > -} > - > -static void set_pmcr_n(uint64_t *pmcr, uint64_t pmcr_n) > -{ > - u64p_replace_bits((__u64 *) pmcr, pmcr_n, ARMV8_PMU_PMC

[PATCH v4 2/5] KVM: selftests: aarch64: Move pmu helper functions into vpmu.h

2024-02-01 Thread Shaoqin Huang
Move those pmu helper functions into include/aarch64/vpmu.h, thus it can be used by other pmu test. No functional change intended. Reviewed-by: Eric Auger Signed-off-by: Shaoqin Huang --- .../kvm/aarch64/vpmu_counter_access.c | 117 - .../selftests/kvm/include/aarch64/v