From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752774AbcGYNRm (ORCPT ); Mon, 25 Jul 2016 09:17:42 -0400 Received: from foss.arm.com ([217.140.101.70]:33472 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752481AbcGYNR2 (ORCPT ); Mon, 25 Jul 2016 09:17:28 -0400 Subject: Re: [Xen-devel] [PATCH linux v2 0/9] xen: pvhvm: support bootup on secondary vCPUs To: David Vrabel , Vitaly Kuznetsov , xen-devel@lists.xenproject.org References: <1467302203-22399-1-git-send-email-vkuznets@redhat.com> <57960843.9070602@citrix.com> Cc: Juergen Gross , Stefano Stabellini , Andrew Cooper , x86@kernel.org, linux-kernel@vger.kernel.org, Ingo Molnar , Jan Beulich , "H. Peter Anvin" , Boris Ostrovsky , Thomas Gleixner From: Julien Grall Message-ID: Date: Mon, 25 Jul 2016 14:17:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <57960843.9070602@citrix.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, On 25/07/16 13:38, David Vrabel wrote: > On 30/06/16 16:56, Vitaly Kuznetsov wrote: >> It may happen that Xen's and Linux's ideas of vCPU id diverge. In >> particular, when we crash on a secondary vCPU we may want to do kdump >> and unlike plain kexec where we do migrate_to_reboot_cpu() we try booting >> on the vCPU which crashed. This doesn't work very well for PVHVM guests as >> we have a number of hypercalls where we pass vCPU id as a parameter. These >> hypercalls either fail or do something unexpected. To solve the issue we >> need to have a mapping between Linux's and Xen's vCPU ids. >> >> This series solves the issue for x86 PVHVM guests. PV guests don't (and >> probably won't) support kdump so I always assume Xen's vCPU id == Linux's >> vCPU id. ARM guests will probably need to get proper mapping once we start >> supporting kexec/kdump there. > > Applied to for-linus-4.8, thanks. It would have been nice to send a ping before applying. This patch series is containing Xen ARM code which has not been acked by Stefano, nor had feedback from ARM side. For instance given that all the hypercalls are representing a "vcpu id" using "uint32_t" it is a bit weird to use "int" to define xen_vcpu_id (see patch #3). Regards, -- Julien Grall