| commit | 90e03207f468e84258270ad07095ef50f925c17d | [log] [tgz] |
|---|---|---|
| author | Asias He <asias@redhat.com> | Thu May 03 10:20:51 2012 +0800 |
| committer | Rusty Russell <rusty@rustcorp.com.au> | Tue May 22 12:16:12 2012 +0930 |
| tree | b0a32e83e72f07064b9ae7156ec2bdc501734b6d | |
| parent | c877bab5072c8f461397949babbac10e348ae70d [diff] |
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 <asias@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>