Trivial patches for 2025-08-07 v2
The following changes since commit cd21ee5b27b22ae66c103d36516aa5077881aa3d:
Merge tag 'ui-pull-request' of https://gitlab.com/marcandre.lureau/qemu into staging (2025-08-07 11:02:50 -0400)
are available in the Git repository at:
https://gitlab.com/mjt0k/qemu.git tags/pull-trivial-patches
for you to fetch changes up to fa36bb8072a7ec2cee0d95bc0f927345de4ce8a9:
meson: Fix brlapi compile test for Windows builds (2025-08-07 23:47:08 +0300)
----------------------------------------------------------------
trivial patches for 2025-08-07 v2
A fix for for a bugfix for mirror-sparse test,
and brlapi compile test fix for Windows builds.
----------------------------------------------------------------
Michael Tokarev (1):
tests/qemu-iotests/tests/mirror-sparse: actually require O_DIRECT
Stefan Weil (1):
meson: Fix brlapi compile test for Windows builds
meson.build | 8 +++++--- tests/qemu-iotests/tests/mirror-sparse | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-)
[PULL 1/2] tests/qemu-iotests/tests/mirror-sparse: actually require O_DIRECT
Commit c0ddcb2cbc146e introduced the test which uses cache=direct mode, without checking if the scratch filesystem supports O_DIRECT. A subsequent commit, afeb002e0ad49d, tried to fix that issue, but instead of checking for o_direct, it checked for _supported_cache_modes none directsync, which is not what the original mirror-sparse test uses. Fix both by actually checking for o_direct.
--- tests/qemu-iotests/tests/mirror-sparse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/tests/mirror-sparse +1 -1
@@ -40,7 +40,7 @@ cd .. _supported_fmt qcow2 raw # Format of the source. dst is always raw file _supported_proto file _supported_os Linux -_supported_cache_modes none directsync +_require_o_direct _require_disk_usage echo
Signature · 1 line
2.47.2
[PULL 2/2] meson: Fix brlapi compile test for Windows builds
In reply to Michael TokarevFrom: Stefan Weil via <[email protected]>
brlapi__openConnection returns a brlapi_fileDescriptor which is a pointer for Windows builds.
The test for brlapi fails with cross builds on Debian trixie (x86_64-w64-mingw32-gcc (GCC) 14-win32):
testfile.c:4:30: error: returning 'brlapi_fileDescriptor' {aka 'void *'} from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
4 | int main(void) { return brlapi__openConnection (NULL, NULL, NULL); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-----------
../../../meson.build:1607: WARNING: could not link brlapi, disabling
--- meson.build | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
meson.build +5 -3
@@ -1586,9 +1586,11 @@ if not get_option('brlapi').auto() or have_system brlapi = cc.find_library('brlapi', has_headers: ['brlapi.h'], required: get_option('brlapi')) if brlapi.found() and not cc.links(''' - #include <brlapi.h> - #include <stddef.h> - int main(void) { return brlapi__openConnection (NULL, NULL, NULL); }''', dependencies: brlapi) + #include <brlapi.h> + #include <stddef.h> + int main(void) { + return brlapi__openConnection(NULL, NULL, NULL) == BRLAPI_INVALID_FILE_DESCRIPTOR; + }''', dependencies: brlapi) brlapi = not_found if get_option('brlapi').enabled() error('could not link brlapi')
Signature · 1 line
2.47.2
Stefan Hajnoczi
AppliedApplied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/10.1 for any user-visible changes.