]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: SVM: Rename vmcb->virt_ext to vmcb->misc_ctl2
authorYosry Ahmed <yosry@kernel.org>
Tue, 3 Mar 2026 00:34:13 +0000 (00:34 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 5 Mar 2026 00:09:04 +0000 (16:09 -0800)
commit7e6eab9be2200f83ab03ab2b921ea7ca47a6c3b4
tree573f3ce689b422e8adb40395afb00fc9d7915f35
parent1aea80dd42cf46d11af5ff7874a4f4dae77efd6a
KVM: SVM: Rename vmcb->virt_ext to vmcb->misc_ctl2

'virt' is confusing in the VMCB because it is relative and ambiguous.
The 'virt_ext' field includes bits for LBR virtualization and
VMSAVE/VMLOAD virtualization, so it's just another miscellaneous control
field. Name it as such.

While at it, move the definitions of the bits below those for
'misc_ctl' and rename them for consistency.

Signed-off-by: Yosry Ahmed <yosry@kernel.org>
Link: https://patch.msgid.link/20260303003421.2185681-20-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/svm.c
arch/x86/kvm/svm/svm.h
tools/testing/selftests/kvm/include/x86/svm.h
tools/testing/selftests/kvm/x86/nested_vmsave_vmload_test.c
tools/testing/selftests/kvm/x86/svm_lbr_nested_state.c