]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: SVM: Rename vmcb->nested_ctl to vmcb->misc_ctl
authorSean Christopherson <seanjc@google.com>
Tue, 3 Mar 2026 16:58:06 +0000 (08:58 -0800)
committerSean Christopherson <seanjc@google.com>
Thu, 5 Mar 2026 00:09:03 +0000 (16:09 -0800)
commit1aea80dd42cf46d11af5ff7874a4f4dae77efd6a
tree7692d67d43ee6c91925af23e863ba1a11e17cd88
parent56bfbe68f78ece2ea9b15f31ec8f7543d8942e3b
KVM: SVM: Rename vmcb->nested_ctl to vmcb->misc_ctl

The 'nested_ctl' field is misnamed. Although the first bit is for nested
paging, the other defined bits are for SEV/SEV-ES. Other bits in the
same field according to the APM (but not defined by KVM) include "Guest
Mode Execution Trap", "Enable INVLPGB/TLBSYNC", and other control bits
unrelated to 'nested'.

There is nothing common among these bits, so just name the field
misc_ctl. Also rename the flags accordingly.

Signed-off-by: Yosry Ahmed <yosry@kernel.org>
Link: https://patch.msgid.link/20260303003421.2185681-19-yosry@kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/svm.h
arch/x86/kvm/svm/nested.c
arch/x86/kvm/svm/sev.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h
tools/testing/selftests/kvm/include/x86/svm.h
tools/testing/selftests/kvm/lib/x86/svm.c