pci-assign: limit # of msix vectors
commit639973a4740f38789057744b550df3a175bc49ad
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 28 Apr 2014 14:02:21 +0000 (28 17:02 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 May 2014 11:12:40 +0000 (13 13:12 +0200)
treeb2ec69fdc803e980319c4458c57b3714baba2f63
parentee11f7a8227bcd9cb8d8141fa8f6a0352f7c0c68
pci-assign: limit # of msix vectors

KVM only supports MSIX table size up to 256 vectors,
but some assigned devices support more vectors,
at the moment attempts to assign them fail with EINVAL.

Tweak the MSIX capability exposed to guest to limit table size
to a supported value.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Gonglei <arei.gonglei@huawei.com>
Cc: qemu-stable@nongnu.org
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/kvm/pci-assign.c