Go to file
Paolo Bonzini 6db39ae2e2 block: change discard to co_discard
Since coroutine operation is now mandatory, convert both bdrv_discard
implementations to coroutines.  For qcow2, this means taking the lock
around the operation.  raw-posix remains synchronous.

The bdrv_discard callback is then unused and can be eliminated.

Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2011-10-21 17:34:14 +02:00
QMP
audio
block block: change discard to co_discard 2011-10-21 17:34:14 +02:00
bsd-user
darwin-user
default-configs i8259: Move to hw library 2011-10-16 11:11:56 +00:00
docs
fpu softfloat: Reinstate accidentally disabled target-specific NaN handling 2011-10-01 06:19:07 +00:00
fsdev hw/9pfs: Handle Security model parsing 2011-10-15 15:30:27 +05:30
gdb-xml
hw pc: Fix floppy drives with if=none 2011-10-21 17:34:13 +02:00
libcacard
linux-headers KVM: Update kernel headers 2011-10-06 09:48:07 +02:00
linux-user linux-user: Remove unused code 2011-10-05 09:26:23 +01:00
net
pc-bios target-alpha: Add custom PALcode image for CLIPPER emulation. 2011-10-08 08:46:03 -07:00
qapi qapi: modify visitor code generation for list iteration 2011-10-04 11:00:46 -03:00
qga
roms target-alpha: Add custom PALcode image for CLIPPER emulation. 2011-10-08 08:46:03 -07:00
scripts scripts: Simpletrace log analysis script for pretty-printing 9p log. 2011-10-15 15:30:27 +05:30
slirp slirp: Fix packet expiration 2011-09-28 13:11:30 +02:00
sysconfigs/target
target-alpha target-alpha: Add high-resolution access to wall clock and an alarm. 2011-10-08 08:49:09 -07:00
target-arm Merge remote-tracking branch 'stefanha/trivial-patches' into staging 2011-10-10 08:09:02 -05:00
target-cris softmmu_header: pass CPUState to tlb_fill 2011-10-01 09:31:26 +00:00
target-i386 kvm: support TSC deadline MSR 2011-10-03 13:53:14 -03:00
target-lm32 lm32: add missing qemu_init_vcpu() call 2011-10-03 12:44:22 +02:00
target-m68k softmmu_header: pass CPUState to tlb_fill 2011-10-01 09:31:26 +00:00
target-microblaze softmmu_header: pass CPUState to tlb_fill 2011-10-01 09:31:26 +00:00
target-mips softmmu_header: pass CPUState to tlb_fill 2011-10-01 09:31:26 +00:00
target-ppc PPC: booke timers 2011-10-06 09:48:09 +02:00
target-s390x softmmu_header: pass CPUState to tlb_fill 2011-10-01 09:31:26 +00:00
target-sh4 softmmu_header: pass CPUState to tlb_fill 2011-10-01 09:31:26 +00:00
target-sparc softmmu_header: pass CPUState to tlb_fill 2011-10-01 09:31:26 +00:00
target-unicore32
target-xtensa target-xtensa: add fsf core 2011-10-16 10:40:16 +00:00
tcg tcg: Fix spelling in comment (varables -> variables) 2011-10-14 14:39:47 +01:00
tests target-xtensa: rename dc232b board to sim 2011-10-16 10:40:23 +00:00
trace
ui migration: Export a function that tells if the migration has finished correctly 2011-10-20 13:23:54 +02:00
.gitignore
.gitmodules target-alpha: Add custom PALcode image for CLIPPER emulation. 2011-10-08 08:46:03 -07:00
CODING_STYLE
COPYING
COPYING.LIB
Changelog
HACKING
LICENSE
MAINTAINERS Merge remote-tracking branch 'pmaydell/omap-for-upstream' into staging 2011-09-26 08:00:00 -05:00
Makefile Merge remote-tracking branch 'qmp/queue/qmp' into staging 2011-10-10 08:21:46 -05:00
Makefile.dis
Makefile.hw
Makefile.objs Merge remote-tracking branch 'aneesh/for-upstream-6' into staging 2011-10-20 08:42:08 -05:00
Makefile.target i8259: Move to hw library 2011-10-16 11:11:56 +00:00
Makefile.user
README
TODO
VERSION
a.out.h
acl.c
acl.h
aes.c
aes.h
aio.c
alpha-dis.c
alpha.ld
arch_init.c migration: make *save_live return errors 2011-10-20 13:23:52 +02:00
arch_init.h
arm-dis.c
arm-semi.c
arm.ld
async.c
balloon.c
balloon.h
bitmap.c
bitmap.h
bitops.c
bitops.h
block-migration.c migration: make *save_live return errors 2011-10-20 13:23:52 +02:00
block-migration.h
block.c block: change discard to co_discard 2011-10-21 17:34:14 +02:00
block.h block: add bdrv_co_discard and bdrv_aio_discard support 2011-10-21 17:34:13 +02:00
block_int.h block: change discard to co_discard 2011-10-21 17:34:14 +02:00
blockdev.c
blockdev.h
bswap.h
bt-host.c
bt-host.h
bt-vhci.c
buffered_file.c migration: use qemu_file_get_error() return value when possible 2011-10-20 13:23:52 +02:00
buffered_file.h
cache-utils.c
cache-utils.h
check-qdict.c
check-qfloat.c
check-qint.c
check-qjson.c
check-qlist.c
check-qstring.c
cmd.c
cmd.h
compatfd.c
compatfd.h
compiler.h
config.h
configure hw/9pfs: Add st_gen support in getattr reply 2011-10-15 15:30:27 +05:30
console.c Fix mismatching allocation and deallocation 2011-10-05 09:23:00 +01:00
console.h
coroutine-gthread.c
coroutine-ucontext.c
coroutine-win32.c
cpu-all.h
cpu-common.h
cpu-defs.h
cpu-exec.c PPC: Fix sync instructions problem in SMP 2011-10-06 09:48:03 +02:00
cpus.c runstate: Allow user to migrate twice 2011-10-19 10:48:57 -02:00
cpus.h
cris-dis.c
cursor.c
cursor_hidden.xpm
cursor_left_ptr.xpm
cutils.c
def-helper.h
device_tree.c device tree: give dt more size 2011-10-06 09:48:01 +02:00
device_tree.h device tree: add add_subnode command 2011-10-06 09:48:00 +02:00
dis-asm.h
disas.c
disas.h
dma-helpers.c
dma.h
dyngen-exec.h Move GETPC from dyngen-exec.h to exec-all.h 2011-10-01 09:31:43 +00:00
elf.h
envlist.c
envlist.h
error.c error: let error_is_type take a NULL error 2011-10-04 11:00:46 -03:00
error.h
error_int.h
exec-all.h Move GETPC from dyngen-exec.h to exec-all.h 2011-10-01 09:31:43 +00:00
exec-memory.h
exec.c Move GETPC from dyngen-exec.h to exec-all.h 2011-10-01 09:31:43 +00:00
gdbstub.c Merge remote-tracking branch 'qmp/queue/qmp' into staging 2011-10-10 08:21:46 -05:00
gdbstub.h
gen-icount.h
hmp-commands.hx Merge remote-tracking branch 'qmp/queue/qmp' into staging 2011-10-10 08:21:46 -05:00
hmp.c qapi: Convert system_powerdown 2011-10-04 11:02:57 -03:00
hmp.h qapi: Convert system_powerdown 2011-10-04 11:02:57 -03:00
host-utils.c
host-utils.h
hppa-dis.c
hppa.ld
i386-dis.c
i386.ld
ia64-dis.c
ia64.ld
input.c
iohandler.c
ioport-user.c
ioport.c Introduce PortioList 2011-10-11 15:57:07 +02:00
ioport.h Introduce PortioList 2011-10-11 15:57:07 +02:00
iorange.h
iov.c
iov.h
json-lexer.c
json-lexer.h
json-parser.c
json-parser.h
json-streamer.c
json-streamer.h
kvm-all.c RunState: Rename enum values as generated by the QAPI 2011-10-04 11:02:57 -03:00
kvm-stub.c
kvm.h
libfdt_env.h
linux-aio.c linux-aio: Allow reads beyond the end of growable images 2011-10-14 10:29:13 +02:00
m68k-dis.c
m68k-semi.c
m68k.ld
memory.c memory: Fix old portio word accesses 2011-10-11 15:57:09 +02:00
memory.h memory: simple memory tree printer 2011-10-02 16:27:13 +02:00
microblaze-dis.c
migration-exec.c migration: move migrate_new to do_migrate 2011-10-20 13:23:53 +02:00
migration-fd.c migration: move migrate_new to do_migrate 2011-10-20 13:23:53 +02:00
migration-tcp.c migration: make migration-{tcp,unix} consistent 2011-10-20 13:23:55 +02:00
migration-unix.c migration: make migration-{tcp,unix} consistent 2011-10-20 13:23:55 +02:00
migration.c Merge remote-tracking branch 'quintela/migration-pull' into staging 2011-10-20 08:46:55 -05:00
migration.h migration: Make state definitions local 2011-10-20 13:23:54 +02:00
mips-dis.c
mips.ld
module.c
module.h
monitor.c monitor: Restrict pic/irq_info to supporting targets 2011-10-16 11:11:55 +00:00
monitor.h
nbd.c
nbd.h
net.c
net.h
notify.c
notify.h
os-posix.c
os-win32.c
osdep.c
osdep.h
oslib-posix.c add socket_set_block 2011-10-21 17:34:12 +02:00
oslib-win32.c add socket_set_block 2011-10-21 17:34:12 +02:00
path.c
pci-ids.txt
pflib.c
pflib.h
poison.h
posix-aio-compat.c
ppc-dis.c
ppc.ld
ppc64.ld ppc64: Fix linker script 2011-10-06 09:48:09 +02:00
qapi-schema-guest.json
qapi-schema-test.json
qapi-schema.json qapi: Convert system_powerdown 2011-10-04 11:02:57 -03:00
qbool.c
qbool.h
qdict-test-data.txt
qdict.c
qdict.h
qemu-aio.h
qemu-barrier.h
qemu-char.c qemu-char: Fix use of free() instead of g_free() 2011-10-14 14:38:13 +01:00
qemu-char.h
qemu-common.h
qemu-config.c hw/9pfs: Rename fstype to fsdriver to make it consistent across VirtFS code 2011-10-15 15:30:27 +05:30
qemu-config.h
qemu-coroutine-int.h
qemu-coroutine-lock.c
qemu-coroutine.c
qemu-coroutine.h
qemu-doc.texi target-xtensa: update qemu-doc.texi 2011-10-15 21:38:07 +00:00
qemu-error.c
qemu-error.h
qemu-ga.c
qemu-img-cmds.hx
qemu-img.c qemu-img: Don't allow preallocation and compression at the same time 2011-10-21 17:34:13 +02:00
qemu-img.texi
qemu-io.c fix memory leak in aio_write_f 2011-10-21 17:34:12 +02:00
qemu-lock.h
qemu-log.h
qemu-nbd.c
qemu-nbd.texi
qemu-objects.h
qemu-option.c
qemu-option.h
qemu-options.h
qemu-options.hx Merge remote-tracking branch 'aneesh/for-upstream-6' into staging 2011-10-20 08:42:08 -05:00
qemu-os-posix.h
qemu-os-win32.h
qemu-progress.c
qemu-queue.h
qemu-sockets.c
qemu-tech.texi target-xtensa: update qemu-doc.texi 2011-10-15 21:38:07 +00:00
qemu-thread-posix.c
qemu-thread-posix.h
qemu-thread-win32.c
qemu-thread-win32.h
qemu-thread.h
qemu-timer-common.c
qemu-timer.c
qemu-timer.h
qemu-tool.c
qemu-x509.h
qemu.sasl
qemu_socket.h add socket_set_block 2011-10-21 17:34:12 +02:00
qerror.c qerror: add qerror_report_err() 2011-10-04 11:00:46 -03:00
qerror.h qerror: add qerror_report_err() 2011-10-04 11:00:46 -03:00
qfloat.c
qfloat.h
qint.c
qint.h
qjson.c
qjson.h
qlist.c
qlist.h
qmp-commands.hx QMP: Fix blockdev-snapshot-sync doc example 2011-10-19 10:39:59 -02:00
qmp.c qapi: Convert system_powerdown 2011-10-04 11:02:57 -03:00
qobject.h
qstring.c
qstring.h
range.h
readline.c
readline.h
rules.mak
s390-dis.c
s390.ld
savevm.c Merge remote-tracking branch 'quintela/migration-pull' into staging 2011-10-20 08:46:55 -05:00
sh4-dis.c
softmmu-semi.h
softmmu_defs.h Document softmmu templates 2011-10-01 09:31:08 +00:00
softmmu_exec.h Document softmmu templates 2011-10-01 09:31:08 +00:00
softmmu_header.h Document softmmu templates 2011-10-01 09:31:08 +00:00
softmmu_template.h softmmu_header: pass CPUState to tlb_fill 2011-10-01 09:31:26 +00:00
sparc-dis.c
sparc.ld
sparc64.ld
spice-qemu-char.c
sysemu.h runstate: Allow user to migrate twice 2011-10-19 10:48:57 -02:00
targphys.h
tcg-runtime.c
test-coroutine.c
test-qmp-commands.c qapi: add test cases for generated free functions 2011-10-04 11:00:46 -03:00
test-visitor.c qapi: modify visitor code generation for list iteration 2011-10-04 11:00:46 -03:00
thunk.c
thunk.h
trace-events block: add bdrv_co_discard and bdrv_aio_discard support 2011-10-21 17:34:13 +02:00
translate-all.c
uboot_image.h
usb-bsd.c
usb-linux.c usb-host: handle USBDEVFS_SETCONFIGURATION returning EBUSY 2011-10-13 12:58:51 +02:00
usb-redir.c
usb-stub.c
user-exec.c
version.rc
vgafont.h
vl.c Merge remote-tracking branch 'aneesh/for-upstream-6' into staging 2011-10-20 08:42:08 -05:00
x86_64.ld
xen-all.c
xen-mapcache.c
xen-mapcache.h
xen-stub.c
xtensa-semi.c

README

Read the documentation in qemu-doc.html.

Fabrice Bellard.