qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] accel: Re-enable WHPX cross-build on case sensitive filesystems
@ 2023-06-24 14:22 Philippe Mathieu-Daudé
  2023-06-24 14:22 ` [PATCH 1/2] docs/devel/testing: Update the 'Docker Debugging' section Philippe Mathieu-Daudé
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-06-24 14:22 UTC (permalink / raw)
  To: qemu-devel
  Cc: Sunil Muthuswamy, Philippe Mathieu-Daudé, Paolo Bonzini,
	Thomas Huth, Daniel P. Berrangé, Wainer dos Santos Moschetta,
	Marc-André Lureau, Alex Bennée, Beraldo Leal

Re-enable cross-building of WHPX (via Docker images;
also on CI).

Only cross-built.

Philippe Mathieu-Daudé (2):
  docs/devel/testing: Update the 'Docker Debugging' section
  accel: Re-enable WHPX cross-build on case sensitive filesystems

 docs/devel/testing.rst           | 2 +-
 meson.build                      | 4 ++--
 target/i386/whpx/whpx-internal.h | 4 ++--
 target/i386/whpx/whpx-all.c      | 4 ++--
 4 files changed, 7 insertions(+), 7 deletions(-)

-- 
2.38.1



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/2] docs/devel/testing: Update the 'Docker Debugging' section
  2023-06-24 14:22 [PATCH 0/2] accel: Re-enable WHPX cross-build on case sensitive filesystems Philippe Mathieu-Daudé
@ 2023-06-24 14:22 ` Philippe Mathieu-Daudé
  2023-06-26  8:30   ` Daniel P. Berrangé
  2023-06-24 14:22 ` [PATCH 2/2] accel: Re-enable WHPX cross-build on case sensitive filesystems Philippe Mathieu-Daudé
  2023-06-28 12:01 ` [PATCH 0/2] " Philippe Mathieu-Daudé
  2 siblings, 1 reply; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-06-24 14:22 UTC (permalink / raw)
  To: qemu-devel
  Cc: Sunil Muthuswamy, Philippe Mathieu-Daudé, Paolo Bonzini,
	Thomas Huth, Daniel P. Berrangé, Wainer dos Santos Moschetta,
	Marc-André Lureau, Alex Bennée, Beraldo Leal

Since commit 93cc0506f6 ("tests/docker: Use Fedora containers
for MinGW cross-builds in the gitlab-CI") the MinGW toolchain
is packaged inside the fedora-win[32/64]-cross images.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 docs/devel/testing.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst
index 203facb417..e85e26c4ca 100644
--- a/docs/devel/testing.rst
+++ b/docs/devel/testing.rst
@@ -558,7 +558,7 @@ When CI tasks, maintainers or yourself report a Docker test failure, follow the
 below steps to debug it:
 
 1. Locally reproduce the failure with the reported command line. E.g. run
-   ``make docker-test-mingw@fedora J=8``.
+   ``make docker-test-mingw@fedora-win64-cross J=8``.
 2. Add "V=1" to the command line, try again, to see the verbose output.
 3. Further add "DEBUG=1" to the command line. This will pause in a shell prompt
    in the container right before testing starts. You could either manually
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] accel: Re-enable WHPX cross-build on case sensitive filesystems
  2023-06-24 14:22 [PATCH 0/2] accel: Re-enable WHPX cross-build on case sensitive filesystems Philippe Mathieu-Daudé
  2023-06-24 14:22 ` [PATCH 1/2] docs/devel/testing: Update the 'Docker Debugging' section Philippe Mathieu-Daudé
