From 93bfef4c6e4b23caea9d51e1099d06433d8835a4 Mon Sep 17 00:00:00 2001 From: Crístian Viana 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 --- vl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vl.c') diff --git a/vl.c b/vl.c index 204d85bcf6..1329c30e6a 100644 --- a/vl.c +++ b/vl.c @@ -3206,6 +3206,10 @@ int main(int argc, char **argv, char **envp) } loc_set_none(); + if (machine->hw_version) { + qemu_set_version(machine->hw_version); + } + /* Init CPU def lists, based on config * - Must be called after all the qemu_read_config_file() calls * - Must be called before list_cpus() -- cgit 1.4.1