]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: nSVM: Capture svm->nested.ctl as vmcb12_ctrl when preparing vmcb02
authorSean Christopherson <seanjc@google.com>
Wed, 18 Feb 2026 23:09:58 +0000 (15:09 -0800)
committerSean Christopherson <seanjc@google.com>
Thu, 5 Mar 2026 00:09:02 +0000 (16:09 -0800)
commit56bfbe68f78ece2ea9b15f31ec8f7543d8942e3b
tree5fc77227bf687a5e892ffed081ed6fd9cb3d0a18
parentaf75470944f4c978956001cd6034f67469957c1b
KVM: nSVM: Capture svm->nested.ctl as vmcb12_ctrl when preparing vmcb02

Grab svm->nested.ctl as vmcb12_ctrl when preparing the vmcb02 controls to
make it more obvious that much of the data is coming from vmcb12 (or
rather, a snapshot of vmcb12 at the time of L1's VMRUN).

Opportunistically reorder the variable definitions to create a pretty
reverse fir tree.

No functional change intended.

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