From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>,
KONRAD Frederic <fred.konrad@greensocs.com>
Cc: "Edgar Iglesias" <edgar.iglesias@xilinx.com>,
"Mark Burton" <mark.burton@greensocs.com>,
"QEMU Developers" <qemu-devel@nongnu.org>,
"Alistair Francis" <alistair.francis@xilinx.com>,
"Cédric Le Goater" <clg@kaod.org>
Subject: Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.
Date: Wed, 14 Jun 2017 13:54:16 +0200 [thread overview]
Message-ID: <d0a7ebb7-9f3d-5b3c-692e-344f4a980c05@redhat.com> (raw)
In-Reply-To: <CAFEAcA-pmVW-fnu6ZT=PeRcSf-U5UVsyYsJkzh2c_BFKDTU5kg@mail.gmail.com>
On 13/06/2017 12:33, Peter Maydell wrote:
>> For the migration maybe we can refresh the whole clock tree at the end
>> of the migration. Is that a good idea?
> That seems kind of awkward -- where would this code that did a
> clock tree refresh be? Also you're then reliant on all the
> callback functions registered to not actually do anything that
> affects device state when the refresh happens. It would be
> cleaner if the qemu-clk objects managed their own internal
> state migration (but can we do this without having to make
> them be Device objects rather than just objects ?).
>
> Cc'd Paolo who might have an opinion on these -- my opinion currently
> is mostly "this doesn't really look right" rather than knowing what
> the right approach is.
Same here. :)
I think the various bindings and rates could be refreshed as devices are
migrated. This assumes that the device migration order is okay
according to the clock tree, that is if you have three devices X/Y/Z and
five clocks a/b/c/d/e/f:
fixed-clock
| |
X:a X:b
| | \
Y:c Y:d Z:e
|
Z:f
you could do this:
- migrate X
- retrieve the PLL ratios for a and b's bound clocks (if the ratio
is variable, otherwise no need for this)
- in the post_load callback, bind a and b to the fixed-clock
(if the binding is variable, otherwise no need for this)
- migrate Y
- retrieve the PLL ratio for d's bound clocks (if the ratio
is variable, otherwise no need for this)
- in the post_load callback, bind c and d to a and b respectively
(if the binding is variable, otherwise no need for this)
- migrate Z
- in the post_load callback, bind e and f to b and d respectively
(if the binding is variable, otherwise no need for this)
Paolo
next prev parent reply other threads:[~2017-06-14 11:54 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-28 10:02 [Qemu-devel] [PATCH v3 00/10] Clock framework API fred.konrad
2017-02-28 10:02 ` [Qemu-devel] [PATCH v3 01/10] qemu-clk: introduce qemu-clk qom object fred.konrad
2017-02-28 10:02 ` [Qemu-devel] [PATCH v3 02/10] qemu-clk: allow to add a clock to a device fred.konrad
2017-02-28 10:02 ` [Qemu-devel] [PATCH v3 03/10] qemu-clk: allow to bind two clocks together fred.konrad
2017-02-28 10:02 ` [Qemu-devel] [PATCH v3 04/10] qemu-clk: introduce an init array to help the device construction fred.konrad
2017-02-28 10:03 ` [Qemu-devel] [PATCH v3 05/10] qdev-monitor: print the device's clock with info qtree fred.konrad
2017-02-28 10:03 ` [Qemu-devel] [PATCH v3 06/10] docs: add qemu-clock documentation fred.konrad
2017-06-15 15:44 ` Edgar E. Iglesias
2017-02-28 10:03 ` [Qemu-devel] [PATCH v3 07/10] introduce fixed-clock fred.konrad
2017-02-28 10:03 ` [Qemu-devel] [PATCH v3 08/10] introduce zynqmp_crf fred.konrad
2017-02-28 10:03 ` [Qemu-devel] [PATCH v3 09/10] zynqmp: add the zynqmp_crf to the platform fred.konrad
2017-02-28 10:03 ` [Qemu-devel] [PATCH v3 10/10] zynqmp: add reference clock fred.konrad
2017-05-24 7:35 ` [Qemu-devel] [PATCH v3 00/10] Clock framework API KONRAD Frederic
2017-06-06 15:18 ` Peter Maydell
2017-06-08 7:54 ` KONRAD Frederic
2017-06-13 10:33 ` Peter Maydell
2017-06-14 11:54 ` Paolo Bonzini [this message]
2017-06-14 13:10 ` KONRAD Frederic
2017-06-15 14:40 ` Peter Maydell
2017-06-15 14:49 ` Paolo Bonzini
2017-06-15 14:57 ` Edgar E. Iglesias
2017-06-15 15:04 ` Peter Maydell
2017-06-15 15:15 ` Edgar E. Iglesias
2017-06-15 15:38 ` KONRAD Frederic
2017-06-23 9:51 ` Peter Maydell
2017-06-23 12:38 ` KONRAD Frederic
2017-06-23 12:47 ` Peter Maydell
2017-06-23 13:07 ` KONRAD Frederic
2017-06-23 13:58 ` Peter Maydell
2017-06-27 7:04 ` KONRAD Frederic
2017-06-27 9:34 ` Peter Maydell
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=d0a7ebb7-9f3d-5b3c-692e-344f4a980c05@redhat.com \
--to=pbonzini@redhat.com \
--cc=alistair.francis@xilinx.com \
--cc=clg@kaod.org \
--cc=edgar.iglesias@xilinx.com \
--cc=fred.konrad@greensocs.com \
--cc=mark.burton@greensocs.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/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).