Searched hist:f1d1c309f35e9b0fb961cffd70fbd04f450ec47c (Results 1 – 1 of 1) sorted by relevance
/linux/virt/kvm/ |
H A D | eventfd.c | f1d1c309f35e9b0fb961cffd70fbd04f450ec47c Wed Jan 13 16:58:09 UTC 2010 Michael S. Tsirkin <mst@redhat.com> KVM: only allow one gsi per fd
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.
Cc: stable@kernel.org 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>
|