Statistics
| Branch: | Revision:

root / util @ 4c1b8f1e

Name Size
Makefile.objs 707 Bytes
acl.c 4.5 kB
aes.c 63.2 kB
bitmap.c 6.5 kB
bitops.c 3.8 kB
cache-utils.c 2 kB
compatfd.c 2.6 kB
crc32c.c 4.8 kB
cutils.c 12.4 kB
envlist.c 5.3 kB
error.c 3.5 kB
event_notifier-posix.c 2.4 kB
event_notifier-win32.c 1.2 kB
fifo8.c 2.7 kB
getauxval.c 2.3 kB
hbitmap.c 12.5 kB
hexdump.c 1002 Bytes
host-utils.c 2.5 kB
iov.c 11.5 kB
module.c 1.4 kB
notify.c 1.6 kB
osdep.c 10.3 kB
oslib-posix.c 6.8 kB
oslib-win32.c 5.5 kB
path.c 4.6 kB
qemu-config.c 12 kB
qemu-error.c 4.6 kB
qemu-openpty.c 3.8 kB
qemu-option.c 29.2 kB
qemu-progress.c 4.3 kB
qemu-sockets.c 26.3 kB
qemu-thread-posix.c 9.7 kB
qemu-thread-win32.c 9.5 kB
qemu-timer-common.c 1.8 kB
readline.c 13.4 kB
throttle.c 10.3 kB
unicode.c 3.1 kB
uri.c 56.4 kB

Latest revisions

# Date Author Comment
84d18f06 02/17/2014 06:57 pm Markus Armbruster

Use error_is_set() only when necessary

error_is_set(&var) is the same as var != NULL, but it takes
whole-program analysis to figure that out. Unnecessarily hard for
optimizers, static checkers, and human readers. Dumb it down to
obvious.

Gets rid of several dozen Coverity false positives....

c4e57af8 02/08/2014 04:50 pm Beniamino Galvani

util/fifo8: implement push/pop of multiple bytes

The patch adds functions fifo8_push_all() and fifo8_pop_buf() which
can be used respectively to push the content of a memory buffer to the
fifo and to pop multiple bytes obtaining a pointer to the fifo backing...

58892d47 02/08/2014 04:50 pm Beniamino Galvani

util/fifo8: clear fifo head upon reset

To improve the predictability of fifo8_pop_buf(), the fifo head is set
to the start of data buffer upon a reset so that the first call to the
function will be able to retrieve all data in the fifo.

Signed-off-by: Beniamino Galvani <>...

1165ae61 02/01/2014 11:42 am Stefan Hajnoczi

osdep: drop unused #include "trace.h"

osdep.c does not use trace_*() so we can just drop the include.

Signed-off-by: Stefan Hajnoczi <>
Reviewed-by: Benoit Canet <>
Signed-off-by: Michael Tokarev <>

e5354657 01/24/2014 06:40 pm Kevin Wolf

qemu_memalign: Allow small alignments

The functions used by qemu_memalign() require an alignment that is at
least sizeof(void*). Adjust it if it is too small.

Signed-off-by: Kevin Wolf <>
Reviewed-by: Wenchao Xia <>...

e69968d4 01/24/2014 03:33 pm Kevin Wolf

qemu-progress: Drop unused include

Signed-off-by: Kevin Wolf <>
Reviewed-by: Benoit Canet <>

3c4b4e38 01/24/2014 03:33 pm Kevin Wolf

qemu-progress: Fix progress printing on SIGUSR1

Since commit a7aae221 ('Switch SIG_IPI to SIGUSR1'), SIGUSR1 is blocked
during startup, breaking the progress report in tools.

This patch reenables the signal when initialising a progress report.

Signed-off-by: Kevin Wolf <>...

0150cd81 01/22/2014 01:07 pm Stefan Hajnoczi

readline: move readline to a generic location

Now that the monitor and readline are decoupled, readline.h no longer
belongs in include/monitor/. Put the header into include/qemu/.

Move the source file into util/ so it can be linked as part of
libqemuutil.a....

13401ba0 01/22/2014 01:07 pm Stefan Hajnoczi

osdep: add qemu_set_tty_echo()

Using stdin with readline.c requires disabling echo and line buffering.
Add a portable wrapper to set the terminal attributes under Linux and
Windows.

Signed-off-by: Stefan Hajnoczi <>
Signed-off-by: Kevin Wolf <>

adf5c449 01/22/2014 01:07 pm Max Reitz

qemu-option: Add qemu_config_parse_qdict()

This function basically parses command-line options given as a QDict
replacing a config file.

For instance, the QDict {"section.opt1": 42, "section.opt2": 23}
corresponds to the config file:

[section]
opt1 = 42...

View revisions

Also available in: Atom