From: Asias He Date: Thu, 3 May 2012 02:20:51 +0000 (+0800) Subject: virtio: Use ida to allocate virtio index X-Git-Tag: v3.5-rc1~162^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90e03207f468e84258270ad07095ef50f925c17d;p=pandora-kernel.git virtio: Use ida to allocate virtio index Current index allocation in virtio is based on a monotonically increasing variable "index". This means we'll run out of numbers after a while. E.g. someone crazy doing this in host side. while(1) { hot-plug a virtio device hot-unplug the virito devcie } Signed-off-by: Asias He Signed-off-by: Rusty Russell --- Reading git-diff-tree failed