[PATCH kvmtool 0/7] Fix --vcpu-affinity
Will Deacon
will at kernel.org
Thu Nov 26 09:14:29 PST 2026
On Thu, 17 Sep 2026 16:49:25 +0100, Alexandru Elisei wrote:
> This is my attempt at fixing --vcpu-affinity, which I introduced. Patches #1-#4
> are straightforward fixes, and they don't modify the current (broken) behaviour
> in any way. Patch #5 fixes is most of the fix: with it, the VCPU threads run on
> the physical CPUs passed to --vcpu-affinity, and most of the kvmtool threads,
> except the virtio threads, use the main thread affinity.
>
> The virtio threads are special because they are spawned from the VCPU threads,
> and they inherit the VCPU thread affinity. Note that there might be other cases
> where this happens.
>
> [...]
Applied first five to kvmtool (master), thanks!
[1/7] arm64: Pass the number of elements as the first argument to calloc()
https://git.kernel.org/will/kvmtool/c/5b707c29743a
[2/7] arm64: Consistently treat vcpu_affinity_cpuset as dynamically allocated
https://git.kernel.org/will/kvmtool/c/c1c630e7d331
[3/7] arm64: Free the temporary cpumask in vcpu_affinity_parser()
https://git.kernel.org/will/kvmtool/c/e6fbd872f1b1
[4/7] arm64/pmu: Consider kvmtool's affinity when searching for a PMU
https://git.kernel.org/will/kvmtool/c/8c3912c087d1
[5/7] Correctly apply --vcpu-affinity to the VCPU threads
https://git.kernel.org/will/kvmtool/c/4c90ccf4c593
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
More information about the linux-arm-kernel
mailing list