From 93bfef4c6e4b23caea9d51e1099d06433d8835a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cr=C3=ADstian=20Viana?= Date: Wed, 30 May 2012 00:35:51 -0300 Subject: Allow machines to configure the QEMU_VERSION that's exposed via hardware MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Anthony Liguori --- hw/scsi-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/scsi-bus.c') diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c index 187bc903c1..14e2f730b8 100644 --- a/hw/scsi-bus.c +++ b/hw/scsi-bus.c @@ -417,7 +417,7 @@ static bool scsi_target_emulate_inquiry(SCSITargetReq *r) r->buf[7] = 0x10 | (r->req.bus->info->tcq ? 0x02 : 0); /* Sync, TCQ. */ memcpy(&r->buf[8], "QEMU ", 8); memcpy(&r->buf[16], "QEMU TARGET ", 16); - strncpy((char *) &r->buf[32], QEMU_VERSION, 4); + pstrcpy((char *) &r->buf[32], 4, qemu_get_version()); } return true; } -- cgit v1.2.3