Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: Alexandru Elisei <alexandru.elisei@arm.com>
To: Will Deacon <will@kernel.org>
Cc: julien.thierry.kdev@gmail.com, kvm@vger.kernel.org,
	maz@kernel.org, oupton@kernel.org, fuad.tabba@linux.dev,
	joey.gouly@arm.com, seiden@linux.ibm.com, suzuki.poulose@arm.com,
	yuzenghui@huawei.com, linux-arm-kernel@lists.infradead.org,
	kvmarm@lists.linux.dev, catalin.marinas@arm.com,
	mark.rutland@arm.com, kernel-team@android.com
Subject: Re: [PATCH kvmtool 0/7] Fix --vcpu-affinity
Date: Fri, 27 Nov 2026 11:14:41 +0000	[thread overview]
Message-ID: <awlmIXJ9o6ssyBe4@raptor> (raw)
In-Reply-To: <179570874285.2888674.1910692252028588031.b4-ty@kernel.org>

Hi Will,

On Thu, Nov 26, 2026 at 05:14:29PM +0000, Will Deacon wrote:
> 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!

Thanks!

I'll just drop the last two RFC patches, there doesn't seem to be much
interest.

Alex

> 
> [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

      reply	other threads:[~2026-11-27 11:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-17 15:49 [PATCH kvmtool 0/7] Fix --vcpu-affinity Alexandru Elisei
2026-09-17 15:49 ` [PATCH kvmtool 1/7] arm64: Pass the number of elements as the first argument to calloc() Alexandru Elisei
2026-09-17 15:49 ` [PATCH kvmtool 2/7] arm64: Consistently treat vcpu_affinity_cpuset as dynamically allocated Alexandru Elisei
2026-09-17 15:49 ` [PATCH kvmtool 3/7] arm64: Free the temporary cpumask in vcpu_affinity_parser() Alexandru Elisei
2026-09-17 15:49 ` [PATCH kvmtool 4/7] arm64/pmu: Consider kvmtool's affinity when searching for a PMU Alexandru Elisei
2026-09-17 15:49 ` [PATCH kvmtool 5/7] Correctly apply --vcpu-affinity to the VCPU threads Alexandru Elisei
2026-09-17 15:49 ` [RFC PATCH kvmtool 6/7] Introduce kvm_create_thread() Alexandru Elisei
2026-09-17 15:49 ` [RFC PATCH kvmtool 7/7] Don't apply --vcpu-affinity to threads spawned from VCPUs Alexandru Elisei
2026-09-18 12:22 ` [PATCH kvmtool 0/7] Fix --vcpu-affinity Marc Zyngier
2026-09-21  8:59   ` Alexandru Elisei
2026-11-26 17:14 ` Will Deacon
2026-11-27 11:14   ` Alexandru Elisei [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=awlmIXJ9o6ssyBe4@raptor \
    --to=alexandru.elisei@arm.com \
    --cc=catalin.marinas@arm.com \
    --cc=fuad.tabba@linux.dev \
    --cc=joey.gouly@arm.com \
    --cc=julien.thierry.kdev@gmail.com \
    --cc=kernel-team@android.com \
    --cc=kvm@vger.kernel.org \
    --cc=kvmarm@lists.linux.dev \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=mark.rutland@arm.com \
    --cc=maz@kernel.org \
    --cc=oupton@kernel.org \
    --cc=seiden@linux.ibm.com \
    --cc=suzuki.poulose@arm.com \
    --cc=will@kernel.org \
    --cc=yuzenghui@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox