Re: [PATCH v2 7/8] KVM: nSVM: Move vmcb_ctrl_area_cached.bus_lock_rip to svm_nested_state
From: Yosry Ahmed
Date: Wed Feb 18 2026 - 18:22:04 EST
On Wed, Feb 18, 2026 at 03:09:57PM -0800, Sean Christopherson wrote:
> 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.
>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
Reviewed-by: Yosry Ahmed <yosry.ahmed@xxxxxxxxx>