Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: x86: Use KBUILD_MODNAME to specify vendor module name

Use KBUILD_MODNAME to specify the vendor module name instead of manually
writing out the name to make it a bit more obvious that the name isn't
completely arbitrary. A future patch will also use KBUILD_MODNAME to
define pr_fmt, at which point using KBUILD_MODNAME for kvm_x86_ops.name
further reinforces the intended usage of kvm_x86_ops.name.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20221130230934.1014142-34-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

authored by

Sean Christopherson and committed by
Paolo Bonzini
08a9d59c 81a1cf9f

+2 -2
+1 -1
arch/x86/kvm/svm/svm.c
··· 4701 4701 } 4702 4702 4703 4703 static struct kvm_x86_ops svm_x86_ops __initdata = { 4704 - .name = "kvm_amd", 4704 + .name = KBUILD_MODNAME, 4705 4705 4706 4706 .hardware_unsetup = svm_hardware_unsetup, 4707 4707 .hardware_enable = svm_hardware_enable,
+1 -1
arch/x86/kvm/vmx/vmx.c
··· 8145 8145 } 8146 8146 8147 8147 static struct kvm_x86_ops vmx_x86_ops __initdata = { 8148 - .name = "kvm_intel", 8148 + .name = KBUILD_MODNAME, 8149 8149 8150 8150 .hardware_unsetup = vmx_hardware_unsetup, 8151 8151