diff mbox

KVM: Downsize max support MSI-X entry to 256

Message ID 1242885013-32735-1-git-send-email-sheng@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Sheng Yang May 21, 2009, 5:50 a.m. UTC
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 <sheng@linux.intel.com>
---
 include/linux/kvm.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Avi Kivity May 26, 2009, 11:41 a.m. UTC | #1
Sheng Yang wrote:
> We only trap one page for MSI-X entry now, so it's 4k/(128/8) = 256 entries at
> most.
>
>   

Applied, thanks.

>  
> -#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.
diff mbox

Patch

diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index 3db5d8d..533e864 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -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;