From: Paolo Bonzini <pbonzini@redhat.com>
To: Lb peace <peaceustc@gmail.com>, qemu-devel@nongnu.org
Cc: stefanha@redhat.com, alex@alex.org.uk
Subject: Re: [Qemu-devel] [PATCH]Fix a error in mc146818rtc.c
Date: Wed, 02 Jul 2014 11:41:25 +0200 [thread overview]
Message-ID: <53B3D3C5.8040902@redhat.com> (raw)
In-Reply-To: <CANycmrqXg-W8ZJEii4fTod8MzkyE77bTGovOX0G5eVTCnV-vmg@mail.gmail.com>
Il 30/06/2014 21:53, Lb peace ha scritto:
> If you use hwclock in guest os ,you will find the result of hwclock
> isn't changed after changing host os's clock.
> I find this issue is generated in this patch:
>
> http://lists.gnu.org/archive/html/qemu-devel/2013-08/msg03353.html
> Before this patch,the result will be changed if you change host's clock.
> It makes use of the following codes in qemu-timer.c:
> if (now < last) {
> notifier_list_notify(&clock->reset_notifiers, &now);
> }
> It is useless if you register a QEMU_CLOCK_REALTIME's clock_reset_notifier,
> ---
> hw/timer/mc146818rtc.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/hw/timer/mc146818rtc.c b/hw/timer/mc146818rtc.c
> index df54546..821c27e 100644
> --- a/hw/timer/mc146818rtc.c
> +++ b/hw/timer/mc146818rtc.c
> @@ -879,7 +879,7 @@ static void rtc_realizefn(DeviceState *dev, Error
> **errp)
> check_update_timer(s);
>
> s->clock_reset_notifier.notify = rtc_notify_clock_reset;
> - qemu_clock_register_reset_notifier(QEMU_CLOCK_REALTIME,
> + qemu_clock_register_reset_notifier(rtc_clock,
> &s->clock_reset_notifier);
>
> s->suspend_notifier.notify = rtc_notify_suspend;
> --
>
The patch looks good, but it lacks your sign off.
Please read http://elinux.org/Developer_Certificate_Of_Origin and, if
you agree, reply to this email with this line:
Signed-off-by: Your Real Name <peaceustc@gmail.com>
(with "Your Real Name" replaced by your real name, of course).
Paolo
prev parent reply other threads:[~2014-07-02 9:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-30 19:53 [Qemu-devel] [PATCH]Fix a error in mc146818rtc.c Lb peace
2014-06-30 20:08 ` Alex Bligh
2014-07-01 1:12 ` Lb peace
2014-07-01 18:50 ` Alex Bligh
2014-07-02 8:29 ` Stefan Hajnoczi
2014-07-02 9:41 ` Paolo Bonzini [this message]
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=53B3D3C5.8040902@redhat.com \
--to=pbonzini@redhat.com \
--cc=alex@alex.org.uk \
--cc=peaceustc@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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).