From patchwork Tue Mar 20 20:59:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Cr=C3=ADstian_Viana?= X-Patchwork-Id: 147840 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E5FFEB6EF1 for ; Wed, 21 Mar 2012 08:00:46 +1100 (EST) Received: from localhost ([::1]:41683 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SA6Ae-0008Jm-E5 for incoming@patchwork.ozlabs.org; Tue, 20 Mar 2012 17:00:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SA6AV-0008J6-TH for qemu-devel@nongnu.org; Tue, 20 Mar 2012 17:00:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SA6AU-0005hm-0T for qemu-devel@nongnu.org; Tue, 20 Mar 2012 17:00:35 -0400 Received: from e24smtp04.br.ibm.com ([32.104.18.25]:49679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SA6AT-0005hP-LR for qemu-devel@nongnu.org; Tue, 20 Mar 2012 17:00:33 -0400 Received: from /spool/local by e24smtp04.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 20 Mar 2012 18:00:25 -0300 Received: from d24dlp01.br.ibm.com (9.18.248.204) by e24smtp04.br.ibm.com (10.172.0.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 20 Mar 2012 18:00:23 -0300 Received: from d24relay02.br.ibm.com (d24relay02.br.ibm.com [9.13.184.26]) by d24dlp01.br.ibm.com (Postfix) with ESMTP id 73C52352004C for ; Tue, 20 Mar 2012 18:00:22 -0300 (BRT) Received: from d24av04.br.ibm.com (d24av04.br.ibm.com [9.8.31.97]) by d24relay02.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q2KL0Fro31195530 for ; Tue, 20 Mar 2012 18:00:15 -0300 Received: from d24av04.br.ibm.com (loopback [127.0.0.1]) by d24av04.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q2KJ0AIi021619 for ; Tue, 20 Mar 2012 16:00:11 -0300 Received: from jellybean.br.ibm.com (jellybean.br.ibm.com [9.18.239.196]) by d24av04.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q2KJ0AS1021616; Tue, 20 Mar 2012 16:00:10 -0300 From: =?UTF-8?q?Cr=C3=ADstian=20Viana?= To: qemu-devel@nongnu.org Date: Tue, 20 Mar 2012 17:59:49 -0300 Message-Id: <1332277190-14477-1-git-send-email-vianac@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.8.5 MIME-Version: 1.0 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12032021-8936-0000-0000-0000063E6ACF X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 32.104.18.25 Cc: aliguori@us.ibm.com, =?UTF-8?q?Cr=C3=ADstian=20Viana?= Subject: [Qemu-devel] [PATCH v2 1/2] Force timedrift=none on previous machines X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The current value for the -rtc timedrift option is none. This patch makes sure that the old machines configuration will work the same way even after that option changes its default value. Signed-off-by: Crístian Viana --- hw/pc_piix.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 3f99f9a..08255b5 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -386,6 +386,10 @@ static QEMUMachine pc_machine_v1_0 = { .driver = "isa-fdc", .property = "check_media_rate", .value = "off", + }, { + .driver = "mc146818rtc", + .property = "lost_tick_policy", + .value = "none", }, { /* end of list */ } }, @@ -405,6 +409,10 @@ static QEMUMachine pc_machine_v0_15 = { .driver = "isa-fdc", .property = "check_media_rate", .value = "off", + }, { + .driver = "mc146818rtc", + .property = "lost_tick_policy", + .value = "none", }, { /* end of list */ } }, @@ -449,6 +457,10 @@ static QEMUMachine pc_machine_v0_14 = { .driver = "pc-sysfw", .property = "rom_only", .value = stringify(1), + }, { + .driver = "mc146818rtc", + .property = "lost_tick_policy", + .value = "none", }, { /* end of list */ } }, @@ -505,6 +517,10 @@ static QEMUMachine pc_machine_v0_13 = { .driver = "pc-sysfw", .property = "rom_only", .value = stringify(1), + }, { + .driver = "mc146818rtc", + .property = "lost_tick_policy", + .value = "none", }, { /* end of list */ } }, @@ -565,6 +581,10 @@ static QEMUMachine pc_machine_v0_12 = { .driver = "pc-sysfw", .property = "rom_only", .value = stringify(1), + }, { + .driver = "mc146818rtc", + .property = "lost_tick_policy", + .value = "none", }, { /* end of list */ } } @@ -633,6 +653,10 @@ static QEMUMachine pc_machine_v0_11 = { .driver = "pc-sysfw", .property = "rom_only", .value = stringify(1), + }, { + .driver = "mc146818rtc", + .property = "lost_tick_policy", + .value = "none", }, { /* end of list */ } } @@ -713,6 +737,10 @@ static QEMUMachine pc_machine_v0_10 = { .driver = "pc-sysfw", .property = "rom_only", .value = stringify(1), + }, { + .driver = "mc146818rtc", + .property = "lost_tick_policy", + .value = "none", }, { /* end of list */ } }, @@ -728,6 +756,10 @@ static QEMUMachine isapc_machine = { .driver = "pc-sysfw", .property = "rom_only", .value = stringify(1), + }, { + .driver = "mc146818rtc", + .property = "lost_tick_policy", + .value = "none", }, { /* end of list */ } }, @@ -740,6 +772,13 @@ static QEMUMachine xenfv_machine = { .init = pc_xen_hvm_init, .max_cpus = HVM_MAX_VCPUS, .default_machine_opts = "accel=xen", + .compat_props = (GlobalProperty[]) { + { + .driver = "mc146818rtc", + .property = "lost_tick_policy", + .value = "none", + }, + { /* end of list */ } }; #endif