diff options
| author | Sean Christopherson <seanjc@google.com> | 2025-11-13 15:14:19 -0800 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-03-03 12:23:26 -0800 |
| commit | 3b7a320e491c87c6d25928f6798c2efeef2be0e8 (patch) | |
| tree | d691fc72bb5bc9fd86b36bd1c14dc46c552fad8b /rust/kernel/interop/git@git.tavy.me:linux-stable.git | |
| parent | c65106af8393fe45524b256d7836317a8b3f2c09 (diff) | |
KVM: SVM: Skip OSVW variable updates if current CPU's errata are a subset
Elide the OSVW variable updates if the current CPU's set of errata are a
subset of the errata tracked in the global values, i.e. if no update is
needed. There's no danger of under-reporting errata due to bailing early
as KVM is purely reducing the set of "known fixed" errata. I.e. a racing
update on a different CPU with _more_ errata doesn't change anything if
the current CPU has the same or fewer errata relative to the status quo.
If another CPU is writing osvw_len, then "len" is guaranteed to be larger
than the new osvw_len and so the osvw_len update would be skipped anyways.
If another CPU is setting new bits in osvw_status, then "status" is
guaranteed to be a subset of the new osvw_status and the bitwise-OR would
be an effective nop anyways.
Link: https://patch.msgid.link/20251113231420.1695919-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
