]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: dynamically allocate p9 fids
authorSasha Levin <levinsasha928@gmail.com>
Sun, 22 Jul 2012 16:29:50 +0000 (18:29 +0200)
committerPekka Enberg <penberg@kernel.org>
Tue, 31 Jul 2012 06:25:02 +0000 (09:25 +0300)
commit63201773a5273c0545d8123cfb43bcedb14508cc
tree7aaba5058ba675be2c25009bbb833e32369bc23a
parent6cccdbcdda06d5462ad75c440fb47ab47b662435
kvm tools: dynamically allocate p9 fids

This removes the limit for p9 fids and the huge fid array that came along with
it. Instead, it dynamically allocates fids and stores them in a rb-tree.

This is useful when the guest needs a lot of fids, such as when stress
testing guests.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/kvm/virtio-9p.h
tools/kvm/virtio/9p.c