From patchwork Fri Jun 22 19:28:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Whitcroft X-Patchwork-Id: 933566 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41C7sp2d73z9s1B; Sat, 23 Jun 2018 05:29:02 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1fWRjq-0001GD-Ku; Fri, 22 Jun 2018 19:28:54 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1fWRjq-0001G6-8m for kernel-team@lists.ubuntu.com; Fri, 22 Jun 2018 19:28:54 +0000 Received: from 1.general.apw.uk.vpn ([10.172.192.78] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1fWRjp-0004ea-WB; Fri, 22 Jun 2018 19:28:54 +0000 From: Andy Whitcroft To: kernel-team@lists.ubuntu.com Subject: [bionic/master-next 1/1] UBUNTU: SAUCE: kvm -- increase KVM_MAX_IRQ_ROUTES to 2048 on x86 Date: Fri, 22 Jun 2018 20:28:53 +0100 Message-Id: <20180622192853.24305-2-apw@canonical.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180622192853.24305-1-apw@canonical.com> References: <20180622192853.24305-1-apw@canonical.com> 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: , Cc: Andy Whitcroft MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" Large KVM instances with a lot of devices may hit the kernel KVM_MAX_IRQ_ROUTES limit. Up the kernel limit to allow these configurations to boot. This has no effect on smaller configurations. BugLink: http://bugs.launchpad.net/bugs/1778261 Signed-off-by: Andy Whitcroft --- include/linux/kvm_host.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 6bdd4b9f6611..68619a7b084c 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -1049,6 +1049,8 @@ static inline int mmu_notifier_retry(struct kvm *kvm, unsigned long mmu_seq) #define KVM_MAX_IRQ_ROUTES 4096 //FIXME: we can have more than that... #elif defined(CONFIG_ARM64) #define KVM_MAX_IRQ_ROUTES 4096 +#elif defined(CONFIG_X86) +#define KVM_MAX_IRQ_ROUTES 2048 #else #define KVM_MAX_IRQ_ROUTES 1024 #endif