[groovy:linux-kvm][PATCH 1/1] UBUNTU: [Config] kvm: enable PCI_MSI

Guilherme G. Piccoli gpiccoli at canonical.com
Wed Feb 3 22:56:36 UTC 2021


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 <gpiccoli at canonical.com>
---
 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<ENFORCED> note<LP: #1873809>
 
 BRIDGE_VLAN_FILTERING				policy<{'amd64': 'y'}>
 BRIDGE_VLAN_FILTERING				mark<ENFORCED> note<LP: #1882955>
+
+CONFIG_PCI_MSI					policy<{'amd64': 'y'}>
+CONFIG_PCI_MSI					mark<ENFORCED> note<LP: #1914283>
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
-- 
2.29.0




More information about the kernel-team mailing list