]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
UBUNTU: SAUCE: kvm -- increase KVM_MAX_IRQ_ROUTES to 2048 on x86
authorAndy Whitcroft <apw@canonical.com>
Fri, 22 Jun 2018 19:28:53 +0000 (20:28 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Sun, 1 Jul 2018 23:06:30 +0000 (23:06 +0000)
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 <apw@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Acked-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
include/linux/kvm_host.h

index 6bdd4b9f661154c386754654db238d13e0a13a31..68619a7b084c4a301a3fc1dc9b13a88a9d4d51c8 100644 (file)
@@ -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