]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: only allow one gsi per fd
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 13 Jan 2010 16:58:09 +0000 (18:58 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 28 Jan 2010 23:02:43 +0000 (15:02 -0800)
commitf0d13b89d4b12f331a0dd1d646a69060e49b1951
tree858ee93856e55fe6dd30f83f013cdb0933003934
parent70be4d76c0e5d426067601a79be0b33ea673f3ff
KVM: only allow one gsi per fd

commit f1d1c309f35e9b0fb961cffd70fbd04f450ec47c upstream.

Looks like repeatedly binding same fd to multiple gsi's with irqfd can
use up a ton of kernel memory for irqfd structures.

A simple fix is to allow each fd to only trigger one gsi: triggering a
storm of interrupts in guest is likely useless anyway, and we can do it
by binding a single gsi to many interrupts if we really want to.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Acked-by: Gregory Haskins <ghaskins@novell.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
virt/kvm/eventfd.c