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

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

From: Fuad Tabba <tabba@google.com>
Date: 2026-01-15 09:03:09
Also in: kvm, kvmarm, linux-doc, linux-kselftest, lkml

On Wed, 14 Jan 2026 at 17:28, Mark Brown [off-list ref] wrote:
On Tue, Jan 13, 2026 at 02:24:56PM +0000, Fuad Tabba wrote:
quoted
On Tue, 23 Dec 2025 at 01:23, Mark Brown [off-list ref] wrote:
quoted
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;             \
quoted
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.
You're right. Sorry for the noise.

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