diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/osdep.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/util/osdep.c b/util/osdep.c index 80c6bfeeb2..534b51147c 100644 --- a/util/osdep.c +++ b/util/osdep.c @@ -52,7 +52,14 @@ extern int madvise(caddr_t, size_t, int); static bool fips_enabled = false; -static const char *hw_version = QEMU_VERSION; +/* Starting on QEMU 2.5, qemu_hw_version() returns "2.5+" by default + * instead of QEMU_VERSION, so setting hw_version on MachineClass + * is no longer mandatory. + * + * Do NOT change this string, or it will break compatibility on all + * machine classes that don't set hw_version. + */ +static const char *hw_version = "2.5+"; int socket_set_cork(int fd, int v) { |