From: Marc Zyngier <maz@kernel.org>
To: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org
Cc: Steffen Eiden <seiden@linux.ibm.com>,
Joey Gouly <joey.gouly@arm.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Oliver Upton <oupton@kernel.org>,
Zenghui Yu <yuzenghui@huawei.com>
Subject: [PATCH v2 0/6] KVM: arm64: Make ICH_VTR_EL2 accesses an inlined literal
Date: Tue, 21 Jul 2026 18:07:48 +0100 [thread overview]
Message-ID: <20260721170754.3150521-1-maz@kernel.org> (raw)
I'm reposting this early as there were so many issues to the original
posting that I decided to deviate from my own rules... Bite me.
This is the second version of this series I initially sent as [1],
which aims at removing the large number of traps that ICH_VTR_EL2
generates in NV environments, leading to pointless overheads.
By moving from a sysreg access to a patched constant, running an L3
workload with a a healthy amount of IO results in a 5% reduction of
wall-clock time from a baseline without this series.
* From v1 [1]:
- Move the "broken SEIS" detection to an erratum, something it
should always have been, so that vgic_broken_seis() doesn't have
to use non-noinstr function calls (sashiko)
- Drop WARN_ON() in the patch function (sashiko)
- Switch from this_cpu_has_cap() to cpus_have_cap() (shashiko)
- Reorganise the patches so that some of the code movements are less
surprising to our favourite Artificial Idiot
- Simplify __vgic_v3_get_config() to only return the MMIO attribute
as a boolean, dropping all form of GICv5 support which made little
sense
[1] https://lore.kernel.org/r/20260720132220.2143486-1-maz@kernel.org
Marc Zyngier (6):
KVM: arm64: vgic-v3: Make vtr_to_* helpers use architectural field
symbols
KVM: arm64: Move GICv3 broken SEIS implementation detection to a CPU
errrata
KVM: arm64: Add a helper providing an inlined literal value for
ICH_VTR_EL2
KVM: arm64: Convert most ICH_VTR_EL2 accesses to inlined literal value
KVM: arm64: vgic-v3: Simplify initial GICv3 configuration sampling
KVM: arm64: vgic-v3: Kill kvm_vgic_global_state.ich_vtr_el2
arch/arm64/include/asm/kvm_asm.h | 2 +-
arch/arm64/kernel/cpu_errata.c | 17 +++++-
arch/arm64/kernel/image-vars.h | 1 +
arch/arm64/kvm/hyp/vgic-v3-sr.c | 43 +++++----------
arch/arm64/kvm/nested.c | 3 +-
arch/arm64/kvm/vgic-sys-reg-v3.c | 8 +--
arch/arm64/kvm/vgic/vgic-v3.c | 93 +++++++++++++++++++++-----------
arch/arm64/kvm/vgic/vgic-v5.c | 5 +-
arch/arm64/kvm/vgic/vgic.h | 19 ++++++-
arch/arm64/tools/cpucaps | 1 +
include/kvm/arm_vgic.h | 2 -
11 files changed, 118 insertions(+), 76 deletions(-)
--
2.47.3
next reply other threads:[~2026-07-21 17:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-21 17:07 Marc Zyngier [this message]
2026-07-21 17:07 ` [PATCH v2 1/6] KVM: arm64: vgic-v3: Make vtr_to_* helpers use architectural field symbols Marc Zyngier
2026-07-21 17:07 ` [PATCH v2 2/6] KVM: arm64: Move GICv3 broken SEIS implementation detection to a CPU errrata Marc Zyngier
2026-07-21 17:57 ` Oliver Upton
2026-07-21 17:07 ` [PATCH v2 3/6] KVM: arm64: Add a helper providing an inlined literal value for ICH_VTR_EL2 Marc Zyngier
2026-07-21 17:07 ` [PATCH v2 4/6] KVM: arm64: Convert most ICH_VTR_EL2 accesses to inlined literal value Marc Zyngier
2026-07-21 17:07 ` [PATCH v2 5/6] KVM: arm64: vgic-v3: Simplify initial GICv3 configuration sampling Marc Zyngier
2026-07-21 17:07 ` [PATCH v2 6/6] KVM: arm64: vgic-v3: Kill kvm_vgic_global_state.ich_vtr_el2 Marc Zyngier
2026-07-21 18:24 ` [PATCH v2 0/6] KVM: arm64: Make ICH_VTR_EL2 accesses an inlined literal Oliver Upton
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=20260721170754.3150521-1-maz@kernel.org \
--to=maz@kernel.org \
--cc=joey.gouly@arm.com \
--cc=kvmarm@lists.linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=oupton@kernel.org \
--cc=seiden@linux.ibm.com \
--cc=suzuki.poulose@arm.com \
--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