Re: [Qemu-devel] [PATCH 1/2] osdep: Add runtime OFD lock detection

2017-07-21 Thread Eric Blake
On 07/21/2017 05:20 AM, Fam Zheng wrote: > 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

[Qemu-devel] [PATCH 1/2] osdep: Add runtime OFD lock detection

2017-07-21 Thread Fam Zheng
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 --- include/qe