Skip to contentSkip to conversation

KVM: Downsize max support MSI-X entry to 256

PATCH Applied Sheng Yang 2 participants 2 messages May 21, 2009 – May 26, 2009 KVM

lore
Share & tools
lore

Sheng Yang

author
#0 lore raw

PATCH 1/1 KVM: Downsize max support MSI-X entry to 256

We only trap one page for MSI-X entry now, so it's 4k/(128/8) = 256 entries at most.

---
 include/linux/kvm.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/kvm.h +1 -1
index 3db5d8d..533e864 100644
@@ -633,7 +633,7 @@ struct kvm_assigned_msix_nr {
 	__u16 padding;
 };
 
-#define KVM_MAX_MSIX_PER_DEV		512
+#define KVM_MAX_MSIX_PER_DEV		256
 struct kvm_assigned_msix_entry {
 	__u32 assigned_dev_id;
 	__u32 gsi;
Signature · 1 line
1.5.4.5
Applied
#1 lore raw
Quoted 4 lines · Sheng Yang

We only trap one page for MSI-X entry now, so it's 4k/(128/8) = 256 entries at most.

Applied, thanks.

include/linux/kvm.h struct kvm_assigned_msix_nr { · line 639

Quoted 7 lines
include/linux/kvm.h +1 -1
-#define KVM_MAX_MSIX_PER_DEV		512
+#define KVM_MAX_MSIX_PER_DEV		256
 struct kvm_assigned_msix_entry {
 	__u32 assigned_dev_id;
 	__u32 gsi;

It's really unfortunate that this is a compile-time constant instead of run-time discoverable.

Signature · 1 line
error compiling committee.c: too many arguments to function