public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Vitaly Kuznetsov <vkuznets@redhat.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: David Vrabel <david.vrabel@citrix.com>,
	Stefano Stabellini <stefano.stabellini@citrix.com>,
	xen-devel@lists.xensource.com, linux@arm.linux.org.uk,
	Ian Campbell <Ian.Campbell@citrix.com>,
	arnd@arndb.de, marc.zyngier@arm.com, catalin.marinas@arm.com,
	konrad.wilk@oracle.com, will.deacon@arm.com,
	linux-kernel@vger.kernel.org, olof@lixom.net,
	linux-arm-kernel@lists.infradead.org, geoff@infradead.org,
	takahiro.akashi@linaro.org
Subject: Re: [PATCH v11 5/5] xen/arm: account for stolen ticks
Date: Fri, 06 Nov 2015 14:25:40 +0100	[thread overview]
Message-ID: <87egg3p8dn.fsf@vitty.brq.redhat.com> (raw)
In-Reply-To: <20151106115916.GA23038@leverpostej> (Mark Rutland's message of "Fri, 6 Nov 2015 11:59:16 +0000")

Mark Rutland <mark.rutland@arm.com> writes:

> On Fri, Nov 06, 2015 at 11:41:49AM +0000, David Vrabel wrote:
>> On 06/11/15 11:39, Stefano Stabellini wrote:
>> > On Thu, 5 Nov 2015, Mark Rutland wrote:
>> >>>  static void xen_percpu_init(void)
>> >>>  {
>> >>>  	struct vcpu_register_vcpu_info info;
>> >>> @@ -104,6 +120,8 @@ static void xen_percpu_init(void)
>> >>>  	BUG_ON(err);
>> >>>  	per_cpu(xen_vcpu, cpu) = vcpup;
>> >>>  
>> >>> +	xen_setup_runstate_info(cpu);
>> >>
>> >> Does the runstate memory area get unregsitered when a kernel tears
>> >> things down, or is kexec somehow inhibited for xen guests?
>> >>
>> >> i couldn't spot either happening, but I may have missed it.
>> > 
>> > I don't think that the runstate memory area needs to be unregistered for
>> > kexec, but I am not very knowledgeble on kexec and Xen, CC'ing Vitaly
>> > and David.
>> 
>> There's a whole pile of other state needing to be reset for kexec (event
>> channels and grant tables for example).  The guest needs to soft reset
>> itself (available in Xen 4.6) before kexec'ing another kernel.
>> 
>> This soft reset would also including cleaning up this shared memory region.
>
> Ok. So we don't currently have the code kernel-side, but it looks like
> it would be relatively simple to add (having just spotted [1])

already merged in 4.3 and several stable trees.

> , and everything should be ready on the Xen side.`
>

Yes, but for x86 only. arch_domain_soft_reset() is -ENOSYS for ARM
now. It should be relatively easy to implement, one should unmap
shared_info page and do some GIC cleanup (if it's needed at all). I'd be
happy to help if someone's interested but unfortunately I don't have ARM
hardware to test at this moment...

> Thanks,
> Mark.
>
> [1] https://lkml.org/lkml/2015/9/25/152

-- 
  Vitaly

  reply	other threads:[~2015-11-06 13:25 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <alpine.DEB.2.02.1511051502270.13541@kaball.uk.xensource.com>
     [not found] ` <1446737696-9749-2-git-send-email-stefano.stabellini@eu.citrix.com>
2015-11-05 16:40   ` [PATCH v11 2/5] missing include asm/paravirt.h in cputime.c Peter Zijlstra
     [not found]     ` <alpine.DEB.2.02.1511051659580.13541@kaball.uk.xensource.com>
2015-11-09 17:36       ` Peter Zijlstra
2015-11-10 11:27         ` Stefano Stabellini
2015-11-10 12:19           ` Peter Zijlstra
     [not found] ` <1446737696-9749-1-git-send-email-stefano.stabellini@eu.citrix.com>
2015-11-05 16:48   ` [PATCH v11 1/5] xen: move xen_setup_runstate_info and get_runstate_snapshot to drivers/xen/time.c Mark Rutland
     [not found]     ` <alpine.DEB.2.02.1511061110220.13541@kaball.uk.xensource.com>
2015-11-06 12:00       ` Mark Rutland
     [not found] ` <1446737696-9749-5-git-send-email-stefano.stabellini@eu.citrix.com>
2015-11-05 16:57   ` [PATCH v11 5/5] xen/arm: account for stolen ticks Mark Rutland
     [not found]     ` <alpine.DEB.2.02.1511061126500.13541@kaball.uk.xensource.com>
     [not found]       ` <563C91FD.7060703@citrix.com>
2015-11-06 11:59         ` Mark Rutland
2015-11-06 13:25           ` Vitaly Kuznetsov [this message]
2015-11-06 13:19         ` Vitaly Kuznetsov
     [not found] ` <1446737696-9749-4-git-send-email-stefano.stabellini@eu.citrix.com>
2015-11-10 14:11   ` [PATCH v11 4/5] arm64: introduce CONFIG_PARAVIRT, PARAVIRT_TIME_ACCOUNTING and pv_time_ops Stefano Stabellini
2015-11-17 17:29     ` Will Deacon
2015-11-17 17:34       ` Marc Zyngier
2015-11-17 17:35         ` Will Deacon
2015-11-20 12:19           ` Stefano Stabellini
     [not found] ` <1446737696-9749-3-git-send-email-stefano.stabellini@eu.citrix.com>
2015-11-10 14:12   ` [PATCH v11 3/5] arm: " Stefano Stabellini
2015-11-20 14:31     ` Stefano Stabellini
2015-11-20 14:36       ` Christopher Covington
2015-11-20 14:40         ` Stefano Stabellini
2015-11-20 16:47           ` Russell King - ARM Linux
2015-11-20 17:16             ` Stefano Stabellini

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=87egg3p8dn.fsf@vitty.brq.redhat.com \
    --to=vkuznets@redhat.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=arnd@arndb.de \
    --cc=catalin.marinas@arm.com \
    --cc=david.vrabel@citrix.com \
    --cc=geoff@infradead.org \
    --cc=konrad.wilk@oracle.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=marc.zyngier@arm.com \
    --cc=mark.rutland@arm.com \
    --cc=olof@lixom.net \
    --cc=stefano.stabellini@citrix.com \
    --cc=takahiro.akashi@linaro.org \
    --cc=will.deacon@arm.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox