Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp653322rwi; Wed, 2 Nov 2022 16:46:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4FeQVbd7aa1L8HdfllLbrnlJJucy8Eua1D0tqcnU1daahppgIJvWisaTGmHWNf9TKe8UP7 X-Received: by 2002:a17:907:9609:b0:7ad:d7de:6090 with SMTP id gb9-20020a170907960900b007add7de6090mr17108697ejc.705.1667432818183; Wed, 02 Nov 2022 16:46:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667432818; cv=none; d=google.com; s=arc-20160816; b=U8R97atFzUrcxiZNQTkzx8i/UmdE/wf2HbWW8o8sc6T3MFIdaXXYNb4hWAPfIifKc1 pyunp9RviyNzzz57mB3OLxQMgY1wD7o7rbihq4zRnDzNiMWKuyvRRQpCoRvXWp09/maK m10pJsIljGc1L5Z66eFAak7UztT1rH2gPDbqyGclpWBPQwbsOSLoshH24GwBzAQ7pXZN Nf69KCZdq3NSEkEm1nfhuVdI7vDWY4SyRTCtIAJ5vtaLFVVw5wKml7k7KQz1f/HO8ipU VSuHqA5MbfOussUg3SJHvwrltUIaCoOE5nMO7W7dw3oucuWosRlZ4Q4xu8MfpeWXY1R6 Ajpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:reply-to:dkim-signature; bh=xdi2HIR5lDsLzEB1UZrukxTClMK6e7wt2nFiWo5gXdY=; b=MdeQqIOVpd4U6kka1/xi3cIm9WeUIG3YyJlFqNvVWnmGPTs6APm6P5rfmKBpXijcm1 U76vcu+63Tv5TqPowPry2Xph4jlXDEQSQ3uufIvhkk8/jgt1aJmyIBK0RKbWmAl/JzUo /6hCBZg1RWxFWKfRy30PCLKElEV5RRUzAv+dYu5xLye2w82korU7PeUDWPdVXss6LTeh GERsauld25+NUE7sb8bL402Jgyf7PaUmn8YBOqYOr6S8f9X7Ry/pYtUenStYT4r3TGPJ csXj39FhD3q9dBAA9Bqyip8u5h7ThlkTYTUkEQD9MGO3ZR+Zevu69V8gFEBZk0YYp9P5 An9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="sb/k/6YC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z1-20020a50eb41000000b0046154f0f813si15401462edp.271.2022.11.02.16.46.34; Wed, 02 Nov 2022 16:46:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="sb/k/6YC"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231152AbiKBXZD (ORCPT + 97 others); Wed, 2 Nov 2022 19:25:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231262AbiKBXYG (ORCPT ); Wed, 2 Nov 2022 19:24:06 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E64FC747 for ; Wed, 2 Nov 2022 16:20:19 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id k7-20020a256f07000000b006cbcc030bc8so332674ybc.18 for ; Wed, 02 Nov 2022 16:20:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=xdi2HIR5lDsLzEB1UZrukxTClMK6e7wt2nFiWo5gXdY=; b=sb/k/6YChcjl+a9VYlAXhWYOgQyjQV32YX7EFiw9qqpx/WWSDY3oo2CdFxdxpN5cQ+ bsen7KFdwbaDgiY7tE/ARuN34CNUQVNfQj40KonMSYzWyRevQJIJ8ucvWSt+5e0xldbM dG1h+yI8VvXovjZl23qRN2G1h0VDtyVIK/a8wCZyDk3med1nNg8la66zBWDcMMULCuHG GgMxZJTuhnm9Kg3Kf6izcH6H9MKXIo5IEEs5iURRrxNb+NCxH6KXLxeRheLVzOIs5Da0 /j3GVJG8PRl/KZMyimVoe+5FEyijlgyVWBHJWpAL02rmgy07fT/EQi1GCc1WFNc58HpZ GW3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xdi2HIR5lDsLzEB1UZrukxTClMK6e7wt2nFiWo5gXdY=; b=wxUTu/fhA372xrPJcfmrgyt4Oh4R5WVLR2TDkA857IJcTIpRoxGqeFWJL9MJ0LDQpF AkhoPb9e+ytJZiCQ4T3HZBHj9ngVni/gV3e7F4raFg6enwuzZDBLlbmvu86DkhIBmnEK cuqCxnfVhhvkc/6+K959SCPwwTNyw6J1zw9rFr2JZNLFJDXQxHfS22ecbb2vinbjJPvo dDVk0mHSxn3kD6EAhMHw7ztHD2kQjXqbamsrCYYeCIX/ZR+IXahLwCfy8mc9bAWZK6VV Z+Ww0HGT13Fg+dsjaVm1/7FaOuIUGkGaPHD/ltsFd09dwmleaBRfOKPGKUJ9fy2ZGUuh uz6w== X-Gm-Message-State: ACrzQf1/q+snjadZSorlP06Jo/dx2Jupos4vHogBWvn1c9CaoPyeQQSP 5HP2NNHGvdWf/w1rkX3ofdOLdJVLCZc= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a5b:443:0:b0:6bc:e3d1:8990 with SMTP id s3-20020a5b0443000000b006bce3d18990mr28148778ybp.191.1667431207141; Wed, 02 Nov 2022 16:20:07 -0700 (PDT) Reply-To: Sean Christopherson Date: Wed, 2 Nov 2022 23:18:58 +0000 In-Reply-To: <20221102231911.3107438-1-seanjc@google.com> Mime-Version: 1.0 References: <20221102231911.3107438-1-seanjc@google.com> X-Mailer: git-send-email 2.38.1.431.g37b22c650d-goog Message-ID: <20221102231911.3107438-32-seanjc@google.com> Subject: [PATCH 31/44] KVM: x86: Use KBUILD_MODNAME to specify vendor module name From: Sean Christopherson To: Paolo Bonzini , Marc Zyngier , Huacai Chen , Aleksandar Markovic , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , Matthew Rosato , Eric Farman , Sean Christopherson , Vitaly Kuznetsov Cc: James Morse , Alexandru Elisei , Suzuki K Poulose , Oliver Upton , Atish Patra , David Hildenbrand , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvmarm@lists.cs.columbia.edu, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Isaku Yamahata , Fabiano Rosas , Michael Ellerman , Chao Gao , Thomas Gleixner , Yuan Yao Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/x86/kvm/svm/svm.c | 2 +- arch/x86/kvm/vmx/vmx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c index 99c1ac2d9c84..13457aa68112 100644 --- a/arch/x86/kvm/svm/svm.c +++ b/arch/x86/kvm/svm/svm.c @@ -4737,7 +4737,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, diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index 25e28d368274..a563c9756e36 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -8074,7 +8074,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, -- 2.38.1.431.g37b22c650d-goog