]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: VMX: Dedup code for adding MSR to VMCS's auto list
authorSean Christopherson <seanjc@google.com>
Sat, 6 Dec 2025 00:17:18 +0000 (16:17 -0800)
committerSean Christopherson <seanjc@google.com>
Thu, 8 Jan 2026 19:52:22 +0000 (11:52 -0800)
commitc3d6a7210a4de909683a36779f5b8567f79a3688
tree6376f2f9948b7c692a8625a9a758ecb6ecbce1bf
parent2239d137a71d77c7610434473b0c8cfde90d4116
KVM: VMX: Dedup code for adding MSR to VMCS's auto list

Add a helper to add an MSR to a VMCS's "auto" list to deduplicate the code
in add_atomic_switch_msr(), and so that the functionality can be used in
the future for managing the MSR auto-store list.

No functional change intended.

Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Tested-by: Manali Shukla <manali.shukla@amd.com>
Link: https://patch.msgid.link/20251206001720.468579-43-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/vmx.c