diff options
author | Eduardo Habkost | 2016-04-09 21:42:44 +0200 |
---|---|---|
committer | Eduardo Habkost | 2016-05-23 18:19:36 +0200 |
commit | d494352c2f7818aeba184a8ef757569083740bb2 (patch) | |
tree | a5253d61883ce7066770c0b3d3d0f8a79b73ec4d /include/qemu | |
parent | target-i386: kvm: Use X86XSaveArea struct for xsave save/load (diff) | |
download | qemu-d494352c2f7818aeba184a8ef757569083740bb2.tar.gz qemu-d494352c2f7818aeba184a8ef757569083740bb2.tar.xz qemu-d494352c2f7818aeba184a8ef757569083740bb2.zip |
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 'include/qemu')
-rw-r--r-- | include/qemu/osdep.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 994bfa023a..693769403f 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -327,6 +327,15 @@ static inline void qemu_timersub(const struct timeval *val1, void qemu_set_cloexec(int fd); +/* 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+" + /* QEMU "hardware version" setting. Used to replace code that exposed * QEMU_VERSION to guests in the past and need to keep compatibility. * Do not use qemu_hw_version() in new code. |