diff options
| author | 2026-10-16 09:15:58 +0100 | |
|---|---|---|
| committer | 2026-10-26 07:45:24 +0000 | |
| commit | 00e73757518020273ccf6308a51f214e58c21ad5 (patch) | |
| tree | 663ccb73cc3a2043ac2267103fad905e30d1ec89 /scripts/Makefile.thinlto | |
| parent | Merge branch kvm-arm64/cca-7.4 into kvmarm-master/next (diff) | |
KVM: arm64: Set HCR_EL2.BSU to Inner Shareable for guests
KVM sets HCR_EL2.BSU to Inner Shareable for guests, so that a guest's
barriers cover the TLB and I-cache invalidations that HCR_EL2.FB
broadcasts. However, since HCR_BSU_IS became an alias of the generated
HCR_EL2_BSU_IS, it is the unshifted field value 0b01, which sets bit
0 (VM, already set) and leaves BSU at 0b00. A guest's DSB NSH is then
not required to wait for a broadcast TLBI to complete on other CPUs.
Build the field with SYS_FIELD_PREP_ENUM().
Fixes: d0f39259eff4 ("arm64: sysreg: Add layout for HCR_EL2")
Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev>
Link: https://patch.msgid.link/20261016081558.805411-1-fuad.tabba@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: stable@vger.kernel.org
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
