From: Jeremy Fitzhardinge <jeremy@goop.org>
To: linux-ia64@vger.kernel.org
Subject: Re: [PATCH 24/29] ia64/pv_ops/xen: implement xen pv_time_ops.
Date: Fri, 18 Jul 2008 04:51:59 +0000 [thread overview]
Message-ID: <4880216F.6040900@goop.org> (raw)
In-Reply-To: <12162606623288-git-send-email-yamahata@valinux.co.jp>
Isaku Yamahata wrote:
> On Thu, Jul 17, 2008 at 07:21:37AM -0700, Jeremy Fitzhardinge wrote:
>
>> Isaku Yamahata wrote:
>>
>>> I had explained about that.
>>> I had considered that option. However my conclusion is not share
>>> he implementation because xen/ia64 timer interrupt isn't
>>> paravirtualized with VCPUOP_xxx hypercall. But xen/ia64 emulates
>>> ar.itm register. (ar.itm is interval time match register which triggers
>>> interrupt when interval time counter becomes same value)
>>>
>>> Since timer interruption is virtualized differently on xen/ia64,
>>> the different implementation is a natural consequence.
>>>
>> OK, that means the clockevent and clocksource part would be different.
>> But the runstate accounting should still be the same, no?
>>
>
> Unfortunately no. At first I had hoped so, but no.
> Looking consider_steal_time() which implements ia64 steal time
> accounting, I have no idea to share code cleanly with x86 steal time
> accounting, do_stolen_accounting().
>
So, my understanding from looking at your patch that the itc is somewhat
like the x86 tsc, in that it's not (necessarily) synchronized between
cpus. But unlike the tsc, the itc is always in nanoseconds, but you
don't get information from Xen about the current physical cpu's offset
from absolute system time. And that means you have the (rather dubious
looking) comparisons to test for large jumps in the itc which you try to
ignore.
If you had some way to determine the current itc offset, then you could
easily have an itc-based clocksource_read(), which would allow you to
use the x86 code for stolen time accounting. I don't know how easy that
would be to do.
J
next prev parent reply other threads:[~2008-07-18 4:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-17 2:10 [PATCH 24/29] ia64/pv_ops/xen: implement xen pv_time_ops Isaku Yamahata
2008-07-17 5:45 ` Jeremy Fitzhardinge
2008-07-17 6:11 ` Isaku Yamahata
2008-07-17 14:21 ` Jeremy Fitzhardinge
2008-07-18 2:17 ` Isaku Yamahata
2008-07-18 4:51 ` Jeremy Fitzhardinge [this message]
2008-07-18 16:28 ` Luck, Tony
2008-07-18 18:25 ` Jeremy Fitzhardinge
2008-07-18 22:44 ` Luck, Tony
2008-07-21 8:12 ` Avi Kivity
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=4880216F.6040900@goop.org \
--to=jeremy@goop.org \
--cc=linux-ia64@vger.kernel.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