All of
 help / color / mirror / Atom feed
* [PATCH v3] docs/about: Update the support statement for Windows
@ 2022-05-13  6:39 Thomas Huth
  0 siblings, 0 replies; only message in thread
From: Thomas Huth @ 2022-05-13  6:39 UTC (permalink / raw)
  To: qemu-devel, Stefan Weil; +Cc: Daniel P . Berrangé, Yonggang Luo

Our support statement for Windows currently talks about "Vista / Server
2008" - which is related to the API of Windows, and this is not easy
to understand for the non-technical users. Additionally, glib sets the
_WIN32_WINNT macro to 0x0601 already, which indicates the Windows 7 API,
so QEMU effectively depends on the Windows 7 API, too.

Thus let's bump the _WIN32_WINNT setting in QEMU to the same level as
glib uses and adjust our support statement in the documentation to
something similar that we're using for Linux and the *BSD systems
(i.e. only the two most recent versions), which should hopefully be
easier to understand for the users now.

And since we're nowadays also compile-testing QEMU with MSYS2 on Windows
itself, I think we could mention this build environment here, too.

Reviewed-by: Daniel P. Berrangé <>
Reviewed-by: Stefan Weil <> 
Signed-off-by: Thomas Huth <>
 - Add words about the dependency between glib and _WIN32_WINNT
 - Addded Reviewed-bys from Daniel and Stefan (if you don't like
   the new comments from v3, please complain!)

 docs/about/build-platforms.rst | 14 +++++++++-----
 configure                      |  2 ++
 include/qemu/osdep.h           |  2 +-
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/docs/about/build-platforms.rst b/docs/about/build-platforms.rst
index e9163ba556..1958edb430 100644
--- a/docs/about/build-platforms.rst
+++ b/docs/about/build-platforms.rst
@@ -86,11 +86,15 @@ similar versions.
-The project supports building with current versions of the MinGW toolchain,
-hosted on Linux (Debian/Fedora).
-The version of the Windows API that's currently targeted is Vista / Server
+The project aims to support the two most recent versions of Windows that are
+still supported by the vendor. The minimum Windows API that is currently
+targeted is "Windows 7", so theoretically the QEMU binaries can still be run
+on older versions of Windows, too. However, such old versions of Windows are
+not tested anymore, so it is recommended to use one of the latest versions of
+Windows instead.
+The project supports building QEMU with current versions of the MinGW
+toolchain, either hosted on Linux (Debian/Fedora) or via MSYS2 on Windows.
 .. _Homebrew:
 .. _MacPorts:
diff --git a/configure b/configure
index e77b29b093..443d1741bf 100755
--- a/configure
+++ b/configure
@@ -1490,6 +1490,8 @@ fi
 # glib support probe
+# When bumping glib_req_ver, please check also whether we should increase
+# the _WIN32_WINNT setting in osdep.h according to the value from glib
 if test "$modules" = yes; then
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
index 1c1e7eca98..a72e99db85 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -75,7 +75,7 @@ QEMU_EXTERN_C int daemon(int, int);
 #ifdef _WIN32
 /* as defined in sdkddkver.h */
 #ifndef _WIN32_WINNT
-#define _WIN32_WINNT 0x0600 /* Vista */
+#define _WIN32_WINNT 0x0601 /* Windows 7 API (should be in sync with glib) */
 /* reduces the number of implicitly included headers */
 #ifndef WIN32_LEAN_AND_MEAN

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-13  6:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-13  6:39 [PATCH v3] docs/about: Update the support statement for Windows Thomas Huth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.