Skip to content

Commit ddc9cfb

Browse files
Wanpeng Libonzini
authored andcommitted
KVM: Extend MAX_IRQ_ROUTES to 4096 for all archs
Our virtual machines make use of device assignment by configuring 12 NVMe disks for high I/O performance. Each NVMe device has 129 MSI-X Table entries: Capabilities: [50] MSI-X: Enable+ Count=129 Masked-Vector table: BAR=0 offset=00002000 The windows virtual machines fail to boot since they will map the number of MSI-table entries that the NVMe hardware reported to the bus to msi routing table, this will exceed the 1024. This patch extends MAX_IRQ_ROUTES to 4096 for all archs, in the future this might be extended again if needed. Reviewed-by: Cornelia Huck <[email protected]> Cc: Paolo Bonzini <[email protected]> Cc: Radim KrÄmář <[email protected]> Cc: Cornelia Huck <[email protected]> Cc: Christian Borntraeger <[email protected]> Signed-off-by: Wanpeng Li <[email protected]> Signed-off-by: Tonny Lu <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 75bc37f commit ddc9cfb

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

include/linux/kvm_host.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,13 +1045,7 @@ static inline int mmu_notifier_retry(struct kvm *kvm, unsigned long mmu_seq)
10451045

10461046
#ifdef CONFIG_HAVE_KVM_IRQ_ROUTING
10471047

1048-
#ifdef CONFIG_S390
1049-
#define KVM_MAX_IRQ_ROUTES 4096 //FIXME: we can have more than that...
1050-
#elif defined(CONFIG_ARM64)
1051-
#define KVM_MAX_IRQ_ROUTES 4096
1052-
#else
1053-
#define KVM_MAX_IRQ_ROUTES 1024
1054-
#endif
1048+
#define KVM_MAX_IRQ_ROUTES 4096 /* might need extension/rework in the future */
10551049

10561050
bool kvm_arch_can_set_irq_routing(struct kvm *kvm);
10571051
int kvm_set_irq_routing(struct kvm *kvm,

0 commit comments

Comments
 (0)