Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp404239rdb; Mon, 18 Sep 2023 21:05:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5KYVXZppDzo/IkAbjhjGi5g43PMvGTQVrrlkf2O+EeBJRWBFHKywRg8e2gomxtzI8EjcA X-Received: by 2002:a05:6a20:5614:b0:14e:90f8:6d8f with SMTP id ir20-20020a056a20561400b0014e90f86d8fmr8350995pzc.45.1695096336474; Mon, 18 Sep 2023 21:05:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695096336; cv=none; d=google.com; s=arc-20160816; b=MSD85kwFZLbWopTE4SeCTfoRsUA23fsw9K5aC/Llag4IZhnGf+qVljj9zxlqOKJ9VR AYBf3v6JlPQ+ADxQKUiSop+x3CawgWSvQnlXKdkhhMdQcYQC3faLYMMpE83XnTNSd0B7 RPtw/Sn4IDptvEkB0gFXVc/et3EXZm9E3YdqjYLkzr4DzHlnPTMASisrU3yGqnspHY4S oeyki+b6zyfXeNjMo48xNrbaaZXdg2und9cKYqhIxIwAjxqdVWBjO0pkpCRdUkdA9+Ie o70+SHUsclHCvrXBJyWxo4B7xfqsESEmZz6XFbXdPqNXgX1lbn6E6F6ImZTl5M/rddQQ Dpjw== 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=6Ucvab0+WYvq4UufE5S4SV2ca9jdWUsP9GGHLs6BCgo=; fh=LvR0iFQNUCFuLf0e0dfpbwu/ZRO+ihf5gBz7bBaQp/0=; b=uhw1OusB1oJD2v34lpl1M1S441L9Bq8lQjtpr16QokyW+g+vU6YZsLqrYVg3FM7iR3 Kmh/HCL9fYMIdUykiTAvsKDP1OmmL0vfMNNFISYPkuF3YZRrE5Qhs8Ok/jGVNGoSrwuN 2ib0+CkTydJ06DUR7RC19ZnPKD5nWmS7ZIKW5eaxSt4tkLVs9CsHtx2iEi4EsPWAAXUB 7EcoWRduQKbeh7CJ6cPsAN5TWTWuGK+VigOF7njjgxBeynPXFZqjnTFG4ul9TeEf+yUM O7RZ9yD2G++KquptxtnvqctMqm6c6ymLqwVX7c+XBZskBdR2GcIWomuNpZo40XE1TlgP luxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Yt+fVUsR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id c5-20020a170903234500b001bf223b6595si6004252plh.484.2023.09.18.21.05.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 21:05:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=Yt+fVUsR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id A52698051178; Mon, 18 Sep 2023 08:17:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229953AbjIRPQs (ORCPT + 99 others); Mon, 18 Sep 2023 11:16:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbjIRPQr (ORCPT ); Mon, 18 Sep 2023 11:16:47 -0400 Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DAED100 for ; Mon, 18 Sep 2023 08:16:40 -0700 (PDT) Received: by mail-qt1-x829.google.com with SMTP id d75a77b69052e-4124e1909edso27203801cf.1 for ; Mon, 18 Sep 2023 08:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1695050199; x=1695654999; 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=6Ucvab0+WYvq4UufE5S4SV2ca9jdWUsP9GGHLs6BCgo=; b=Yt+fVUsRMeORje6bqjAG46AN7VUYwHvk4anPaOKB66pzIfsa7eGN7PwwGYazw/Ml4G zSJDa2fRaak6DQ/2yDdUGrk/jJfT7gqXnEfglMmlEHHM6QHOhKUoHu/JuJtoUPkSf3gZ bXzhhINWlQwAEpfO2I/jpm/Yf0X6kgykhzvZVtEHdtQLop7zWQYyXg8e55+4hoUS+Nv1 3Nvt1SloiwIIA2fREypyrGT1qo+Nk5fCWKtTBNewRRc9j09t+3B9QhG2h24hoHSTtPec Vbd8eRyFh+MJ5I+I7Yz+QIpc+iC1aOF6XmzN1DLY5zUvsy6kn9Wy7C3j3qUq5WVFEl/r Ls3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695050199; x=1695654999; 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=6Ucvab0+WYvq4UufE5S4SV2ca9jdWUsP9GGHLs6BCgo=; b=lz1cVIRUULJXQST+yL/dsNd02vPyFDNdabd1LTwQaFSe2ifxSJ6PK8RQ93Nc2ugpN9 uJHqpCkf0oxefckAnOARU4Wg3H1MHJuEh1SEGMJyyGPjfYJl49tDHaG2mUalqUPQsD+D cQYGMO1523je8Kp+BddVCQR8zraXuxRylGmuWGRZ6aQTytGuUEyiKv8Mniq9FZxltAxU D/LazmoF7N0RCGzsW6ABm9iZBz1Z47zhFgOAztP++QybWDGvd8p87EmGqUFqy5aKQqiF HxkWn65pBfqxD8C7vsaEyGa/BqmrpBWy7gcSByLf3CqHg3K2z395hnOzqRyFf+vvRX1E pPSQ== X-Gm-Message-State: AOJu0Yw+K0NwBdF6z5iN8ocGpzBPzUvFhAmwFj3asnZ+3kWiI5Lvt5+j Cuh5P3kFLITTuXUT97al0ApO+Q== X-Received: by 2002:ac8:5ac9:0:b0:403:ef0a:ac69 with SMTP id d9-20020ac85ac9000000b00403ef0aac69mr11892621qtd.62.1695050199490; Mon, 18 Sep 2023 08:16:39 -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 z22-20020ac87116000000b004108f6788a6sm3081779qto.41.2023.09.18.08.16.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 08:16:38 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1qiFzJ-0005Nh-7L; Mon, 18 Sep 2023 12:16:37 -0300 Date: Mon, 18 Sep 2023 12:16:37 -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 01/26] vfio: Wrap KVM helpers with CONFIG_KVM instead of CONFIG_HAVE_KVM Message-ID: <20230918151637.GF13795@ziepe.ca> References: <20230916003118.2540661-1-seanjc@google.com> <20230916003118.2540661-2-seanjc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230916003118.2540661-2-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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 18 Sep 2023 08:17:06 -0700 (PDT) On Fri, Sep 15, 2023 at 05:30:53PM -0700, Sean Christopherson wrote: > Wrap the helpers for getting references to KVM instances with a check on > CONFIG_KVM being enabled, not on CONFIG_HAVE_KVM being defined. PPC does > NOT select HAVE_KVM, despite obviously supporting KVM, and guarding code > to get references to KVM based on whether or not the architecture supports > KVM is nonsensical. > > Drop the guard around linux/kvm_host.h entirely, conditionally including a > generic headers is completely unnecessary. > > Signed-off-by: Sean Christopherson > --- > drivers/vfio/vfio.h | 2 +- > drivers/vfio/vfio_main.c | 4 +--- > 2 files changed, 2 insertions(+), 4 deletions(-) Reviewed-by: Jason Gunthorpe Jason