From patchwork Wed Feb 3 22:56:35 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: 1435669 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 4DWH9x3nr6z9sf9; Thu, 4 Feb 2021 09:56:53 +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 1l7R4s-0004jV-HC; Wed, 03 Feb 2021 22:56:50 +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 1l7R4q-0004iG-K2 for kernel-team@lists.ubuntu.com; Wed, 03 Feb 2021 22:56:48 +0000 Received: from mail-qk1-f198.google.com ([209.85.222.198]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1l7R4q-0005gk-87 for kernel-team@lists.ubuntu.com; Wed, 03 Feb 2021 22:56:48 +0000 Received: by mail-qk1-f198.google.com with SMTP id a75so899121qkg.16 for ; Wed, 03 Feb 2021 14:56:48 -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=kcNtUqVsvvj+Wt1oDbH+sp+Bml7Kc7IkFwMykl0pXJM=; b=i8zZ2W0L3KJ6T4LrW52eg45g92ZdXWNLeWzoTUr9rJqrCoQY6Hsqn6HREVDzVEyYNc JCeFUXS8FJDUzw1xpWtIPoa0EqF5jyAh9WFTwv6CWWfBRKf3zY2aWMv2AgU86X+5Ic++ 6AUl+fh0r+kmtR6Kvp+LKDUTXotsE4JhvLmFSAp6jrGWSnbtQjXDVYaZLrUvw81h/sje fWXNSHWOyN5F93bI28R4C7T6MmYveahwpQFu5yOwKUjmoLnBa4e8nHAgOrqZBekEjvXN pYJAiCQ55R4yaj9SC0Cwqu1ZojYiY1DGzjlTd1feAvmSneVfhCX3iEUIPJMbfdSBXkuH DbhQ== X-Gm-Message-State: AOAM5329RMEiJ38aH8oxV36yTFyN4sJjjF+5vYZLBw/1AU4xfIZwkGC2 LPYtre94PBp3cOAg6yasXL9XocQhXuMAnoyqVg+uDddwZkQuhm4Vcguu054373XnXR8r01zd20Z f/W92AkUmvpQLPi2FyJpArM5UphgK5sHR/Ri+XMSz6Q== X-Received: by 2002:ac8:6f06:: with SMTP id g6mr4641237qtv.80.1612393007410; Wed, 03 Feb 2021 14:56:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXfZPeyCGc4QhHKLEInmSubAWmOzml6sRCasMgGZ7d8byjjCIEm2nekQe+yehU8l/jpH5sXQ== X-Received: by 2002:ac8:6f06:: with SMTP id g6mr4641227qtv.80.1612393007177; Wed, 03 Feb 2021 14:56:47 -0800 (PST) Received: from localhost ([179.110.97.151]) by smtp.gmail.com with ESMTPSA id d9sm3125912qko.84.2021.02.03.14.56.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Feb 2021 14:56:46 -0800 (PST) From: "Guilherme G. Piccoli" To: kernel-team@lists.ubuntu.com Subject: [focal:linux-kvm][PATCH 1/1] UBUNTU: [Config] kvm: enable PCI_MSI Date: Wed, 3 Feb 2021 19:56:35 -0300 Message-Id: <20210203225637.18614-3-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 | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/debian.kvm/config/annotations b/debian.kvm/config/annotations index 00f6bfe961e5..fd00b2fc34c5 100644 --- a/debian.kvm/config/annotations +++ b/debian.kvm/config/annotations @@ -15,3 +15,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 3845c1ef997a..68cabeb47b8d 100644 --- a/debian.kvm/config/config.common.ubuntu +++ b/debian.kvm/config/config.common.ubuntu @@ -1994,7 +1994,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