Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp255378rdb; Mon, 18 Sep 2023 14:11:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEeIkzls/JLHJV5mGaraeuUz6veQI8lS/4pCKdZpZlw/TBYdYVQZJC5li2W4k6F9UhQRJno X-Received: by 2002:a17:903:247:b0:1bd:e5e7:4845 with SMTP id j7-20020a170903024700b001bde5e74845mr9430496plh.26.1695071486393; Mon, 18 Sep 2023 14:11:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695071486; cv=none; d=google.com; s=arc-20160816; b=z4INpPlCi+HMt0nNvjg9kZOshK1V0Ibr90Z+TnEhcpzuuQpRnCmfQpjMVGRB9Lzqx4 yU6ca3dAXsiigw3+uuIpOZ3gGTeSn/xsCF9GyIbPGA9QpTE1C59eRc0pHPtP45ssnV58 blqC/jDIhiukx6peE2BT0egU0MXwBYLAnwevtAFK8+RAT2+SUAztnUxDRoHrdSDiaHuX nCdFmyWmHZaN6t+yKS1mouTy9YMHD8FocNPVk01qEBYd36/xxbjE+QfWOcJrBNcIwTMw NG+gQ2dP01cKwefHHD1XReHx1F/tFjD7pNcSCzF50Dc5IxbD8D4uoVdAaEhO8y3iglfY +Anw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=skILK3+RqLs29/E8NIb2upQKKLhMeBuYLpBX+o8j0o8=; fh=LvR0iFQNUCFuLf0e0dfpbwu/ZRO+ihf5gBz7bBaQp/0=; b=V91O70Kkpq+TmrSiYFwZ/I4P5Np4Vj3KTC5BiFmmvN2AB2bHZHmYIvFkPoZyKt4f4m FxDCe8GHH2glGXqc5nvLO6/HNn1Sj9XFB1xR6WnCcrRDPBINLEE8PBTKeI3yGCQenKM6 qgVpTJb6tKv6p3tsbrQCXX0XP9TxnnP7T5aUuIH66t2cwvBaAsLKkVBsZwPLvxU1Zwqq xCYXY0kS8QJnWaJd8w9/IjHwf1vRp/bRaVzJC+1qbwzFzWbP/O3Ge6U7+/OpTc7+yuDP j/rxWDX8xXt2XXptgGhWm9eSqK4bOU49mVSdwWfWAFUyUR5Ye0eWG5jnNJ9KZzgh+1bC g5Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=epA4f9kE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id u10-20020a170902e5ca00b001bb9e2c38ecsi2401884plf.264.2023.09.18.14.11.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 14:11:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=epA4f9kE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 3F82880811C9; Mon, 18 Sep 2023 08:20:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234410AbjIRPUX (ORCPT + 99 others); Mon, 18 Sep 2023 11:20:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbjIRPUU (ORCPT ); Mon, 18 Sep 2023 11:20:20 -0400 Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31E791738 for ; Mon, 18 Sep 2023 08:18:07 -0700 (PDT) Received: by mail-qk1-x72f.google.com with SMTP id af79cd13be357-76dc77fd024so300973785a.3 for ; Mon, 18 Sep 2023 08:18:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1695050286; x=1695655086; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=skILK3+RqLs29/E8NIb2upQKKLhMeBuYLpBX+o8j0o8=; b=epA4f9kEjYmtgyDTAraRytjVHXA60gPqpXFLNZUI5T6CmfNozGMDgtHTsswK3xeFwN 1OaIl3PXjp3zhr9NqAE6nOG7HQ8FSaxPaWwdzzepp4y2otKnJRYR0ljNSEWGJUC57f69 8+EzWR5gOljFD37THkSHlK62BilBydq+YTXLvCRJyRuRyVS6jLambIhSM9cnk6bUzXaU DD/8zo7gvasZZOWGlx7j8A/q91DMAH0eXiDRJeOxTgckOdb9dXBPpC/a/9XPINqgguT6 8A3KbK4V1xG0nVPOIs5OeUSwfxXBg7P621lqHwQ+yM5jTU2N3hkAE+juEg3hcIBfJV7w ARbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695050286; x=1695655086; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=skILK3+RqLs29/E8NIb2upQKKLhMeBuYLpBX+o8j0o8=; b=vEkQjtcmKzGzv+UPc7QBgDWc0wJM0UKjNArHcf3sBN9TEF4Qb4ieKhSuzpnqNuCsmF OBsNvuHXfcmVoTTP71aCfEZYhS6D6WpBAjaxO7jKtmTKFZw2pL3lozz5O5f98QpQmgpm gd7ol12HYcLUY4+FEfLe0B+ZN5afSEgg1fuY83BRHqIGhkrGoyU7lsG+fXhNTPV9tEiA kPos2hsEWXyyeaSkQG6XcvhmDcy2dAvgZZELOIVps0tCdSqX7MelybnSR2zc4qb6K5ua wfOWASc+0ZzSzqH0PphGiAyb77+aVz98aaAkCFjyIEnCQF+tZfZ68VF4a4wQSxpeo8/h Vp7A== X-Gm-Message-State: AOJu0YxMhEb9afcQiBAhSqnAQM0AiW74YYnvjq9OJEnNxwmf4NjNqima d79CfHk1MpeLaH4v2ABsH0802A== X-Received: by 2002:ad4:458d:0:b0:63f:9aa3:867b with SMTP id x13-20020ad4458d000000b0063f9aa3867bmr9395365qvu.40.1695050286275; Mon, 18 Sep 2023 08:18:06 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-26-201.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.26.201]) by smtp.gmail.com with ESMTPSA id r28-20020a0cb29c000000b0063d038df3f3sm3532215qve.52.2023.09.18.08.18.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 08:18:05 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1qiG0i-0005OR-Iy; Mon, 18 Sep 2023 12:18:04 -0300 Date: Mon, 18 Sep 2023 12:18:04 -0300 From: Jason Gunthorpe To: Sean Christopherson Cc: Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , Huacai Chen , Michael Ellerman , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Peter Zijlstra , Arnaldo Carvalho de Melo , Paolo Bonzini , Tony Krowiak , Halil Pasic , Jason Herne , Harald Freudenberger , Alex Williamson , Andy Lutomirski , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-mips@vger.kernel.org, kvm@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, linux-perf-users@vger.kernel.org, Anish Ghulati , Venkatesh Srinivas , Andrew Thornton Subject: Re: [PATCH 03/26] virt: Declare and define vfio_file_set_kvm() iff CONFIG_KVM is enabled Message-ID: <20230918151804.GH13795@ziepe.ca> References: <20230916003118.2540661-1-seanjc@google.com> <20230916003118.2540661-4-seanjc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230916003118.2540661-4-seanjc@google.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 18 Sep 2023 08:20:27 -0700 (PDT) On Fri, Sep 15, 2023 at 05:30:55PM -0700, Sean Christopherson wrote: > Hide vfio_file_set_kvm() and its unique helpers if KVM is not enabled, > nothing else in the kernel (or out of the kernel) should be using a > KVM specific helper. > > Signed-off-by: Sean Christopherson > --- > drivers/vfio/vfio_main.c | 2 +- > include/linux/vfio.h | 2 ++ > 2 files changed, 3 insertions(+), 1 deletion(-) Patch subject should be vfio not virt Reviewed-by: Jason Gunthorpe > @@ -1388,6 +1387,7 @@ void vfio_file_set_kvm(struct file *file, struct kvm *kvm) > vfio_device_file_set_kvm(file, kvm); > } > EXPORT_SYMBOL_GPL(vfio_file_set_kvm); > +#endif We could even put this in a symbol namespace.. Jason