From 90e03207f468e84258270ad07095ef50f925c17d Mon Sep 17 00:00:00 2001 From: Asias He Date: Thu, 3 May 2012 10:20:51 +0800 Subject: [PATCH] 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-format-patch failed