From: Michael S. Tsirkin Date: Wed, 13 Jan 2010 16:58:09 +0000 (+0200) Subject: KVM: only allow one gsi per fd X-Git-Tag: v2.6.33-rc6~24^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1d1c309f35e9b0fb961cffd70fbd04f450ec47c;p=pandora-kernel.git 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 Acked-by: Acked-by: Gregory Haskins Signed-off-by: Avi Kivity --- Reading git-diff-tree failed