virtio-blk: Fix restart after read error
Current code assumes that only write requests are ever going to be restarted.This is wrong since rerror=stop exists. Instead of directly starting writes,use the same request processing as used for new requests....
virtio-blk: Fix error cases which ignored rerror/werror
If an I/O request fails right away instead of getting an error only in thecallback, we still need to consider rerror/werror.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
virtio-serial-bus: Fix bus initialisation and allow for bus identification
This commit enables one to use multiple virtio-serial devices and toassign ports to arbitrary devices like this:
-device virtio-serial,id=foo -device virtio-serial,id=bar \ -device virtserialport,bus=foo.0,name=foo \...
cirrus: Properly re-register cirrus_linear_io_addr on vram unmap
This fixes CONFIG_FB_CIRRUS for Linux guests and probably much more:
When switching away from linearly mapped vram, we also have to restorethe I/O handlers for the LFB.
This regression was once introduced by commit 2bec46dc97....
virtio_blk: Factor virtio_blk_handle_request out
We need a function that handles a single request. Create one by splitting outcode from virtio_blk_handle_output.
softmmu: Dont clobber retaddr in slow_ldx().
When splitting up unaligned IO accesses, ld calls slow_ld which wasclobbering retaddr.
AFAIK the problem only shows up when running emulations with -icountthat may abort TB execution on IO accesses.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Solaris: test for presence of commands with has()
Signed-off-by: Loïc Minier <lool@dooz.org>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Add and use has() and path_of() funcs
Add has() and path_of() funcs and use them across configure; has()will test whether a command or builtin is available; path_of() willsearch the PATH for executables and return the full pathname if found.
Signed-off-by: Loïc Minier <lool@dooz.org...
Check for sdl-config before calling it
Check whether sdl-config is available before calling it, otherwise./configure triggers a warning: ./configure: 957: sdl-config: not found
If neither the .pc file not sdl-config are present, disable SDL support....
Monitor: Fix command execution regression
Function is_async_return() added by commit 940cc30d0d4 assumesthat 'data', which is returned by handlers, is always a QDict.
This is not true, as QLists can also be returned, in this casewe'll get a segfault....
View all revisions | View revisions
Also available in: Atom