From aa3d46ef83965a26855c983affe42c5a16074a61 Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Sat, 24 Feb 2018 03:16:32 -0500 Subject: [PATCH] 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. Backports commit d494352c2f7818aeba184a8ef757569083740bb2 from qemu --- qemu/include/qemu/osdep.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qemu/include/qemu/osdep.h b/qemu/include/qemu/osdep.h index 8bdf4069..c3c61fe8 100644 --- a/qemu/include/qemu/osdep.h +++ b/qemu/include/qemu/osdep.h @@ -207,4 +207,13 @@ void qemu_anon_ram_free(void *ptr, size_t size); */ unsigned long qemu_getauxval(unsigned long type); +/* 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. + */ +#define QEMU_HW_VERSION "2.5+" + #endif