OSDN Git Service

osdep: Add runtime OFD lock detection
authorFam Zheng <famz@redhat.com>
Fri, 11 Aug 2017 11:44:46 +0000 (19:44 +0800)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Aug 2017 12:12:44 +0000 (14:12 +0200)
commitca749954b09b89e22cd69c4949fb7e689b057963
tree48118b0486719b09f272cda9d720e4d0ab96bf2a
parentd0d5d0e31a874d592741a088c2c5071bae164dbf
osdep: Add runtime OFD lock detection

Build time check of OFD lock is not sufficient and can cause image open
errors when the runtime environment doesn't support it.

Add a helper function to probe it at runtime, additionally. Also provide
a qemu_has_ofd_lock() for callers to check the status.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
include/qemu/osdep.h
util/osdep.c