From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Date: Mon, 18 Sep 2023 12:17:10 -0300 Subject: [PATCH 02/26] vfio: Move KVM get/put helpers to colocate it with other KVM related code In-Reply-To: <20230916003118.2540661-3-seanjc@google.com> References: <20230916003118.2540661-1-seanjc@google.com> <20230916003118.2540661-3-seanjc@google.com> Message-ID: <20230918151710.GG13795@ziepe.ca> List-Id: To: kvm-riscv@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com [209.85.167.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 018241170A for ; Mon, 18 Sep 2023 15:17:12 +0000 (UTC) Received: by mail-oi1-f178.google.com with SMTP id 5614622812f47-3a7f4f7a8easo2203897b6e.2 for ; Mon, 18 Sep 2023 08:17:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1695050232; x=1695655032; darn=lists.linux.dev; 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=J2Gfj6q4M/MBtU9WPY6f23cW2QCyngNjN292Dg0SQFF+TRpEIxjLdEwcqHISjj/pop 3vZ7ikorf8WuGK5dVzklevOwiayaB1Jv1GuPnoRG5u6QS93i2fJOIfCbV52//6FAxpWc AmrtD1iRFLLFVCV9bmMtuEMQ5XGjkAHJ+PVL7JD+03HqCFYcy+wMy4FKz69hMYwkn+wr AHN6UvduzJ07vHL7ms6xC+VSxl2izEnybxUrnQnLXvXhfKLhUXHhbzHj8tEPkqysfwBl 7Iwc9VNxqVtbwUh1NrNeKok8Cdi6UYTuMyo0ciPI+5ql73LFFxaxlAww6d4uGjdXFX98 lUlQ== 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=SwwcGAh0psH+nIQ7LQQaoczFnqaJ8FDKhJvsNwLkdBrvKFpopGOSL4ujPNw1yQfMAA 1SKhgGMH7tZNHdtcxXoI5g3cyM/5VB0gB/qCaLRn6scMPPTqbNbMoXiIgTTz7KwFYWml 2fbPQBgLn2tiM4O5+DT2sWbUBO3ziS8LY7RjhQ85yD5s/kEx8SJwt9HD6QgJ4roeuZUq nhgESc+aPYQYXAlgq64ADG2i+k27XVBx+n24KoWPfI7RyjDVlOP3huBCrDXZ0cnpDgDn 67kE+x9gqkTPXOwdoIOreeELd+G2YYGaWPQ4F1RLYac78xTL3gsXGCXfl/srkaDUOrGf 5HFQ== X-Gm-Message-State: AOJu0Yz0WO2uP8DFKarpJTOM0Vap9JP5rbjv6FoUYhbhfQIJf8Bg1uND WF8raWcu25C1YREJPro9qpC0mw== X-Google-Smtp-Source: AGHT+IGk3T+gnY/Ry6RzP8KMpZ6etd0YaUlt1+KGAcu6zz40/S34i/NvbRLiXeftEMRhME9haaF4Dg== 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> Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230916003118.2540661-3-seanjc@google.com> 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 598B5CD37B0 for ; Mon, 18 Sep 2023 15:17:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gx7Zjber7CsZ+JbiVFarrWEkD7221WKaPkMdIVgcgDo=; b=fSfpzcmOGCqYQq 4peF3owyQ1RBQn8x8rSM3ugDtpYhqbozqVVqv+fKEViQ7xPolAQonYs+kzGzP6ccu1xDSeTwYHgBS WzhqwtvNBkJs6DKw9wvKbUK2FsYxqpvoZSgaAKCw7dLaZlZhiBe63NRjPd1MdoRPm6EXCkIxd1e0J zu9clb65UULv1jIZWaqcl5BVmKd3LqhO1BFuNjLBC159gn04ZD4KLZm4N20ffi26QfkukhHjkGawR JlJ/GR76HawTzpslUOIqdI6+nTdVhPBdbi644N0RidWkW29y7CQj2Y/dkYnJ4xZPctxHA5DgEIroR h0Z0INoRtg9n+K3+1Nvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qiFzz-00FjUa-1H; Mon, 18 Sep 2023 15:17:19 +0000 Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qiFzv-00FjQx-1m for linux-riscv@lists.infradead.org; Mon, 18 Sep 2023 15:17:16 +0000 Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-1c0fcbf7ae4so3052906fac.0 for ; Mon, 18 Sep 2023 08:17:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1695050232; x=1695655032; darn=lists.infradead.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=WknH2CIRyTdIkOUKy+OQLfdOd8u2oYgqKDYDa3dyDoGGTu9fQ/RC+BK7TmkKY+Kq9N 6pVR3GOeviwc99ne33oMmcRq0xo82NHF8dZQR2B+EPYMBHtPMjD798rPo9gkYWmVds+P mfWskWMLb/WVYTVYIEmfcqxuGCzxuxyEgtis71ro3KsFfNqAlyYvIwvA/dbcDuh9FEzC GR2MZgwVMOx/c8mdxVncmm1B1CHMcHELRpBPEYcDDaPEEswYPeHOfM3d16uOuCyy/StU AgxOwqi5HDinDmR9uPs9fLi0RtEJUbugK/QEZRWt503W40tsYtUSQvYRIclcy2et5mfh io2Q== 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=PwDWf45VRL59UFk4GmsMCzw33uIY/h8gpmUG7/FsxqjW2Z6FOsfJPwZmjDSQkCuXDB iVqCRUBsDyhcW/FF91vMKUE03SpynIStKDTPO4ab2XE/xD7xJWtySVdcbtl3k3gHt+CA f19km+uobpJsFbD8lZTA8loi0tZPjla5Bmlj0ZZakotiPcle/pQ0OmM6UrlapgdvcMCF nJJFKNuNXqGsvgFNT3eNFFsZhm1IQ9LONgf9DKPy6gxP31pWdFOlVIJMPGZ7k05WosfE gcJahPEPmjtRt5zGHDNopou+kFFfbrAYBiZ4fvJ4hT9z9WKe0GzlsWLLM0Qn7Hg3K7Yv H32w== X-Gm-Message-State: AOJu0Yw/tvVvwpSnvoHOrlJsF5xQVehhYZWxAs79B7oKNBA7X7ln8ver dBGl/AR4VG4LwJD+xF/Mo8h1BQ== X-Google-Smtp-Source: AGHT+IGk3T+gnY/Ry6RzP8KMpZ6etd0YaUlt1+KGAcu6zz40/S34i/NvbRLiXeftEMRhME9haaF4Dg== 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-Disposition: inline In-Reply-To: <20230916003118.2540661-3-seanjc@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230918_081715_597060_926E67BA X-CRM114-Status: GOOD ( 10.73 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A2479C46CA1 for ; Mon, 18 Sep 2023 15:18:42 +0000 (UTC) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ziepe.ca header.i=@ziepe.ca header.a=rsa-sha256 header.s=google header.b=kK5nhQAo; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Rq7jY1zc4z3c9t for ; Tue, 19 Sep 2023 01:18:41 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ziepe.ca header.i=@ziepe.ca header.a=rsa-sha256 header.s=google header.b=kK5nhQAo; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ziepe.ca (client-ip=2001:4860:4864:20::32; helo=mail-oa1-x32.google.com; envelope-from=jgg@ziepe.ca; receiver=lists.ozlabs.org) Received: from mail-oa1-x32.google.com (mail-oa1-x32.google.com [IPv6:2001:4860:4864:20::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Rq7gy4TzZz3c7q for ; Tue, 19 Sep 2023 01:17:18 +1000 (AEST) Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-1d6baffcac2so1354124fac.2 for ; Mon, 18 Sep 2023 08:17:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1695050232; x=1695655032; darn=lists.ozlabs.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=kK5nhQAokliC9GrlrRNNGPSoB+KFWaf0m3XevkylslvP7SOhd3lYL/ry6zqd3rJ2PQ lluR7pTw2IOXzHoLZMdYt7xIqzfTpNqd8CxGuO0aCGV0Q5S19MDWihnPfqTqmwCeUNls fy643N6+0yTpDDE4ksUNHfwz3VGeWBKSQyBEfnfvu3KoUFZQ+dihxTTqzb5Wet/oZPgz Sua7NM+6FscRgrZhpGI1IsJ3qYgAqrZHOvBjwqzwM5QuBRDnrzQqa2mvs+YiRo+Moi+O q8rDceCtvjcYbfLg/eOKNCA3T3ECyaPdHA2d+00OX4v3fP722n1Or34zNhP/JmNDmqx2 mZow== 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=iAPu8ed8NjMGX+Ptv1QtqIGnkSx+Ev2NRVqvInyJSJkqWCqS5amjcoFF6mz/JKdRzG fdyKvsmK5Hbu2OweUvH+5QbwMcacp5VdDcBflx8ZofN6iwD3LPLDjxXgzUCWtK082A8r 53OIfrBavQowe9CO1gUcXYVl8kGp00krLK2cYkxhZISJbvkQuLhUxnnPWstnYjF0pi8d byv7y9DmfVd1iVn8cWEauFZP5tVcdEcQGJ07NpuF3Z2EK2zw/xj+hBJZvnVSnkZi/Ftl /0aFRMv8YlbBbSFZQ8dyerWMznYrIauD1CbYHs6s9ufjB2SlcBDqWF5B2Q2u65uLxA6P h8iQ== X-Gm-Message-State: AOJu0YxWQRdmvwV+HqFQLeJaOGJssawwvjjEQe8P6utHAdZF/dZR2tZQ 3S+apHTKqG92/+6flJRI0v34UQ== X-Google-Smtp-Source: AGHT+IGk3T+gnY/Ry6RzP8KMpZ6etd0YaUlt1+KGAcu6zz40/S34i/NvbRLiXeftEMRhME9haaF4Dg== 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 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-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: x86@kernel.org, kvm@vger.kernel.org, Peter Zijlstra , Catalin Marinas , Dave Hansen , linux-kernel@vger.kernel.org, Alexander Gordeev , Claudio Imbrenda , Will Deacon , linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, Janosch Frank , Harald Freudenberger , Marc Zyngier , Huacai Chen , Halil Pasic , Andrew Thornton , Ingo Molnar , Christian Borntraeger , Jason Herne , Albert Ou , Vasily Gorbik , Venkatesh Srinivas , Heiko Carstens , Arnaldo Carvalho de Melo , Alex Williamson , Borislav Petkov , And y Lutomirski , Paul Walmsley , kvmarm@lists.linux.dev, Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Tony Krowiak , Anish Ghulati , linux-mips@vger.kernel.org, Oliver Upton , linux-perf-users@vger.kernel.org, Palmer Dabbelt , kvm-riscv@lists.infradead.org, Anup Patel , Paolo Bonzini , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D3EE8C46CA1 for ; Mon, 18 Sep 2023 15:17:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nqy4S3c3qoI4w4hrtJxnQ2qHP5c+NAYrthniHYOarhw=; b=O2C8SeRiWROKEW IULj1hPNQdX2MNjE/QThyPm4FHi2jrXDApliWmtDYTF0rjw9hfMCS05GVZvWcBpufQQDdsBOzCRbn HUq3TUF2iog6EO2V0VJe4cwqG0YkdIJP5/K0Y1BrhLeQzuMLh0ekCYXG+NWeGOGtKssQR7Nso1Dhp 0EOUWqmCq94aRljEEKgJVxr+egnQxRKvksKH/SredTtyxhFeIouLbR5WgQ8f5PnH5u08RSgQhF0BM vdefdtpaBHvHuQE96ksl+cq9iRNMWpotvAGS+/2nCXF6M41Kp3XJ5Z0wE0w+5gq7EHnvHX3gmHMUW r99UN/Qi28hbxzzskbGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qiG00-00FjV6-0B; Mon, 18 Sep 2023 15:17:20 +0000 Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qiFzw-00FjQv-2d for linux-arm-kernel@lists.infradead.org; Mon, 18 Sep 2023 15:17:18 +0000 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-1c0fcbf7ae4so3052903fac.0 for ; Mon, 18 Sep 2023 08:17:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1695050232; x=1695655032; darn=lists.infradead.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=WknH2CIRyTdIkOUKy+OQLfdOd8u2oYgqKDYDa3dyDoGGTu9fQ/RC+BK7TmkKY+Kq9N 6pVR3GOeviwc99ne33oMmcRq0xo82NHF8dZQR2B+EPYMBHtPMjD798rPo9gkYWmVds+P mfWskWMLb/WVYTVYIEmfcqxuGCzxuxyEgtis71ro3KsFfNqAlyYvIwvA/dbcDuh9FEzC GR2MZgwVMOx/c8mdxVncmm1B1CHMcHELRpBPEYcDDaPEEswYPeHOfM3d16uOuCyy/StU AgxOwqi5HDinDmR9uPs9fLi0RtEJUbugK/QEZRWt503W40tsYtUSQvYRIclcy2et5mfh io2Q== 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=dI6G7DR3uFYibujWmHwOuGtEZsjIn0TiTjO0e/l57xYLEL1Q6s+l4BZDGru0urkE/G dJ8BRN0qrMWGCew7RVcXItaIXoG/2U4DXz5r/C/oTdQn/BGD87OC0m1bYSNA6OBWu/N6 BuraAPSTN6VX7V6LXkp6F4vUzGr7oVSCqyf9yH5z4zePs9TQhmkmnoRUuV8F63T2la6v 55BybZJvrKmAh8qfiCPl4S30YuB8srhY6W8b707LFdPJUK+u4dQTx5A5nzMkyhkJJ0zf +65ntsLQicIUAChgIjAxyv7eP0WElYdQ0Kahs1MXEx1APqYmoGSPr/993jzuhPC5aFR+ e6sw== X-Gm-Message-State: AOJu0Ywbhe4xlPple3Va/c0yrb1CeNIZAefvm3eB2ZGwXMDePolP4DEE T/mD73/f3pM5N1o59JZi1WXe+Q== X-Google-Smtp-Source: AGHT+IGk3T+gnY/Ry6RzP8KMpZ6etd0YaUlt1+KGAcu6zz40/S34i/NvbRLiXeftEMRhME9haaF4Dg== 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-Disposition: inline In-Reply-To: <20230916003118.2540661-3-seanjc@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230918_081716_880104_036E3CEB X-CRM114-Status: GOOD ( 12.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel