mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
Allow machines to configure the QEMU_VERSION that's exposed via hardware
QEMU exposes its version to the guest's hardware and in some cases that is wrong (e.g. Windows prints messages about driver updates when you switch the QEMU version). There is a new field now on the struct QEmuMachine, hw_version, which may contain the version that the specific machine should report. If that field is set, then that machine will report that version to the guest. Signed-off-by: Crístian Viana <vianac@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
459ae5ea5a
commit
93bfef4c6e
19 changed files with 62 additions and 25 deletions
|
@ -1247,7 +1247,8 @@ static int n8x0_atag_setup(void *p, int model)
|
|||
stw_raw(w ++, 24); /* u16 len */
|
||||
strcpy((void *) w, "hw-build"); /* char component[12] */
|
||||
w += 6;
|
||||
strcpy((void *) w, "QEMU " QEMU_VERSION); /* char version[12] */
|
||||
strcpy((void *) w, "QEMU ");
|
||||
pstrcat((void *) w, 12, qemu_get_version()); /* char version[12] */
|
||||
w += 6;
|
||||
|
||||
tag = (model == 810) ? "1.1.10-qemu" : "1.1.6-qemu";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue