]> git.ipfire.org Git - thirdparty/qemu.git/commit
pci-assign: limit # of msix vectors
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 28 Apr 2014 14:02:21 +0000 (17:02 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 1 Jul 2014 15:57:03 +0000 (10:57 -0500)
commit9fbc298a478656dce0f9f25f1ea98e406cac3016
tree523290cb10c40cc0e1aeb99bc94fd9c7c11055dd
parent74dd27cecb97a97a53f95094981eceb9cbd3b2f2
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>
(cherry picked from commit 639973a4740f38789057744b550df3a175bc49ad)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/i386/kvm/pci-assign.c