]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: SVM: Tag sev_supported_vmsa_features as read-only after init
authorSean Christopherson <seanjc@google.com>
Fri, 9 Jan 2026 03:31:01 +0000 (19:31 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 14 Jan 2026 01:35:55 +0000 (17:35 -0800)
commitd23051f59a5b4eb1f6163cf27e07b8cfcaeb4758
tree0ba8aff87d93af454b1fb1afdacbf9ccb2b1c11b
parent9587dd7a7ebd7be3c36815a4c4f90f7e2cedbe03
KVM: SVM: Tag sev_supported_vmsa_features as read-only after init

Tag sev_supported_vmsa_features with __ro_after_init as it's configured by
sev_hardware_setup() and never written after initial configuration (and if
it were, that'd be a blatant bug).

Opportunistically relocate the variable out of the module params area now
that sev_es_debug_swap_enabled is gone (which largely motivated its
original location).

Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://patch.msgid.link/20260109033101.1005769-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/sev.c