qemu/stubs
Fam Zheng cea25275a3 util: Add UUID API
A number of different places across the code base use CONFIG_UUID. Some
of them are soft dependency, some are not built if libuuid is not
available, some come with dummy fallback, some throws runtime error.

It is hard to maintain, and hard to reason for users.

Since UUID is a simple standard with only a small number of operations,
it is cleaner to have a central support in libqemuutil. This patch adds
qemu_uuid_* functions that all uuid users in the code base can
rely on. Except for qemu_uuid_generate which is new code, all other
functions are just copy from existing fallbacks from other files.

Note that qemu_uuid_parse is moved without updating the function
signature to use QemuUUID, to keep this patch simple.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Message-Id: <1474432046-325-2-git-send-email-famz@redhat.com>
2016-09-23 11:42:52 +08:00
..
arch-query-cpu-def.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
arch-query-cpu-model-baseline.c qmp: add QMP interface "query-cpu-model-baseline" 2016-09-06 17:06:51 +02:00
arch-query-cpu-model-comparison.c qmp: add QMP interface "query-cpu-model-comparison" 2016-09-06 17:06:51 +02:00
arch-query-cpu-model-expansion.c qmp: add QMP interface "query-cpu-model-expansion" 2016-09-06 17:06:51 +02:00
bdrv-next-monitor-owned.c block: Add bdrv_next_monitor_owned() 2016-03-17 15:47:56 +01:00
blk-commit-all.c block: Move some bdrv_*_all() functions to BB 2016-03-17 15:47:56 +01:00
blockdev-close-all-bdrv-states.c all: Clean up includes 2016-02-16 14:29:28 +00:00
clock-warp.c icount: decouple warp calls 2016-03-15 18:23:45 +01:00
cpu-get-clock.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
cpu-get-icount.c include: move CPU-related definitions out of qemu-common.h 2016-05-19 13:08:04 +02:00
cpus.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
dump.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
fd-register.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
fdset-add-fd.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
fdset-find-fd.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
fdset-get-fd.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
fdset-remove-fd.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
gdbstub.c Clean up includes some more 2016-03-22 22:20:16 +01:00
get-fd.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
get-next-serial.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
get-vm-name.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
iohandler.c iohandler: Introduce iohandler_get_aio_context 2016-04-22 16:43:42 +02:00
iothread-lock.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
ipmi.c acpi: Add IPMI table entries 2016-06-24 05:13:57 +03:00
is-daemonized.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
kvm.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
machine-init-done.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
Makefile.objs qmp: add QMP interface "query-cpu-model-baseline" 2016-09-06 17:06:51 +02:00
migr-blocker.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
mon-is-qmp.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
mon-printf.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
monitor-init.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
notify-event.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
pc_madt_cpu_entry.c pc: acpi: introduce AcpiDeviceIfClass.madt_cpu hook 2016-06-24 05:21:16 +03:00
qmp_pc_dimm_device_list.c move get_current_ram_size to virtio-balloon.c 2016-02-23 12:55:16 +02:00
qtest.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
replay-user.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
replay.c replay: introduce block devices record/replay 2016-03-30 12:15:57 +02:00
reset.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
runstate-check.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
set-fd-handler.c event-notifier: Add "is_external" parameter 2016-04-22 16:43:56 +02:00
slirp.c qemu-common: stop including qemu/host-utils.h from qemu-common.h 2016-05-19 16:42:28 +02:00
smbios_type_38.c ipmi: Add SMBIOS table entry 2016-06-24 05:13:57 +03:00
sysbus.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
target-get-monitor-def.c Clean up includes some more 2016-03-22 22:20:16 +01:00
target-monitor-defs.c Clean up includes some more 2016-03-22 22:20:16 +01:00
trace-control.c trace: Avoid implicit bool->integer conversions 2016-09-05 13:47:02 -04:00
uuid.c util: Add UUID API 2016-09-23 11:42:52 +08:00
vhost.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
vm-stop.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00
vmstate.c stubs: Clean up includes 2016-02-04 17:01:04 +00:00