KVM: SVM: Drop explicit check on MSRPM offset when emulating SEV-ES accesses
authorSean Christopherson <seanjc@google.com>
Tue, 10 Jun 2025 22:57:29 +0000 (15:57 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 20 Jun 2025 20:07:32 +0000 (13:07 -0700)
commit2f89888434bce68123b3c980bf1f2e04ecee57e1
tree8da8f3ba104e0da49ccffc2ffb1495080bd9e085
parent4880919aaf8d4beda81746909559578544387728
KVM: SVM: Drop explicit check on MSRPM offset when emulating SEV-ES accesses

Now that msr_write_intercepted() defaults to true, i.e. accurately reflects
hardware behavior for out-of-range MSRs, and doesn't WARN (or BUG) on an
out-of-range MSR, drop sev_es_prevent_msr_access()'s svm_msrpm_offset()
check that guarded against calling msr_write_intercepted() with a "bad"
index.

Opportunistically clean up the helper's formatting.

Link: https://lore.kernel.org/r/20250610225737.156318-25-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/svm.c