Statistics
| Branch: | Revision:

root / util @ ef6413a2

Name Size
Makefile.objs 537 Bytes
acl.c 4.5 kB
aes.c 59.7 kB
bitmap.c 6.3 kB
bitops.c 3.5 kB
cache-utils.c 2.2 kB
compatfd.c 2.8 kB
cutils.c 9.6 kB
envlist.c 5.3 kB
error.c 2 kB
event_notifier-posix.c 2.4 kB
event_notifier-win32.c 1.2 kB
hbitmap.c 12.5 kB
host-utils.c 2.5 kB
iov.c 11.3 kB
module.c 1.4 kB
notify.c 921 Bytes
osdep.c 8.6 kB
oslib-posix.c 5.9 kB
oslib-win32.c 3.9 kB
path.c 4.6 kB
qemu-config.c 5.2 kB
qemu-error.c 4.4 kB
qemu-option.c 28.7 kB
qemu-progress.c 4 kB
qemu-sockets.c 26 kB
qemu-thread-posix.c 6.8 kB
qemu-thread-win32.c 9.1 kB
qemu-timer-common.c 2 kB
uri.c 56.4 kB

Latest revisions

# Date Author Comment
ff7a1eb0 02/17/2013 04:28 pm Richard Henderson

host-utils: Improve mulu64 and muls64

The new formulation makes better use of add-with-carry type insns
that the host may have. Use gcc's sign adjustment trick to avoid
having to perform a 128-bit negation.

Signed-off-by: Richard Henderson <>...

f540166b 02/17/2013 04:28 pm Richard Henderson

host-utils: Use __int128_t for mul[us]64

Replace some x86_64 specific inline assembly with something that
all 64-bit hosts ought to optimize well. At worst this becomes
a call to the gcc __multi3 routine, which is no worse than our
implementation in util/host-utils.c....

0f9d8bd3 02/16/2013 01:12 pm Richard Henderson

bitops: Replace bitops_ctol with ctzl

The is the only remaining user.

Signed-off-by: Richard Henderson <>
Reviewed-by: Eric Blake <>
Signed-off-by: Blue Swirl <>

4932398f 02/16/2013 01:12 pm Richard Henderson

bitops: Inline bitops_flsl

This is the only remaining user.

Signed-off-by: Richard Henderson <>
Reviewed-by: Eric Blake <>
Signed-off-by: Blue Swirl <>

265ce4a5 02/16/2013 01:12 pm Richard Henderson

bitops: Use non-bitops ctzl

The use of ctz has already eliminated zero, and thus the difference
in edge conditions between the two routines is irrelevant.

Signed-off-by: Richard Henderson <>
Reviewed-by: Eric Blake <>
Signed-off-by: Blue Swirl <>

18331e7c 02/16/2013 01:11 pm Richard Henderson

hbitmap: Use non-bitops ctzl

Both uses of ctz have already eliminated zero, and thus the difference
in edge conditions between the two routines is irrelevant.

Signed-off-by: Richard Henderson <>
Acked-by: Paolo Bonzini <>...

312fd5f2 02/11/2013 04:13 pm Markus Armbruster

error: Strip trailing '\n' from error string arguments (again)

Commit 6daf194d and be62a2eb got rid of a bunch, but they keep coming
back. Tracked down with this Coccinelle semantic patch:

r
expression err, eno, cls, fmt;
position p;
@@
(...
7216ae3d 02/11/2013 04:13 pm Markus Armbruster

qemu-option: Disable two helpful messages that got broken recently

commit 8be7e7e4 and commit ec7b2ccb messed up the ordering of error
message and the helpful explanation that should follow it, like this:

$ qemu-system-x86_64 --nodefaults -S --vnc :0 --chardev null,id=,...
facf98ad 02/06/2013 04:29 pm Aneesh Kumar K.V

qemu/iovec: Don't assert if sbytes is zero

Since these values can possibly be sent from guest (for hw/9pfs), do a sanity check
on them. A 9p write request with 0 bytes caused qemu to abort without this patch

Signed-off-by: Aneesh Kumar K.V <>...

e3f9fe2d 02/04/2013 10:38 pm Eduardo Habkost

cutils: unsigned int parsing functions

There are lots of duplicate parsing code using strto*() in QEMU, and
most of that code is broken in one way or another. Even the visitors
code have duplicate integer parsing code1. This introduces functions
to help parsing unsigned int values: parse_uint() and parse_uint_full()....

View revisions

Also available in: Atom