aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2016-04-09 16:42:44 -0300
committerEduardo Habkost <ehabkost@redhat.com>2016-05-23 13:19:36 -0300
commitd494352c2f7818aeba184a8ef757569083740bb2 (patch)
treea5253d61883ce7066770c0b3d3d0f8a79b73ec4d /util
parent86cd2ea071b925d9fa231abb3e0f1ecfb5633f91 (diff)
osdep: Move default qemu_hw_version() value to a macro
The macro will be used by code that will stop calling qemu_hw_version() at runtime and just need a constant value. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'util')
-rw-r--r--util/osdep.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/util/osdep.c b/util/osdep.c
index d56d071111..9a7a439e13 100644
--- a/util/osdep.c
+++ b/util/osdep.c
@@ -44,14 +44,7 @@ extern int madvise(caddr_t, size_t, int);
static bool fips_enabled = false;
-/* 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+";
+static const char *hw_version = QEMU_HW_VERSION;
int socket_set_cork(int fd, int v)
{