[PATCH] configure: Do not intent to build WHPX on 32-bit host

Philippe Mathieu-Daudé posted 1 patch 3 years, 7 months ago
Test docker-quick@centos7 failed
Test docker-mingw@fedora failed
Test checkpatch failed
Test FreeBSD failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200909182449.360472-1-f4bug@amsat.org
There is a newer version of this series
configure | 3 +++
1 file changed, 3 insertions(+)
[PATCH] configure: Do not intent to build WHPX on 32-bit host
Posted by Philippe Mathieu-Daudé 3 years, 7 months ago
Hyper-V is available on 64-bit versions of Windows,
do not try to build its support on 32-bit versions.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 configure | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/configure b/configure
index 4231d56bcc0..4bd08f5469b 100755
--- a/configure
+++ b/configure
@@ -2989,6 +2989,9 @@ if test "$whpx" != "no" ; then
         fi
         whpx="no"
     fi
+    if test "$whpx" = "yes" && test "$ARCH" = "i386"; then
+      error_exit "WHPX requires 64-bit host"
+    fi
 fi
 
 ##########################################
-- 
2.26.2

Re: [PATCH] configure: Do not intent to build WHPX on 32-bit host
Posted by Thomas Huth 3 years, 7 months ago
On 09/09/2020 20.24, Philippe Mathieu-Daudé wrote:
> Hyper-V is available on 64-bit versions of Windows,
> do not try to build its support on 32-bit versions.
> 
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>  configure | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/configure b/configure
> index 4231d56bcc0..4bd08f5469b 100755
> --- a/configure
> +++ b/configure
> @@ -2989,6 +2989,9 @@ if test "$whpx" != "no" ; then
>          fi
>          whpx="no"
>      fi
> +    if test "$whpx" = "yes" && test "$ARCH" = "i386"; then
> +      error_exit "WHPX requires 64-bit host"
> +    fi
>  fi

I think you should also add a check to the MINGW32 case (see commit
e7a222aeb813a) to prevent that the automatic detection kicks in (so that
you would end up with this error message even if you did not specify
--enable-whpx)

 Thomas


Re: [PATCH] configure: Do not intent to build WHPX on 32-bit host
Posted by Stefan Weil 3 years, 7 months ago
Am 09.09.20 um 20:40 schrieb Thomas Huth:

> On 09/09/2020 20.24, Philippe Mathieu-Daudé wrote:
>> Hyper-V is available on 64-bit versions of Windows,
>> do not try to build its support on 32-bit versions.
>>
>> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
>> ---
>>  configure | 3 +++
>>  1 file changed, 3 insertions(+)
>>
>> diff --git a/configure b/configure
>> index 4231d56bcc0..4bd08f5469b 100755
>> --- a/configure
>> +++ b/configure
>> @@ -2989,6 +2989,9 @@ if test "$whpx" != "no" ; then
>>          fi
>>          whpx="no"
>>      fi
>> +    if test "$whpx" = "yes" && test "$ARCH" = "i386"; then
>> +      error_exit "WHPX requires 64-bit host"
>> +    fi
>>  fi
> I think you should also add a check to the MINGW32 case (see commit
> e7a222aeb813a) to prevent that the automatic detection kicks in (so that
> you would end up with this error message even if you did not specify
> --enable-whpx)
>
>  Thomas
>

Yes, that's definitely required. The automatic detection currently
enables WHPX for 32 bit builds, too.

Stefan



RE: [EXTERNAL] Re: [PATCH] configure: Do not intent to build WHPX on 32-bit host
Posted by Sunil Muthuswamy 3 years, 7 months ago
Signed-off-by: Sunil Muthuswamy <sunilmut@microsoft.com>

> Am 09.09.20 um 20:40 schrieb Thomas Huth:
> 
> > On 09/09/2020 20.24, Philippe Mathieu-Daudé wrote:
> >> Hyper-V is available on 64-bit versions of Windows,
> >> do not try to build its support on 32-bit versions.
> >>
> >> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> >> ---
> >>  configure | 3 +++
> >>  1 file changed, 3 insertions(+)
> >>
> >> diff --git a/configure b/configure
> >> index 4231d56bcc0..4bd08f5469b 100755
> >> --- a/configure
> >> +++ b/configure
> >> @@ -2989,6 +2989,9 @@ if test "$whpx" != "no" ; then
> >>          fi
> >>          whpx="no"
> >>      fi
> >> +    if test "$whpx" = "yes" && test "$ARCH" = "i386"; then
> >> +      error_exit "WHPX requires 64-bit host"
> >> +    fi
> >>  fi
> > I think you should also add a check to the MINGW32 case (see commit
> > e7a222aeb813a) to prevent that the automatic detection kicks in (so that
> > you would end up with this error message even if you did not specify
> > --enable-whpx)
> >
> >  Thomas
> >
> 
> Yes, that's definitely required. The automatic detection currently
> enables WHPX for 32 bit builds, too.
> 
> Stefan
> 

Re: [PATCH] configure: Do not intent to build WHPX on 32-bit host
Posted by Paolo Bonzini 3 years, 7 months ago
On 09/09/20 20:24, Philippe Mathieu-Daudé wrote:
> Hyper-V is available on 64-bit versions of Windows,
> do not try to build its support on 32-bit versions.
> 
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>  configure | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/configure b/configure
> index 4231d56bcc0..4bd08f5469b 100755
> --- a/configure
> +++ b/configure
> @@ -2989,6 +2989,9 @@ if test "$whpx" != "no" ; then
>          fi
>          whpx="no"
>      fi
> +    if test "$whpx" = "yes" && test "$ARCH" = "i386"; then
> +      error_exit "WHPX requires 64-bit host"
> +    fi
>  fi
>  
>  ##########################################
> 

Queued, thanks.

Paolo