summaryrefslogtreecommitdiffstats
path: root/hw/ide/core.c
diff options
context:
space:
mode:
authorCrístian Viana2012-05-30 05:35:51 +0200
committerAnthony Liguori2012-06-19 20:36:56 +0200
commit93bfef4c6e4b23caea9d51e1099d06433d8835a4 (patch)
tree89ede1eb2d2c290b991c7e54068ca8f37d594bbd /hw/ide/core.c
parentAdd PIIX4 properties to control PM system states. (diff)
downloadqemu-93bfef4c6e4b23caea9d51e1099d06433d8835a4.tar.gz
qemu-93bfef4c6e4b23caea9d51e1099d06433d8835a4.tar.xz
qemu-93bfef4c6e4b23caea9d51e1099d06433d8835a4.zip
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>
Diffstat (limited to 'hw/ide/core.c')
-rw-r--r--hw/ide/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ide/core.c b/hw/ide/core.c
index f28229a193..71d4d7732a 100644
--- a/hw/ide/core.c
+++ b/hw/ide/core.c
@@ -1995,7 +1995,7 @@ int ide_init_drive(IDEState *s, BlockDriverState *bs, IDEDriveKind kind,
if (version) {
pstrcpy(s->version, sizeof(s->version), version);
} else {
- pstrcpy(s->version, sizeof(s->version), QEMU_VERSION);
+ pstrcpy(s->version, sizeof(s->version), qemu_get_version());
}
ide_reset(s);