diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-07-09 13:49:36 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-07-10 09:01:11 -0700 |
| commit | ed15cb21999217e549414c128b4a0485debf6278 (patch) | |
| tree | 7842279f3e36b534230e06009892503a0321fd73 /include/linux/debugobjects.h | |
| parent | ba76b23ed36ab230fc2577aba24f65851114902f (diff) | |
KVM: x86: Ensure runtime reads of disabled_quirks are resolved once
Wrap the sole reader of disabled_quirks with READ_ONCE(), and wrap the
post-VM-creation write to disabled_quirks with WRITE_ONCE(), to ensure
checking the status of a quirk doesn't re-read disabled_quirks *if* the
caller needs such a guarantee. This will allow splitting the "fast" MMU
zap into front and back halves, without potentially skipping the back
half if SLOT_ZAP_ALL were concurrently disabled (which would be "fine" in
the current code base, but far from ideal).
Cc: stable@vger.kernel.org # 6.12.x
Reviewed-by: Michael Roth <michael.roth@amd.com>
Link: https://patch.msgid.link/20260709204948.1988414-7-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
