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