KVM: Downsize max support MSI-X entry to 256
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.
Signed-off-by Sheng Yang <[email protected]>
--- include/linux/kvm.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/kvm.h +1 -1
@@ -633,7 +633,7 @@ struct kvm_assigned_msix_nr {__u16 padding; }; -#define KVM_MAX_MSIX_PER_DEV 512 +#define KVM_MAX_MSIX_PER_DEV 256struct kvm_assigned_msix_entry {__u32 assigned_dev_id;__u32 gsi;
Signature · 1 line
1.5.4.5
Avi Kivity
AppliedQuoted 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 256struct 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