Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp308562rdb; Mon, 18 Sep 2023 16:17:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFol1RifZFq92oTSffW2XRBOdoskKncNLoOeNinyPWgFnA2vidnoxDLPJzgB7loszN/uE6w X-Received: by 2002:a05:6a00:2387:b0:690:449f:5e96 with SMTP id f7-20020a056a00238700b00690449f5e96mr11009457pfc.33.1695079022715; Mon, 18 Sep 2023 16:17:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695079022; cv=none; d=google.com; s=arc-20160816; b=PVVeNuYyWkzA5RBQnJXen7QbdLoizHUPY4AoTuuNB+8zqkkdKiSk0vbUJV4rKicEWr KfSDeoOdQdo9KXg7zPVfN8gP42vEIESMLiauuBwuzOkKrf2d90ZY44+F+TjkrNCg5QvG Ns6W044BoeGjc7gdkzFkSHpUmP8y7nWs6MIegM1RRoQ78y48RTuDG616ml4dcbcVOX3s 8jju2IrrlNs4l1Q/Xc0Uo4C43Z2xtEcf4asRIS1+HVpKy/3awERUe7Rwt8iyn7t+Lyuh 9HKEvOdAtJ0jFkWjcoowZqTKzCT3MZQdtmldcqdiG8w/dJcu/jkoyk9nbM+fjUCIqyIJ tuUQ== 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=/NB9QogE7/hqQA3eAPgSewNzbsnZd2QFPin+QhCO7do=; fh=LvR0iFQNUCFuLf0e0dfpbwu/ZRO+ihf5gBz7bBaQp/0=; b=vz6pxiUZmFmf/fRBu3KlX2iu5I8Gse72H1BitLqTDGTDtZaMNzEIzICy7nYplkjjZP PWm0oOaS389EH612oU1Iil0/yzRyOH41LHhRsygyGi/cwsP8P+4bqPDHGEIi7pROPl03 13rW5m42UMZ5rxic/Iip8UOv/Enh2GUcQYV4RLnQ4BRJZOAGwiHMWvLZUMylHkYy8r9K IGD3GYguL+rnwO0PfybVEcX8kaAz4/q5Mx+jD4rDL1E9FETaKjBCT6q7cZY6A7YoMHeS +1rSMtkHpo+WRBx2q+JFAYTeeiOkOsEbuaElIIHVDgc2fWf+8udn3nV6OUvjEH1IMPvY AhWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=aOVfyVy0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id bg26-20020a056a02011a00b0051b90567f99si8411173pgb.690.2023.09.18.16.16.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 16:17:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=aOVfyVy0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 354C180C7784; Mon, 18 Sep 2023 08:18:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233583AbjIRPSO (ORCPT + 99 others); Mon, 18 Sep 2023 11:18:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232575AbjIRPSM (ORCPT ); Mon, 18 Sep 2023 11:18:12 -0400 Received: from mail-oa1-x2c.google.com (mail-oa1-x2c.google.com [IPv6:2001:4860:4864:20::2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FDD6CFC for ; Mon, 18 Sep 2023 08:17:14 -0700 (PDT) Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-1d651ab1d77so2548185fac.1 for ; Mon, 18 Sep 2023 08:17:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1695050232; x=1695655032; 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=/NB9QogE7/hqQA3eAPgSewNzbsnZd2QFPin+QhCO7do=; b=aOVfyVy0bb8uf9bdLpWIwweOAeWnv7bNmjWYdpaJn04tHb/1KwaEXEkzPuIHlEItRF DjpU2/zFT/rQi9Gaxilx4o2EGtnNkICABQArs6iDjaPh1X5M/65XLGshUkktvdemY4lr nAA1xqGhx7mz5U7mQAppRSD/y1h3wyCdga5wsIgd1gwj45yIkD+Ng2Qj6ewIDGGSWVsi f3dKmmsGjm9uKZ0HtcXUujZ/UHsD4fq56P97pgQY9ASv1BwBxJYEx19UnHgvnhGNOlx7 kjpvrqKsC1S3UEru5uOnfeqBa5puOTRHqs0d9xit2pznRrJt2BMnNbJo6DIcHsOyxGTd QcNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695050232; x=1695655032; 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=/NB9QogE7/hqQA3eAPgSewNzbsnZd2QFPin+QhCO7do=; b=OTACPc7fLtwaWn9svShd/uPfA0WAIttwJxJm0NnYm3BLvRT8mrGY6eq/X10xGOp5KF slnHcaPbeIBIi0Jhz5iWp9lrIfp2S9flEq1/mYaIPzashUHj+Q4skAK75omSM5o9guAp egO2fK5allAo/Khq2QGSpL/OtZelJKY4ipSYytd+4h0Ybi7mgqlOQ7GJ6/vi/9bMH3w7 Ei6KJHeM+MObgy51Z2Vah8/3SzS738apIzAF/5+wEB/LwPhFgrYmYF0oCVvRabA4eur5 2cBGxEIS/x1iRoYWIDNCsVeRaDQOJhuY8VSf0nQ1LfCX/3FKnfZijXdMObiZ+rEDwVUA /ONQ== X-Gm-Message-State: AOJu0Yw3s59U6qc3Zoy0fwPWhA7tUTof734I6QfbsK0ScUVay4Jb+hfz j9dqA1EOoCC1kj7UBe8bdjMmng== X-Received: by 2002:a05:6870:b691:b0:1d5:b442:5de7 with SMTP id cy17-20020a056870b69100b001d5b4425de7mr10054844oab.35.1695050231963; Mon, 18 Sep 2023 08:17:11 -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 r13-20020a0ce28d000000b0064f50e2c551sm1477356qvl.1.2023.09.18.08.17.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 08:17:11 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1qiFzq-0005O4-IS; Mon, 18 Sep 2023 12:17:10 -0300 Date: Mon, 18 Sep 2023 12:17:10 -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 02/26] vfio: Move KVM get/put helpers to colocate it with other KVM related code Message-ID: <20230918151710.GG13795@ziepe.ca> References: <20230916003118.2540661-1-seanjc@google.com> <20230916003118.2540661-3-seanjc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230916003118.2540661-3-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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 18 Sep 2023 08:18:16 -0700 (PDT) On Fri, Sep 15, 2023 at 05:30:54PM -0700, Sean Christopherson wrote: > Move the definitions of vfio_device_get_kvm_safe() and vfio_device_put_kvm() > down in vfio_main.c to colocate them with other KVM-specific functions, > e.g. to allow wrapping them all with a single CONFIG_KVM check. > > Signed-off-by: Sean Christopherson > --- > drivers/vfio/vfio_main.c | 104 +++++++++++++++++++-------------------- > 1 file changed, 52 insertions(+), 52 deletions(-) Reviewed-by: Jason Gunthorpe Jason