From: Sheng Yang Date: Thu, 21 May 2009 05:50:13 +0000 (+0800) Subject: KVM: Downsize max support MSI-X entry to 256 X-Git-Tag: firefly_0821_release~12973^2~185 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e7333391403b31feb27a05bc0dcd052a471f1276;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Avi Kivity --- diff --git a/include/linux/kvm.h b/include/linux/kvm.h index 65df6f5e2b98..632a8560dbcf 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h @@ -676,7 +676,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;