@ 2023-06-24 14:22 ` Philippe Mathieu-Daudé
  2023-06-26  8:30   ` Daniel P. Berrangé
  2023-06-28 12:01 ` [PATCH 0/2] " Philippe Mathieu-Daudé
  2 siblings, 1 reply; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-06-24 14:22 UTC (permalink / raw)
  To: qemu-devel
  Cc: Sunil Muthuswamy, Philippe Mathieu-Daudé, Paolo Bonzini,
	Thomas Huth, Daniel P. Berrangé, Wainer dos Santos Moschetta,
	Marc-André Lureau, Alex Bennée, Beraldo Leal

Since MinGW commit 395dcfdea ("rename hyper-v headers and def
files to lower case") [*], WinHvPlatform.h and WinHvEmulation.h
got respectively renamed as winhvplatform.h / winhvemulation.h.

The mingw64-headers package included in the Fedora version we
use for CI does include this commit; and meson fails to detect
these present-but-renamed headers while cross-building (on
case-sensitive filesystems).

Use the renamed header in order to detect and successfully
cross-build with the WHPX accelerator.

Note, on Windows hosts, the libraries are still named as
WinHvPlatform.dll and WinHvEmulation.dll, so we don't bother
renaming the definitions used by load_whp_dispatch_fns() in
target/i386/whpx/whpx-all.c.

[*] https://sourceforge.net/p/mingw-w64/mingw-w64/ci/395dcfdea

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 meson.build                      | 4 ++--
 target/i386/whpx/whpx-internal.h | 4 ++--
 target/i386/whpx/whpx-all.c      | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/meson.build b/meson.build
index 6ef78ea278..fc3c14a810 100644
--- a/meson.build
+++ b/meson.build
@@ -661,8 +661,8 @@ endif
 if get_option('whpx').allowed() and targetos == 'windows'
   if get_option('whpx').enabled() and host_machine.cpu() != 'x86_64'
     error('WHPX requires 64-bit host')
-  elif cc.has_header('WinHvPlatform.h', required: get_option('whpx')) and \
-       cc.has_header('WinHvEmulation.h', required: get_option('whpx'))
+  elif cc.has_header('winhvplatform.h', required: get_option('whpx')) and \
+       cc.has_header('winhvemulation.h', required: get_option('whpx'))
     accelerators += 'CONFIG_WHPX'
   endif
 endif
diff --git a/target/i386/whpx/whpx-internal.h b/target/i386/whpx/whpx-internal.h
index 06429d8ccd..6633e9c4ca 100644
--- a/target/i386/whpx/whpx-internal.h
+++ b/target/i386/whpx/whpx-internal.h
@@ -2,8 +2,8 @@
 #define TARGET_I386_WHPX_INTERNAL_H
 
 #include <windows.h>
-#include <WinHvPlatform.h>
-#include <WinHvEmulation.h>
+#include <winhvplatform.h>
+#include <winhvemulation.h>
 
 typedef enum WhpxBreakpointState {
     WHPX_BP_CLEARED = 0,
diff --git a/target/i386/whpx/whpx-all.c b/target/i386/whpx/whpx-all.c
index 0903327ac5..9ee04ee650 100644
--- a/target/i386/whpx/whpx-all.c
+++ b/target/i386/whpx/whpx-all.c
@@ -31,8 +31,8 @@
 #include "whpx-internal.h"
 #include "whpx-accel-ops.h"
 
-#include <WinHvPlatform.h>
-#include <WinHvEmulation.h>
+#include <winhvplatform.h>
+#include <winhvemulation.h>
 
 #define HYPERV_APIC_BUS_FREQUENCY      (200000000ULL)
 
-- 
2.38.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] accel: Re-enable WHPX cross-build on case sensitive filesystems
  2023-06-24 14:22 ` [PATCH 2/2] accel: Re-enable WHPX cross-build on case sensitive filesystems Philippe Mathieu-Daudé
