From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756523AbcGZNDJ (ORCPT ); Tue, 26 Jul 2016 09:03:09 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:7859 "EHLO SMTP02.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752514AbcGZNDF (ORCPT ); Tue, 26 Jul 2016 09:03:05 -0400 X-IronPort-AV: E=Sophos;i="5.28,424,1464652800"; d="scan'208";a="375445855" Subject: Re: [Xen-devel] [PATCH linux v3 0/9] xen: pvhvm: support bootup on secondary vCPUs To: Vitaly Kuznetsov , References: <1469536228-29932-1-git-send-email-vkuznets@redhat.com> CC: Juergen Gross , Stefano Stabellini , Andrew Cooper , , , Julien Grall , Ingo Molnar , David Vrabel , Jan Beulich , "H. Peter Anvin" , Boris Ostrovsky , "Thomas Gleixner" From: David Vrabel Message-ID: <57975F83.9090604@citrix.com> Date: Tue, 26 Jul 2016 14:02:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 MIME-Version: 1.0 In-Reply-To: <1469536228-29932-1-git-send-email-vkuznets@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-DLP: MIA1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/07/16 13:30, 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. > > Changes since v2: > - Use 'uint32_t' for xen_vcpu_id mapping [Julien Grall] > - Rebased to linux-4.7 I already applied v2. If you provide an incremental patch I can queue it for 4.9. David