[PATCH 1/1] os_find_datadir: search as in version 4.2

2020-06-15 Thread Joe Slater
Always look for ../share/qemu then ../pc-bios when looking for datadir. Signed-off-by: Joe Slater --- os-posix.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/os-posix.c b/os-posix.c index 3cd52e1e70..f77da94bf6 100644 --- a/os-posix.c +++ b/os-posix.c @@ -82,8

[V2][PATCH 1/1] lockable: use QLNULL for a null lockable

2020-06-04 Thread Joe Slater
Allows us to build with -Og and optimizations that do not clean up dead-code. If we use QLNULL for null lockables, we can always use referencing unknown_lock_type as a link time error indicator. Signed-off-by: Joe Slater --- include/qemu/lockable.h| 20 block/block

[PATCH 2/2] lockable: do not rely on optimization for null lockables

2020-06-03 Thread Joe Slater
If we use QLNULL for null lockables, we can always use referencing unknown_lock_type as a link time error indicator. Signed-off-by: Joe Slater --- include/qemu/lockable.h | 19 ++- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/include/qemu/lockable.h b/include

[PATCH 0/2] Use QLNULL for null lockable

2020-06-03 Thread Joe Slater
hich I set to use -Og, then -O2 Joe Slater (2): lockable: use QLNULL for a null lockable lockable: do not rely on optimization for null lockables block/block-backend.c | 4 ++-- block/block-copy.c | 2 +- block/mirror.c | 5 +++-- fsdev/qemu-fsdev-

[PATCH 1/2] lockable: use QLNULL for a null lockable

2020-06-03 Thread Joe Slater
Allows us to build with -Og and optimizations that do not clean up dead-code. Signed-off-by: Joe Slater to be squished Signed-off-by: Joe Slater --- block/block-backend.c | 4 ++-- block/block-copy.c | 2 +- block/mirror.c | 5 +++-- fsdev/qemu-fsdev