From: Anthony Liguori <aliguori@us.ibm.com>
To: "Crístian Viana" <vianac@linux.vnet.ibm.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/2] Change timedrift default value to slew
Date: Tue, 20 Mar 2012 15:05:00 -0500 [thread overview]
Message-ID: <4F68E2EC.9010309@us.ibm.com> (raw)
In-Reply-To: <1332272918-31746-2-git-send-email-vianac@linux.vnet.ibm.com>
On 03/20/2012 02:48 PM, Crístian Viana wrote:
> Windows 2008+ is very sensitive to missed ticks. The RTC is used by default as
> the time source. If time drift is not enabled, Windows is prone to
> blue screening.
>
> Signed-off-by: Crístian Viana<vianac@linux.vnet.ibm.com>
> ---
> vl.c | 13 ++++++++++++-
> 1 files changed, 12 insertions(+), 1 deletions(-)
>
> diff --git a/vl.c b/vl.c
> index 112b0e0..2c7cbf0 100644
> --- a/vl.c
> +++ b/vl.c
> @@ -550,11 +550,22 @@ static void configure_rtc(QemuOpts *opts)
>
> qdev_prop_register_global_list(slew_lost_ticks);
> } else if (!strcmp(value, "none")) {
> - /* discard is default */
> + /* do nothing */
> } else {
> fprintf(stderr, "qemu: invalid option value '%s'\n", value);
> exit(1);
> }
> + } else {
> + static GlobalProperty slew_lost_ticks[] = {
> + {
> + .driver = "mc146818rtc",
> + .property = "lost_tick_policy",
> + .value = "slew",
> + },
> + { /* end of list */ }
> + };
I think we just want to change:
hw/mc146818rtc.h:
DEFINE_PROP_LOSTTICKPOLICY("lost_tick_policy", RTCState,
lost_tick_policy, LOST_TICK_DISCARD),
I think we just need to change this to LOST_TICK_SLEW. This would effectively
change the default.
Regards,
Anthony Liguori
> + qdev_prop_register_global_list(slew_lost_ticks);
> }
> }
>
next prev parent reply other threads:[~2012-03-20 20:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-20 19:48 [Qemu-devel] [PATCH 1/2] Force timedrift=none on previous machines Crístian Viana
2012-03-20 19:48 ` [Qemu-devel] [PATCH 2/2] Change timedrift default value to slew Crístian Viana
2012-03-20 20:05 ` Anthony Liguori [this message]
2012-03-20 20:16 ` Crístian Viana
2012-03-20 20:31 ` Anthony Liguori
2012-03-20 20:46 ` Crístian Viana
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F68E2EC.9010309@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=vianac@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).