From: Vitaly Kuznetsov Subject: Re: [PATCH RFC 0/1] Introduce VCPUOP_reset_vcpu_info Date: Thu, 07 Aug 2014 13:41:16 +0200 Message-ID: <87r40s4jdv.fsf@vitty.brq.redhat.com> References: <1407330502-18768-1-git-send-email-vkuznets@redhat.com> <53E253470200007800029C1D@mail.emea.novell.com> <53E253470200007800029C1D@mail.emea.novell.com> <87a97h64oy.fsf@vitty.brq.redhat.com> <53E269350200007800029D5A@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XFM4W-0006e6-PR for xen-devel@lists.xenproject.org; Thu, 07 Aug 2014 11:41:28 +0000 In-Reply-To: <53E269350200007800029D5A@mail.emea.novell.com> (Jan Beulich's message of "Wed, 06 Aug 2014 16:43:17 +0100") List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel@lists.xenproject.org, Andrew Jones , David Vrabel , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org "Jan Beulich" writes: >>>> On 06.08.14 at 17:03, wrote: >> "Jan Beulich" writes: >>> And why not for CPU 0? >>> >> >> Because the suggested op will fail for already running CPU0.. > > Sure, but how do you deal with that? > Now pvhvm guests don't call VCPUOP_register_vcpu_info for CPU0 on boot so it always points to shared_info and there is no need in doing VCPUOP_reset_vcpu_info. >>> Furthermore, what is the state of vCPU-s beyond 31 going to be after >>> they got their vCPU info reset? They won't have any other area as >>> fallback. >> >> In xen their vcpu_info will point to dummy_vcpu_info (that's what we >> have there before VCPUOP_register_vcpu_info I guess). > > Right, but such a vCPU can't be brought up. Did you verify that > this holds with your additions? That's fine as new kernel will call VCPUOP_register_vcpu_info on bootup. > >> I tested kexec with 64 vcpus case, no issues noticed. > > That's purely observation based then, in an environment where > (for the specific operation here) not much can go wrong. But I guess > we'll see how things are once you properly document all limitations. Actually my intention is to bring the state of affairs to the point it was before first kernel booted (so newly booted kernel will succeed). VCPUs >= XEN_LEGACY_MAX_VCPUS have their vcpu_info pointing to dummy_vcpu_info before first VCPUOP_register_vcpu_info call so let's that is the desired state when doing kexec. > > Jan -- Vitaly