qcow2: Remove request from in-flight list after error
If we complete a request with a failure we need to remove it from the list ofrequests that are in flight. If we don't do it, the next time the same AIOCB isused for a cluster allocation it will create a loop in the list and qemu will...
qcow2: Don't ignore immediate read/write failures
Returning -EIO is far from optimal, but at least it's an error code.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
block: Fix multiwrite memory leak in error case
Previously multiwrite_user_cb was never called if a request in the multiwritebatch failed right away because it did set mcb->error immediately. Make it lookmore like a normal callback to fix this.
Reported-by: Juan Quintela <quintela@redhat.com>...
block: Fix error code in multiwrite for immediate failures
block: Fix multiwrite error handling
When two requests of the same multiwrite batch fail, the callback of allrequests in that batch were called twice. This could have any kind of nastyeffects, in my case it lead to use after free and eventually a segfault....
Implement virtio reset
The guest may issue a RESET command for virtio. So far we didn't botherto implement it, but with my new bootloader we actually need it for Linuxto get back to a safe state.
Signed-off-by: Alexander Graf <agraf@suse.de>Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Always notify consumers of char devices if they're open
When using virtio-console on s390, the input doesn't work.
The root of the problem is rather simple. What happens is the following:
1) create character device for stdio 2) char device is done creating, sends OPENED event...
Avoid page_set_flags() assert in qemu-user host page protection code
V2 that uses endaddr = end-of-guest-address-space if !h2g_valid(endaddr)after I found out that indeed works; and also disables the FreeBSD 6.x/compat/linux/proc/self/maps fallback because it can return partial lines...
Remove magic numbers for VNC message IDs from code
The code processing incoming & sending outgoing messages from/toclients used embedded magic numbers for all message IDs. Thismade the code a little hard to follow. Add constants in the vnc.hheader file for all message IDs and use them in the code...
target-mips: Fix format specifiers for fpu_fprintf
In the previous patch which introduced fprintf_function toallow parameter checking by gcc some compiler warningsremained unfixed.
These warnings are fixed here.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>...
View all revisions | View revisions
Also available in: Atom