[PATCH 0/2] tests/qtest: fix and gaurd PXE test build on MinGW

Yonggang Luo posted 2 patches 1 month, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20261008184119.142-1-luoyonggang@gmail.com
Maintainers: "Alex Bennée" <alex.bennee@linaro.org>, Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>, Fabiano Rosas <farosas@suse.de>, Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>
.gitlab-ci.d/crossbuilds.yml |  2 +-
tests/qtest/pxe-test.c       | 12 ++++++++++--
2 files changed, 11 insertions(+), 3 deletions(-)
[PATCH 0/2] tests/qtest: fix and gaurd PXE test build on MinGW
Posted by Yonggang Luo 1 month, 2 weeks ago
Replace MinGW-incompatible memmem() with a bounded memcmp() search of the
s390 BIOS image.

The Windows cross-build did not enable slirp, so it skipped building the PXE
test. The series enables slirp for that build, ensuring the test is compiled
and the MinGW portability issue is covered by CI.

Yonggang Luo (2):
  tests/qtest: fix PXE test build on MinGW
  gitlab-ci: enable slirp in the Windows cross-build

 .gitlab-ci.d/crossbuilds.yml |  2 +-
 tests/qtest/pxe-test.c       | 12 ++++++++++--
 2 files changed, 11 insertions(+), 3 deletions(-)

-- 
2.55.0.windows.3
Re: [PATCH 0/2] tests/qtest: fix and gaurd PXE test build on MinGW
Posted by Pierrick Bouvier 1 month, 2 weeks ago
On 10/8/2026 11:41 AM, Yonggang Luo wrote:
> Replace MinGW-incompatible memmem() with a bounded memcmp() search of the
> s390 BIOS image.
> 
> The Windows cross-build did not enable slirp, so it skipped building the PXE
> test. The series enables slirp for that build, ensuring the test is compiled
> and the MinGW portability issue is covered by CI.
> 
> Yonggang Luo (2):
>   tests/qtest: fix PXE test build on MinGW
>   gitlab-ci: enable slirp in the Windows cross-build
> 
>  .gitlab-ci.d/crossbuilds.yml |  2 +-
>  tests/qtest/pxe-test.c       | 12 ++++++++++--
>  2 files changed, 11 insertions(+), 3 deletions(-)
> 

This was merged into master (40ba85501c0b6ac2a7319d3804dab072edf67564).
Thank you for your contribution!

Regards,
Pierrick
Re: [PATCH 0/2] tests/qtest: fix and gaurd PXE test build on MinGW
Posted by Eric Farman 1 month, 2 weeks ago

On 10/8/26 2:41 PM, Yonggang Luo wrote:
> Replace MinGW-incompatible memmem() with a bounded memcmp() search of the
> s390 BIOS image.
> 
> The Windows cross-build did not enable slirp, so it skipped building the PXE
> test. The series enables slirp for that build, ensuring the test is compiled
> and the MinGW portability issue is covered by CI.
> 
> Yonggang Luo (2):
>    tests/qtest: fix PXE test build on MinGW
>    gitlab-ci: enable slirp in the Windows cross-build
> 
>   .gitlab-ci.d/crossbuilds.yml |  2 +-
>   tests/qtest/pxe-test.c       | 12 ++++++++++--
>   2 files changed, 11 insertions(+), 3 deletions(-)
> 

Joy's fix [1] also works for me, but perhaps this is a more robust fix.

Tested-by: Eric Farman <farman@linux.ibm.com>

[1] 
https://lore.kernel.org/qemu-devel/20261008195158.289711-1-zycai@linux.ibm.com/
Re: [PATCH 0/2] tests/qtest: fix and gaurd PXE test build on MinGW
Posted by Pierrick Bouvier 1 month, 2 weeks ago
On 10/8/2026 1:30 PM, Eric Farman wrote:
> 
> 
> On 10/8/26 2:41 PM, Yonggang Luo wrote:
>> Replace MinGW-incompatible memmem() with a bounded memcmp() search of the
>> s390 BIOS image.
>>
>> The Windows cross-build did not enable slirp, so it skipped building
>> the PXE
>> test. The series enables slirp for that build, ensuring the test is
>> compiled
>> and the MinGW portability issue is covered by CI.
>>
>> Yonggang Luo (2):
>>    tests/qtest: fix PXE test build on MinGW
>>    gitlab-ci: enable slirp in the Windows cross-build
>>
>>   .gitlab-ci.d/crossbuilds.yml |  2 +-
>>   tests/qtest/pxe-test.c       | 12 ++++++++++--
>>   2 files changed, 11 insertions(+), 3 deletions(-)
>>
> 
> Joy's fix [1] also works for me, but perhaps this is a more robust fix.
> 
> Tested-by: Eric Farman <farman@linux.ibm.com>
> 
> [1] https://lore.kernel.org/qemu-devel/20261008195158.289711-1-
> zycai@linux.ibm.com/

I'll pull this one.

Regards,
Pierrick