diff mbox

[v5,2/3] Force driftfix=none on previous machines

Message ID 1340733111-9166-2-git-send-email-vianac@linux.vnet.ibm.com
State New
Headers show

Commit Message

Crístian Viana June 26, 2012, 5:51 p.m. UTC
The current value for the -rtc driftfix 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 <vianac@linux.vnet.ibm.com>
---
 hw/pc_piix.c |    4 ++++
 1 file changed, 4 insertions(+)

Comments

Anthony Liguori July 11, 2012, 5:53 p.m. UTC | #1
Crístian Viana <vianac@linux.vnet.ibm.com> writes:

> The current value for the -rtc driftfix 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 <vianac@linux.vnet.ibm.com>

Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>

Regards,

Anthony Liguori

> ---
>  hw/pc_piix.c |    4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/hw/pc_piix.c b/hw/pc_piix.c
> index eae258c..2658ec2 100644
> --- a/hw/pc_piix.c
> +++ b/hw/pc_piix.c
> @@ -379,6 +379,10 @@ static QEMUMachine pc_machine_v1_1 = {
>              .driver   = TYPE_USB_DEVICE,\
>              .property = "full-path",\
>              .value    = "no",\
> +        },{\
> +            .driver   = "mc146818rtc",\
> +            .property = "lost_tick_policy",\
> +            .value    = "discard",\
>          }
>  
>  static QEMUMachine pc_machine_v1_0 = {
> -- 
> 1.7.9.5
diff mbox

Patch

diff --git a/hw/pc_piix.c b/hw/pc_piix.c
index eae258c..2658ec2 100644
--- a/hw/pc_piix.c
+++ b/hw/pc_piix.c
@@ -379,6 +379,10 @@  static QEMUMachine pc_machine_v1_1 = {
             .driver   = TYPE_USB_DEVICE,\
             .property = "full-path",\
             .value    = "no",\
+        },{\
+            .driver   = "mc146818rtc",\
+            .property = "lost_tick_policy",\
+            .value    = "discard",\
         }
 
 static QEMUMachine pc_machine_v1_0 = {