]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: nSVM: Move vmcb_ctrl_area_cached.bus_lock_rip to svm_nested_state
authorSean Christopherson <seanjc@google.com>
Wed, 18 Feb 2026 23:09:57 +0000 (15:09 -0800)
committerSean Christopherson <seanjc@google.com>
Thu, 5 Mar 2026 00:09:01 +0000 (16:09 -0800)
commitaf75470944f4c978956001cd6034f67469957c1b
tree12dd470ede42f440400df982d303f8085d60597a
parentef09eebc5736add3415b6efb009fdb7c47a504c7
KVM: nSVM: Move vmcb_ctrl_area_cached.bus_lock_rip to svm_nested_state

Move "bus_lock_rip" from "vmcb_ctrl_area_cached" to "svm_nested_state" as
"last_bus_lock_rip" to more accurately reflect what it tracks, and because
it is NOT a cached vmcb12 control field.  The misplaced field isn't all
that apparent in the current code base, as KVM uses "svm->nested.ctl"
broadly, but the bad placement becomes glaringly obvious if
"svm->nested.ctl" is captured as a local "vmcb12_ctrl" variable.

No functional change intended.

Reviewed-by: Yosry Ahmed <yosry.ahmed@linux.dev>
Link: https://patch.msgid.link/20260218230958.2877682-8-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/nested.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h