From patchwork Wed Feb 3 22:56:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Guilherme G. Piccoli" X-Patchwork-Id: 1435670 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DWHB067mJz9shx; Thu, 4 Feb 2021 09:56:56 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1l7R4v-0004lr-PV; Wed, 03 Feb 2021 22:56:53 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1l7R4t-0004kN-KU for kernel-team@lists.ubuntu.com; Wed, 03 Feb 2021 22:56:51 +0000 Received: from mail-qv1-f71.google.com ([209.85.219.71]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1l7R4t-0005gy-0q for kernel-team@lists.ubuntu.com; Wed, 03 Feb 2021 22:56:51 +0000 Received: by mail-qv1-f71.google.com with SMTP id q37so681811qvf.14 for ; Wed, 03 Feb 2021 14:56:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZN9/RPkLeJ8KGrY/GXggyuNVKFNIqMgZV/8Fc4IHLck=; b=ZwGC9XVzwlP9sewjExjOFRBSEuY+MROJSBatkQ6tghk/5L/JuN2os26ZaBOqkFn9pd Upoo6x9uIpZ2x7XOgm5Hzf2FgEGiyzNCDiiJf+vslQ1CUpbuvSC16xlYpY/4QdVzLi6Z CcAS74PaZbiS7pxV320X77bD0Ec5ilGLfzGnuSCQWD4sVaBmc5C7aruGg5o165bJeE6o MRpkOFXdYgbSvoHRE10DzcKVncF/4k2CRmfI1oWOcBz+JxrLYQ1Jp76ibH6D5OQm2ZMX aVkw5ocUFaMJ+r3Ld+KmXnugRfUNk3mKjEZOCexfaXT+6flg5wKsLkNcKkGOsHr/++9o DFAg== X-Gm-Message-State: AOAM532GjzutEO9NrnNEdp7V8fI0S0qxlcmMcAoHNee6DbAOWSUUjDjj CtsYIcJCLbSa2X0dkh04mya0AEJ3imZugmCMG0DaT5wjyTw6E+GBvbvYOk7ZLoc0SEiVmGvnALL ld1M9aZM14MuzbT6pHraNaip3N6L4694JCyIZpy7jig== X-Received: by 2002:a37:9ca:: with SMTP id 193mr4915829qkj.241.1612393010210; Wed, 03 Feb 2021 14:56:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxiI8dHJI1rjgleo++QlPrsyBIyZ+AjngNDIvis11bd4Pt2l0Xlmc1il740rD2tOWdKYxLmg== X-Received: by 2002:a37:9ca:: with SMTP id 193mr4915814qkj.241.1612393010005; Wed, 03 Feb 2021 14:56:50 -0800 (PST) Received: from localhost ([179.110.97.151]) by smtp.gmail.com with ESMTPSA id a188sm3126722qkg.33.2021.02.03.14.56.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Feb 2021 14:56:49 -0800 (PST) From: "Guilherme G. Piccoli" To: kernel-team@lists.ubuntu.com Subject: [groovy:linux-kvm][PATCH 1/1] UBUNTU: [Config] kvm: enable PCI_MSI Date: Wed, 3 Feb 2021 19:56:36 -0300 Message-Id: <20210203225637.18614-4-gpiccoli@canonical.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20210203225637.18614-1-gpiccoli@canonical.com> References: <20210203225637.18614-1-gpiccoli@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1914283 Currently linux-kvm does not have CONFIG_PCI_MSI (and the necessary ancillary flags) enabled, due to the nature of this derivative (to have as few configs enabled as possible, being a minimal kernel). But after some experiments, we've noticed that after enabling PCI_MSI we had slighlty faster boot times and a small performance increase in virtual devices (virtio-blk and virtio-net were tested). Hence, this commit enables such options. Signed-off-by: Guilherme G. Piccoli --- debian.kvm/config/annotations | 3 +++ debian.kvm/config/config.common.ubuntu | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/debian.kvm/config/annotations b/debian.kvm/config/annotations index cbf220170546..c85da3229ba1 100644 --- a/debian.kvm/config/annotations +++ b/debian.kvm/config/annotations @@ -18,3 +18,6 @@ CONFIG_FB_EFI mark note BRIDGE_VLAN_FILTERING policy<{'amd64': 'y'}> BRIDGE_VLAN_FILTERING mark note + +CONFIG_PCI_MSI policy<{'amd64': 'y'}> +CONFIG_PCI_MSI mark note diff --git a/debian.kvm/config/config.common.ubuntu b/debian.kvm/config/config.common.ubuntu index f4bf386af4a7..7f16e73d5c8d 100644 --- a/debian.kvm/config/config.common.ubuntu +++ b/debian.kvm/config/config.common.ubuntu @@ -2089,7 +2089,13 @@ CONFIG_PCI_DOMAINS=y CONFIG_PCI_LABEL=y CONFIG_PCI_LOCKLESS_CONFIG=y # CONFIG_PCI_MMCONFIG is not set -# CONFIG_PCI_MSI is not set +CONFIG_PCI_MSI=y +CONFIG_GENERIC_MSI_IRQ=y +CONFIG_PCI_MSI_IRQ_DOMAIN=y +CONFIG_GENERIC_MSI_IRQ_DOMAIN=y +# CONFIG_PCIE_DW_PLAT_HOST is not set +# CONFIG_PCI_MESON is not set +# CONFIG_VMD is not set # CONFIG_PCI_PASID is not set # CONFIG_PCI_PRI is not set CONFIG_PCI_QUIRKS=y @@ -2689,6 +2695,7 @@ CONFIG_UTS_NS=y CONFIG_VALIDATE_FS_PARSER=y CONFIG_VDPA=m CONFIG_VDPA_SIM=m +# CONFIG_IFCVF is not set CONFIG_VERSION_SIGNATURE="" CONFIG_VETH=m CONFIG_VFAT_FS=m