summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2020-09-10 07:45:16 +0200
committerPaolo Bonzini2020-09-30 19:09:19 +0200
commit738c7236d17cd3b424f001e9ffbf6b9a482ad00a (patch)
treefb522696b52f16337c9bc2ed08b2d9bcad2a10f4 /configure
parentWHPX: vmware cpuid leaf for tsc and apic frequency (diff)
downloadqemu-738c7236d17cd3b424f001e9ffbf6b9a482ad00a.tar.gz
qemu-738c7236d17cd3b424f001e9ffbf6b9a482ad00a.tar.xz
qemu-738c7236d17cd3b424f001e9ffbf6b9a482ad00a.zip
configure: Do not intent to build WHPX on 32-bit host
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> Message-Id: <20200910054516.405777-1-f4bug@amsat.org> Reviewed-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index ecc8e90e8b..9e1989976f 100755
--- a/configure
+++ b/configure
@@ -2986,7 +2986,10 @@ fi
##########################################
# Windows Hypervisor Platform accelerator (WHPX) check
-if test "$whpx" != "no" ; then
+if test "$whpx" = "yes" && test "$ARCH" != "x86_64"; then
+ error_exit "WHPX requires 64-bit host"
+fi
+if test "$whpx" != "no" && test "$ARCH" = "x86_64"; then
if check_include "WinHvPlatform.h" && check_include "WinHvEmulation.h"; then
whpx="yes"
else