qemu-irix/include/hw
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
..
acpi ACPI: Add GIC Interrupt Translation Service Structure definition 2016-10-04 13:28:09 +01:00
adc STM32F2xx: Add the ADC device 2016-10-04 13:28:07 +01:00
arm STM32F205: Connect the SPI devices 2016-10-04 13:28:07 +01:00
audio
block
char
core generic-loader: Add a generic loader 2016-10-04 13:28:09 +01:00
cpu
cris
display
dma dma: xlnx-zynq-devcfg: Fix up XLNX_ZYNQ_DEVCFG_R_MAX 2016-09-22 18:13:08 +01:00
gpio
i2c
i386 target-i386: Correct family/model/stepping for Opteron_G3 2016-10-03 16:06:43 -03:00
ide ide: Fix memory leak in ide_register_restart_cb() 2016-09-29 15:50:29 -04:00
input adb-keys.h: initial commit 2016-09-23 10:29:40 +10:00
intc hw/intc/arm_gicv3_its: Implement ITS base class 2016-10-04 13:28:08 +01:00
ipack
ipmi
isa
kvm
lm32
m68k
mem
mips
misc aspeed: add a ram_size property to the memory controller 2016-09-22 18:13:06 +01:00
net cadence_gem: Add support for screening 2016-09-22 18:13:07 +01:00
nvram
pci hw/pci: Prepare for AMD IOMMU 2016-09-23 19:03:56 +03:00
pci-host spapr_pci: Add numa node id 2016-09-23 12:39:07 +10:00
ppc hw/ppc/spapr: Use POWER8 by default for the pseries-2.8 machine 2016-10-06 16:15:53 +11:00
s390x
scsi
sd
sh4
smbios
sparc
ssi STM32F2xx: Add the SPI device 2016-10-04 13:28:07 +01:00
timer
tricore
unicore32
usb
vfio memory: introduce IOMMUNotifier and its caps 2016-09-27 08:59:16 +02:00
virtio virtio: add virtio_detach_element() 2016-10-10 01:16:58 +03:00
watchdog
xen qdisk - hw/block/xen_disk: grant copy implementation 2016-09-27 18:18:55 -07:00
boards.h
bt.h
compat.h virtio-serial: enable virtio console emergency write feature 2016-10-10 01:16:57 +03:00
devices.h
elf_ops.h loader: Add AddressSpace loading support to ELFs 2016-09-22 18:13:08 +01:00
empty_slot.h
fw-path-provider.h
hotplug.h
hw.h
ide.h
irq.h
loader.h loader: Add AddressSpace loading support to targphys 2016-09-22 18:13:08 +01:00
nmi.h
or-irq.h irq: Add a new irq device that allows the ORing of lines 2016-10-04 13:28:07 +01:00
pcmcia.h
platform-bus.h
ptimer.h hw/ptimer: Introduce timer policy feature 2016-09-22 18:13:06 +01:00
qdev-core.h
qdev-dma.h
qdev-properties.h
qdev.h
register.h
stream.h
sysbus.h sysbus: Remove ignored return value of FindSysbusDeviceFunc 2016-09-27 17:03:34 -03:00
usb.h