@ 2023-06-26  8:30   ` Daniel P. Berrangé
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel P. Berrangé @ 2023-06-26  8:30 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: qemu-devel, Sunil Muthuswamy, Paolo Bonzini, Thomas Huth,
	Wainer dos Santos Moschetta, Marc-André Lureau,
	Alex Bennée, Beraldo Leal

On Sat, Jun 24, 2023 at 04:22:11PM +0200, Philippe Mathieu-Daudé wrote:
> Since MinGW commit 395dcfdea ("rename hyper-v headers and def
> files to lower case") [*], WinHvPlatform.h and WinHvEmulation.h
> got respectively renamed as winhvplatform.h / winhvemulation.h.
> 
> The mingw64-headers package included in the Fedora version we
> use for CI does include this commit; and meson fails to detect
> these present-but-renamed headers while cross-building (on
> case-sensitive filesystems).
> 
> Use the renamed header in order to detect and successfully
> cross-build with the WHPX accelerator.
> 
> Note, on Windows hosts, the libraries are still named as
> WinHvPlatform.dll and WinHvEmulation.dll, so we don't bother
> renaming the definitions used by load_whp_dispatch_fns() in
> target/i386/whpx/whpx-all.c.
> 
> [*] https://sourceforge.net/p/mingw-w64/mingw-w64/ci/395dcfdea
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>  meson.build                      | 4 ++--
>  target/i386/whpx/whpx-internal.h | 4 ++--
>  target/i386/whpx/whpx-all.c      | 4 ++--
>  3 files changed, 6 insertions(+), 6 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] docs/devel/testing: Update the 'Docker Debugging' section
  2023-06-24 14:22 ` [PATCH 1/2] docs/devel/testing: Update the 'Docker Debugging' section Philippe Mathieu-Daudé
@ 2023-06-26  8:30   ` Daniel P. Berrangé
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel P. Berrangé @ 2023-06-26  8:30 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: qemu-devel, Sunil Muthuswamy, Paolo Bonzini, Thomas Huth,
	Wainer dos Santos Moschetta, Marc-André Lureau,
	Alex Bennée, Beraldo Leal

On Sat, Jun 24, 2023 at 04:22:10PM +0200, Philippe Mathieu-Daudé wrote:
> Since commit 93cc0506f6 ("tests/docker: Use Fedora containers
> for MinGW cross-builds in the gitlab-CI") the MinGW toolchain
> is packaged inside the fedora-win[32/64]-cross images.
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>  docs/devel/testing.rst | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/2] accel: Re-enable WHPX cross-build on case sensitive filesystems
  2023-06-24 14:22 [PATCH 0/2] accel: Re-enable WHPX cross-build on case sensitive filesystems Philippe Mathieu-Daudé
  2023-06-24 14:22 ` [PATCH 1/2] docs/devel/testing: Update the 'Docker Debugging' section Philippe Mathieu-Daudé
  2023-06-24 14:22 ` [PATCH 2/2] accel: Re-enable WHPX cross-build on case sensitive filesystems Philippe Mathieu-Daudé
@ 2023-06-28 12:01 ` Philippe Mathieu-Daudé
  2 siblings, 0 replies; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-06-28 12:01 UTC (permalink / raw)
  To: qemu-devel
  Cc: Sunil Muthuswamy, Paolo Bonzini, Thomas Huth,
	Daniel P. Berrangé, Wainer dos Santos Moschetta,
	Marc-André Lureau, Alex Bennée, Beraldo Leal

On 24/6/23 16:22, Philippe Mathieu-Daudé wrote:

> Philippe Mathieu-Daudé (2):
>    docs/devel/testing: Update the 'Docker Debugging' section
>    accel: Re-enable WHPX cross-build on case sensitive filesystems
> 
>   docs/devel/testing.rst           | 2 +-
>   meson.build                      | 4 ++--
>   target/i386/whpx/whpx-internal.h | 4 ++--
>   target/i386/whpx/whpx-all.c      | 4 ++--
>   4 files changed, 7 insertions(+), 7 deletions(-)

Series queued.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-06-28 12:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-24 14:22 [PATCH 0/2] accel: Re-enable WHPX cross-build on case sensitive filesystems Philippe Mathieu-Daudé
2023-06-24 14:22 ` [PATCH 1/2] docs/devel/testing: Update the 'Docker Debugging' section Philippe Mathieu-Daudé
2023-06-26  8:30   ` Daniel P. Berrangé
2023-06-24 14:22 ` [PATCH 2/2] accel: Re-enable WHPX cross-build on case sensitive filesystems Philippe Mathieu-Daudé
2023-06-26  8:30   ` Daniel P. Berrangé
2023-06-28 12:01 ` [PATCH 0/2] " Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).