qemu-e2k/include
Stefan Hajnoczi 2640d2a5ff virtio: add virtio_detach_element()
During device reset or similar situations a VirtQueueElement needs to be
freed without pushing it onto the used ring or rewinding the virtqueue.
Extract a new function to do this.

Later patches add virtio_detach_element() calls to existing device so
that scatter-gather lists are unmapped and vq->inuse goes back to zero
during device reset.  Currently some devices don't bother and simply
call g_free(elem) which is not a clean way to throw away a
VirtQueueElement.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Ladi Prosek <lprosek@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2016-10-10 01:16:58 +03:00
..
block block: Move 'discard' option to bdrv_open_common() 2016-09-29 14:13:39 +02:00
crypto crypto: use correct derived key size when timing pbkdf 2016-09-19 16:30:45 +01:00
disas
exec tcg: Make tb_flush() thread safe 2016-09-27 11:57:30 +02:00
fpu fpu: add mechanism to check for invalid long double formats 2016-09-15 12:43:18 +01:00
hw virtio: add virtio_detach_element() 2016-10-10 01:16:58 +03:00
io
libdecnumber
migration Remove unused function declarations 2016-09-15 15:32:22 +03:00
monitor
net Remove unused function declarations 2016-09-15 15:32:22 +03:00
qapi qapi: Support unregistering QMP commands 2016-09-19 17:32:21 +02:00
qemu coroutine: add a macro for the coroutine stack size 2016-09-29 14:13:39 +02:00
qom cpus-common: lock-free fast path for cpu_exec_start/end 2016-09-27 11:57:30 +02:00
standard-headers
sysemu numa: reduce code duplication by adding helper numa_get_node_for_cpu() 2016-10-10 01:16:57 +03:00
ui spice/gl: render DisplaySurface via opengl 2016-09-28 12:49:36 +02:00
elf.h
glib-compat.h
qemu-common.h
qemu-io.h
trace-tcg.h
trace.h