From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Julien Grall <julien.grall@citrix.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
"Tim (Xen.org)" <tim@xen.org>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH v4 12/12] xen/arm: initialize virt_timer and phys_timer with the same values on all vcpus
Date: Wed, 1 May 2013 09:28:38 -0400 [thread overview]
Message-ID: <20130501132838.GA18884@phenom.dumpdata.com> (raw)
In-Reply-To: <1367402028.3142.665.camel@zakaz.uk.xensource.com>
On Wed, May 01, 2013 at 10:53:48AM +0100, Ian Campbell wrote:
> On Tue, 2013-04-30 at 17:37 +0100, Stefano Stabellini wrote:
> > > But then
> > > it ticks along at the same rate as phys time with no accounting for
> > > stolen or lost time etc? TBH I'm not even sure what stolen/lost time
> > > would be like for a clock which is supposed to be consistent across all
> > > VCPUs, or maybe that restriction is only for physical and hypervisor
> > > timers.
> >
> > Right, no accounting. I don't know how the lost time accounting would
> > look like either.
>
> I've added this to the ARM_TODO wiki.
>
> I wonder if the right answer, by analogy with PV time on x86, will be
> something like:
>
> Reading the ARM Physical timer == Raw read of x86 TSC, i.e. you get a
> raw host system time.
>
> Reading the ARM virtual timer == The x86 PV clock protocol (e.g. the
> tsc*factor+offset), i.e. you get a time source which does not include
> stolen time and which ticks only when the guest is running (I think this
> is the x86 semantics, not 100% sure though).
>
> We also need to figure out whether we expect virtual time to remain in
> step across the domain -- if yes (this is what the physical timers do
> for example) then we need to understand what this means when VCPU0 runs
> but VCPU1 doesn't. I don't know what x86 does here...
It uses the VCPU_vcpuruntime to figure out whether it was "offline" and add
that to the 'stolen' or what not delta.
The arch/x86/xen/time.c has do_stolen_accounting which does some of this.
>
> Ideally we would have a scheme which didn't require us to emulate either
> virtual or physical time in the common case (e.g. migration among like
> systems).
>
> Ian.
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>
prev parent reply other threads:[~2013-05-01 13:28 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-26 15:26 [PATCH v4 0/12] xen/arm: guest SMP support Stefano Stabellini
2013-04-26 15:28 ` [PATCH v4 01/12] xen/arm: basic PSCI support, implement cpu_on and cpu_off Stefano Stabellini
2013-04-26 15:38 ` Ian Campbell
2013-04-29 9:15 ` Ian Campbell
2013-04-26 15:28 ` [PATCH v4 02/12] xen/arm: allocate secondaries dom0 vcpus Stefano Stabellini
2013-04-26 16:22 ` Ian Campbell
2013-04-26 15:28 ` [PATCH v4 03/12] xen: move for_each_set_bit to xen/bitops.h Stefano Stabellini
2013-04-26 16:16 ` Keir Fraser
2013-04-26 15:28 ` [PATCH v4 04/12] xen/arm: support for guest SGI Stefano Stabellini
2013-04-26 16:34 ` Ian Campbell
2013-04-28 14:26 ` Stefano Stabellini
2013-04-29 9:16 ` Ian Campbell
2013-04-29 15:47 ` Stefano Stabellini
2013-04-29 16:52 ` Ian Campbell
2013-04-29 17:48 ` Stefano Stabellini
2013-04-29 17:51 ` Stefano Stabellini
2013-04-30 8:40 ` Ian Campbell
2013-04-30 15:32 ` Stefano Stabellini
2013-04-30 15:41 ` Ian Campbell
2013-04-30 16:34 ` Stefano Stabellini
2013-04-26 15:28 ` [PATCH v4 05/12] xen/arm: implement arch_vmap_virt_end Stefano Stabellini
2013-04-26 16:37 ` Ian Campbell
2013-04-26 15:28 ` [PATCH v4 06/12] xen/arm: compile and initialize vmap Stefano Stabellini
2013-04-26 16:50 ` Ian Campbell
2013-04-27 14:55 ` Stefano Stabellini
2013-04-29 9:15 ` Ian Campbell
2013-04-29 16:20 ` Stefano Stabellini
2013-04-26 15:28 ` [PATCH v4 07/12] xen/arm: implement map_domain_page_global and unmap_domain_page_global Stefano Stabellini
2013-04-26 15:28 ` [PATCH v4 08/12] xen: move VCPUOP_register_vcpu_info to common code Stefano Stabellini
2013-04-26 16:17 ` Keir Fraser
2013-04-26 15:28 ` [PATCH v4 09/12] xen/arm: support VCPUOP_register_vcpu_info Stefano Stabellini
2013-04-26 16:17 ` Keir Fraser
2013-04-30 14:59 ` Ian Campbell
2013-04-26 15:28 ` [PATCH v4 10/12] xen/arm: send IPIs to inject irqs into guest vcpus running on different pcpus Stefano Stabellini
2013-04-26 15:28 ` [PATCH v4 11/12] xen/arm: run the vtimer Xen timers on the pcpu the vcpu is running on Stefano Stabellini
2013-04-29 14:06 ` Ian Campbell
2013-04-26 15:28 ` [PATCH v4 12/12] xen/arm: initialize virt_timer and phys_timer with the same values on all vcpus Stefano Stabellini
2013-04-29 14:17 ` Ian Campbell
2013-04-29 16:14 ` Stefano Stabellini
2013-04-30 8:38 ` Ian Campbell
2013-04-30 16:37 ` Stefano Stabellini
2013-05-01 9:53 ` Ian Campbell
2013-05-01 10:28 ` Stefano Stabellini
2013-05-01 10:36 ` Ian Campbell
2013-05-01 11:15 ` Stefano Stabellini
2013-05-01 11:26 ` Ian Campbell
2013-05-01 13:28 ` Konrad Rzeszutek Wilk [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=20130501132838.GA18884@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=Ian.Campbell@citrix.com \
--cc=julien.grall@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.