Re: [Xen-devel] [PATCH v9 0/5] xen/arm/arm64: CONFIG_PARAVIRT andstolen ticks accounting

From: Zoltan HERPAI
Date: Thu Jan 09 2014 - 15:00:41 EST




Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> wrote:

>Hi all,
>this patch series introduces stolen ticks accounting for Xen on ARM and
>ARM64.
>Stolen ticks are clocksource ticks that have been "stolen" from the cpu,
>typically because Linux is running in a virtual machine and the vcpu has
>been descheduled.
>To account for these ticks we introduce CONFIG_PARAVIRT and pv_time_ops
>so that we can make use of:
>
>kernel/sched/cputime.c:steal_account_process_tick
>
>
>Changes in v9:
>- added back missing new files from patches;
>- fix compilation on avr32 (remove patch #5, revert to previous version
> of patch #2).
>
>
>
>Stefano Stabellini (5):
> xen: move xen_setup_runstate_info and get_runstate_snapshot to drivers/xen/time.c
> kernel: missing include in cputime.c
> arm: introduce CONFIG_PARAVIRT, PARAVIRT_TIME_ACCOUNTING and pv_time_ops
> arm64: introduce CONFIG_PARAVIRT, PARAVIRT_TIME_ACCOUNTING and pv_time_ops
> xen/arm: account for stolen ticks
>
> arch/arm/Kconfig | 20 ++++++++
> arch/arm/include/asm/paravirt.h | 20 ++++++++
> arch/arm/kernel/Makefile | 2 +
> arch/arm/kernel/paravirt.c | 25 ++++++++++
> arch/arm/xen/enlighten.c | 21 +++++++++
> arch/arm64/Kconfig | 20 ++++++++
> arch/arm64/include/asm/paravirt.h | 20 ++++++++
> arch/arm64/kernel/Makefile | 1 +
> arch/arm64/kernel/paravirt.c | 25 ++++++++++
> arch/ia64/xen/time.c | 48 +++----------------
> arch/x86/xen/time.c | 76 +------------------------------
> drivers/xen/Makefile | 2 +-
> drivers/xen/time.c | 91 +++++++++++++++++++++++++++++++++++++
> include/xen/xen-ops.h | 5 ++
> kernel/sched/cputime.c | 3 ++
> 15 files changed, 261 insertions(+), 118 deletions(-)
> create mode 100644 arch/arm/include/asm/paravirt.h
> create mode 100644 arch/arm/kernel/paravirt.c
> create mode 100644 arch/arm64/include/asm/paravirt.h
> create mode 100644 arch/arm64/kernel/paravirt.c
> create mode 100644 drivers/xen/time.c
>
>
>git://git.kernel.org/pub/scm/linux/kernel/git/sstabellini/xen.git lost_ticks_9
>
>
>Cheers,
>
>Stefano
>
>_______________________________________________
>Xen-devel mailing list
>Xen-devel@xxxxxxxxxxxxx
>http://lists.xen.org/xen-devel
èº{.nÇ+‰·Ÿ®‰­†+%ŠËlzwm…ébëæìr¸›zX§»®w¥Š{ayºÊÚë,j­¢f£¢·hš‹àz¹®w¥¢¸ ¢·¦j:+v‰¨ŠwèjØm¶Ÿÿ¾«‘êçzZ+ƒùšŽŠÝj"ú!¶iO•æ¬z·švØ^¶m§ÿðà nÆàþY&—