Thread (79 messages) 79 messages, 4 authors, 2026-03-06

Re: [PATCH v9 23/30] KVM: arm64: Context switch SME state for guests

From: Mark Brown <broonie@kernel.org>
Date: 2026-01-14 17:27:59
Also in: kvm, kvmarm, linux-doc, linux-kselftest, lkml

On Tue, Jan 13, 2026 at 02:24:56PM +0000, Fuad Tabba wrote:
On Tue, 23 Dec 2025 at 01:23, Mark Brown [off-list ref] wrote:
quoted
+#define sme_cond_update_smcr_vq(val, reg)                      \
+       do {                                                    \
+               u64 __smcr = read_sysreg_s((reg));              \
+               u64 __new = __smcr & ~SMCR_ELx_LEN_MASK;        \
+               __new |= (val) & SMCR_ELx_LEN_MASK;             \
Similar to what I pointed out in patch 15 [1], I think you need to
preserve the other bits, since SMCR isn't just about the length.
This does preserve the existing bits?  It reads SMCR, masks out and then
replaces the length.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help