]> 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>
Mon, 21 Jul 2014 03:25:40 +0000 (22:25 -0500)
commit96e7f7a911077ac76c4b2ac1e31e0aeaa1fb2901
tree5c64efde9862fc1b8417e02f1fe3c0e5902d9607
parentc230ab2ba22a6c91d690dc57bd1157c8fc243f12
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