[PATCH v3 kvmtool 00/11] arm64: Improve PMU support on heterogeneous systems

Will Deacon will at kernel.org
Fri May 6 07:43:28 PDT 2022


On Tue, 12 Apr 2022 14:32:20 +0100, Alexandru Elisei wrote:
> The series can be found at [1].
> 
> The series adds support for the KVM_ARM_VCPU_PMU_V3_SET_PMU PMU attribute,
> which allows userspace to set a PMU for a VCPU. This PMU is used by KVM
> when creating perf events to emulate the guest PMU.
> 
> Without settings this attribute, the PMU used when creating events is the
> first one that successfully probed when booting, but this is unreliable as
> the probe order can change (if the order of the PMUs is changed in the DTB
> or if asynchronous driver probing is enabled on the host's command line),
> and furthermore it requires the user to have intimate knowledge of how the
> PMU was chosen in order to pin the VM on the correct physical CPUs.
> 
> [...]

Applied to kvmtool (master), thanks!

[01/11] linux/err.h: Add missing stdbool.h include
        https://git.kernel.org/will/kvmtool/c/443cd881b471
[02/11] linux/bitops.h: Include wordsize.h to provide the __WORDSIZE define
        https://git.kernel.org/will/kvmtool/c/d9b64eb6aa05
[03/11] arm/arm64: pmu.h: Add missing header guards
        https://git.kernel.org/will/kvmtool/c/5898515dc727
[04/11] arm: Move arch specific VCPU features to the arch specific function
        https://git.kernel.org/will/kvmtool/c/412ee1375de8
[05/11] arm: Get rid of the ARM_VCPU_FEATURE_FLAGS() macro
        https://git.kernel.org/will/kvmtool/c/b23aed2ae11e
[06/11] arm: Make the PMUv3 emulation code arm64 specific
        https://git.kernel.org/will/kvmtool/c/f57ce4477092
[07/11] arm64: Rework set_pmu_attr()
        https://git.kernel.org/will/kvmtool/c/83713e75cd65
[08/11] Add cpumask functions
        https://git.kernel.org/will/kvmtool/c/0febaae00bb6
[09/11] update_headers.sh: Sync ABI headers with Linux v5.18-rc2
        https://git.kernel.org/will/kvmtool/c/083a976e0f08
[10/11] arm64: Add support for KVM_ARM_VCPU_PMU_V3_SET_PMU
        https://git.kernel.org/will/kvmtool/c/1393bda01407
[11/11] arm64: Add --vcpu-affinity command line argument
        https://git.kernel.org/will/kvmtool/c/4639b72f61a3

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list