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 X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97A73C433E0 for ; Tue, 4 Aug 2020 14:47:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 80E31206DA for ; Tue, 4 Aug 2020 14:47:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="aVExCt4o" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729305AbgHDOrg (ORCPT ); Tue, 4 Aug 2020 10:47:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbgHDOrM (ORCPT ); Tue, 4 Aug 2020 10:47:12 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB174C061756 for ; Tue, 4 Aug 2020 07:47:11 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id x5so2936243wmi.2 for ; Tue, 04 Aug 2020 07:47:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=r6kGfPE/KsV7nTfH/d4o6yMleyqMBQteeLYhE/uXEe8=; b=aVExCt4oLxLR9aFvpeWEL25FVcXyMBmA32sEnExxpKELRADyd/9R8grqfipU4KCnal xw/mDJ1vB99SSCGocIuUpjfn/n+6sq37uzwOBd9mLMKkVAI+lqriN5bX9rydaC5fOnbj 0JtNaK5ZOpnv/jS7GrAf3KIXRvmO0w8y8UIlljMRS32B26TgTdXAdQygC7MBMHn5lvoP AxItZMMHNLnLZ4HD7gvVz87UAMtI4b+WfUKZPyuyAhPhQZn3H0V7TXQuP4XID2r4pBE8 0WVBskw0itNLwIU1bhZ/+0X4da9muIyp02S9F8OzsA8dAJ6ZSM4dlKp55if4+eS/15qd 3g0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=r6kGfPE/KsV7nTfH/d4o6yMleyqMBQteeLYhE/uXEe8=; b=e8DpY4GVTv1JpufDO2kZFKE2LiF9J6y4H60ucZ9KS9WBYjgYLkBzTen8T0myUybTgU mFjLfypPGq6Sm4jdnqRXxu/AHBzH19CadslIrnUnn+eMjcvgE5O5yIpktp0yqpuChtky M06BrxUSoKDvpG7byaMz1ytrKSGlUexOV4LXwM+meDkFBs0lAw8tABlx5U+jgTlJnRiq lyVZ6uxSUSZn0VrnAvxh+BK268/9vAxpjZziJAR+sIWwc8nf2XvoZSTLMl3QepYdIKnD vozEYTOAcy2LSw429u0pR01DtO3uwy3ahrsMrRLKgvVHOkVTu6sJJgJ9/O6uRNz8+mb2 UeJw== X-Gm-Message-State: AOAM532VjG0DCNNXKG2NIvQ7DKQEg3ltM1tQO8fnuBkWP4CrhAbuvYc/ Y4zjbXxBx9BmK0VIXaGoVmp9NQ== X-Google-Smtp-Source: ABdhPJygwsnCNO92emQNPWtLheZnx+hxAUxJL5JREQ4YEEZj8ftsQfnryzZlL6jATdGaMqcJvVKRKw== X-Received: by 2002:a1c:f605:: with SMTP id w5mr4306747wmc.26.1596552430480; Tue, 04 Aug 2020 07:47:10 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id t25sm4403673wmj.18.2020.08.04.07.47.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Aug 2020 07:47:09 -0700 (PDT) Received: from zen (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 48B801FF7E; Tue, 4 Aug 2020 15:47:08 +0100 (BST) References: <20200804124417.27102-1-alex.bennee@linaro.org> User-agent: mu4e 1.5.5; emacs 28.0.50 From: Alex =?utf-8?Q?Benn=C3=A9e?= To: Ard Biesheuvel Cc: kvm@vger.kernel.org, Linux ARM , Marc Zyngier , Christoffer Dall , Linux Kernel Mailing List , kvmarm Subject: Re: [RFC PATCH v1 0/3] put arm64 kvm_config on a diet In-reply-to: Date: Tue, 04 Aug 2020 15:47:08 +0100 Message-ID: <87o8nqmpsj.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Ard Biesheuvel writes: > On Tue, 4 Aug 2020 at 14:45, Alex Benn=C3=A9e wr= ote: >> >> Hi, >> >> When building guest kernels for virtualisation we were bringing in a >> bunch of stuff from physical hardware which we don't need for our >> idealised fixable virtual PCI devices. This series makes some Kconfig >> changes to allow the ThunderX and XGene PCI drivers to be compiled >> out. It also drops PCI_QUIRKS from the KVM guest build as a virtual >> PCI device should be quirk free. >> > > What about PCI passthrough? That is a good point - how much of the host PCI controller is visible to a pass-through guest? AIUI in passthrough the driver only interacts with the particular cards IO window. How many quirks are visible just at the device level (rather than the bus itself)? That said I think the last patch might get dropped as long as the user has the option to slim down their kernel with the first two. > >> This is my first time hacking around Kconfig so I hope I've got the >> balance between depends and selects right but please let be know if it >> could be specified in a cleaner way. >> >> Alex Benn=C3=A9e (3): >> arm64: allow de-selection of ThunderX PCI controllers >> arm64: gate the whole of pci-xgene on CONFIG_PCI_XGENE >> kernel/configs: don't include PCI_QUIRKS in KVM guest configs >> >> arch/arm64/Kconfig.platforms | 2 ++ >> arch/arm64/configs/defconfig | 1 + >> drivers/pci/controller/Kconfig | 7 +++++++ >> drivers/pci/controller/Makefile | 8 +++----- >> kernel/configs/kvm_guest.config | 1 + >> 5 files changed, 14 insertions(+), 5 deletions(-) >> >> -- >> 2.20.1 >> >> >> _______________________________________________ >> linux-arm-kernel mailing list >> linux-arm-kernel@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --=20 Alex Benn=C3=A9e