]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
KVM: x86: Use KBUILD_MODNAME to specify vendor module name
authorSean Christopherson <seanjc@google.com>
Wed, 30 Nov 2022 23:09:17 +0000 (23:09 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Dec 2022 20:41:30 +0000 (15:41 -0500)
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>
arch/x86/kvm/svm/svm.c
arch/x86/kvm/vmx/vmx.c

index 6db44797e85e880124d0cda7b2f555891f3eaaff..2bb62c3db3b3556aa2fd85e52f181a5c102dd263 100644 (file)
@@ -4701,7 +4701,7 @@ static int svm_vm_init(struct kvm *kvm)
 }
 
 static struct kvm_x86_ops svm_x86_ops __initdata = {
-       .name = "kvm_amd",
+       .name = KBUILD_MODNAME,
 
        .hardware_unsetup = svm_hardware_unsetup,
        .hardware_enable = svm_hardware_enable,
index 3df6b771d816660ad77ccfc4c48e7de132f60e79..daab447d311c21592fa3ad89444570941e8ca719 100644 (file)
@@ -8145,7 +8145,7 @@ static void vmx_vm_destroy(struct kvm *kvm)
 }
 
 static struct kvm_x86_ops vmx_x86_ops __initdata = {
-       .name = "kvm_intel",
+       .name = KBUILD_MODNAME,
 
        .hardware_unsetup = vmx_hardware_unsetup,