KVM: x86: Use non-atomic bit ops to manipulate "shadow" MSR intercepts
authorSean Christopherson <seanjc@google.com>
Tue, 10 Jun 2025 22:57:12 +0000 (15:57 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 20 Jun 2025 20:05:40 +0000 (13:05 -0700)
commitb1bccf78839080a93898342cf1a613c38e871f75
tree2bb6119ff49e172e5695d2e0de364358c766e8b5
parent6353cd685c69f2b3e9a2833f6ff03a8f94c14c0a
KVM: x86: Use non-atomic bit ops to manipulate "shadow" MSR intercepts

Manipulate the MSR bitmaps using non-atomic bit ops APIs (two underscores),
as the bitmaps are per-vCPU and are only ever accessed while vcpu->mutex is
held.

Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com>
Link: https://lore.kernel.org/r/20250610225737.156318-8-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/svm.c
arch/x86/kvm/vmx/vmx.c