diff options
| author | Amit Shah <[email protected]> | 2011-03-16 13:42:10 +0000 |
|---|---|---|
| committer | Rusty Russell <[email protected]> | 2011-04-21 13:27:00 +0000 |
| commit | b3258ff1d6086bd2b9eeb556844a868ad7d49bc8 (patch) | |
| tree | 2c9dde005804227038c997a983ded7e46951ca64 /tools/perf/util/python.c | |
| parent | Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff) | |
| download | kernel-b3258ff1d6086bd2b9eeb556844a868ad7d49bc8.tar.gz kernel-b3258ff1d6086bd2b9eeb556844a868ad7d49bc8.zip | |
virtio: Decrement avail idx on buffer detach
When detaching a buffer from a vq, the avail.idx value should be
decremented as well.
This was noticed by hot-unplugging a virtio console port and then
plugging in a new one on the same number (re-using the vqs which were
just 'disowned'). qemu reported
'Guest moved used index from 0 to 256'
when any IO was attempted on the new port.
CC: [email protected]
Reported-by: juzhang <[email protected]>
Signed-off-by: Amit Shah <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
Diffstat (limited to 'tools/perf/util/python.c')
0 files changed, 0 insertions, 0 deletions
