diff options
author | 2011-03-16 19:12:10 +0530 | |
---|---|---|
committer | 2011-04-21 22:57:00 +0930 | |
commit | b3258ff1d6086bd2b9eeb556844a868ad7d49bc8 (patch) | |
tree | 2c9dde005804227038c997a983ded7e46951ca64 /tools/perf/scripts/python/syscall-counts.py | |
parent | Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/staging (diff) | |
download | linux-dev-b3258ff1d6086bd2b9eeb556844a868ad7d49bc8.tar.xz linux-dev-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: stable@kernel.org
Reported-by: juzhang <juzhang@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions