From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Juergen Gross <jgross@suse.com>,
xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org
Cc: sstabellini@kernel.org, david.vrabel@citrix.com
Subject: Re: [PATCH v3] xen: add steal_clock support on x86
Date: Thu, 19 May 2016 09:43:22 -0400 [thread overview]
Message-ID: <573DC2FA.3080008@oracle.com> (raw)
In-Reply-To: <1463664367-7675-1-git-send-email-jgross@suse.com>
On 05/19/2016 09:26 AM, Juergen Gross wrote:
> The pv_time_ops structure contains a function pointer for the
> "steal_clock" functionality used only by KVM and Xen on ARM. Xen on x86
> uses its own mechanism to account for the "stolen" time a thread wasn't
> able to run due to hypervisor scheduling.
>
> Add support in Xen arch independent time handling for this feature by
> moving it out of the arm arch into drivers/xen and remove the x86 Xen
> hack.
>
> Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
I think this also needs to be acked by (or at least copied to) generic
Linux maintainers.
> ---
> arch/arm/xen/enlighten.c | 17 ++---------------
> arch/x86/xen/time.c | 44 ++------------------------------------------
> drivers/xen/time.c | 20 ++++++++++++++++++++
> include/linux/kernel_stat.h | 1 -
> include/xen/xen-ops.h | 1 +
> kernel/sched/cputime.c | 10 ----------
> 6 files changed, 25 insertions(+), 68 deletions(-)
...
> }
> diff --git a/drivers/xen/time.c b/drivers/xen/time.c
> index 7107842..2257b66 100644
> --- a/drivers/xen/time.c
> +++ b/drivers/xen/time.c
> @@ -6,6 +6,7 @@
> #include <linux/math64.h>
> #include <linux/gfp.h>
>
> +#include <asm/paravirt.h>
> #include <asm/xen/hypervisor.h>
> #include <asm/xen/hypercall.h>
>
> @@ -75,6 +76,15 @@ bool xen_vcpu_stolen(int vcpu)
> return per_cpu(xen_runstate, vcpu).state == RUNSTATE_runnable;
> }
(Unrelated to this patch.) Should this include RUNSTATE_offline as well?
-boris
next prev parent reply other threads:[~2016-05-19 13:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-19 13:26 [PATCH v3] xen: add steal_clock support on x86 Juergen Gross
2016-05-19 13:43 ` Boris Ostrovsky [this message]
2016-05-19 13:55 ` Juergen Gross
2016-05-19 17:15 ` Stefano Stabellini
2016-05-19 17:17 ` Stefano Stabellini
2016-05-20 7:17 ` Juergen Gross
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=573DC2FA.3080008@oracle.com \
--to=boris.ostrovsky@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=jgross@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.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).