From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752610AbcF1RdE (ORCPT ); Tue, 28 Jun 2016 13:33:04 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:48084 "EHLO SMTP02.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752133AbcF1RdD (ORCPT ); Tue, 28 Jun 2016 13:33:03 -0400 X-IronPort-AV: E=Sophos;i="5.26,542,1459814400"; d="scan'208";a="370178342" Subject: Re: [PATCH linux 0/8] xen: pvhvm: support bootup on secondary vCPUs To: Vitaly Kuznetsov , References: <1467132449-1030-1-git-send-email-vkuznets@redhat.com> CC: , , Stefano Stabellini , Boris Ostrovsky , Juergen Gross , Thomas Gleixner , "Ingo Molnar" , "H. Peter Anvin" , Julien Grall From: David Vrabel Message-ID: <5772B4C2.4010906@citrix.com> Date: Tue, 28 Jun 2016 18:32:50 +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: <1467132449-1030-1-git-send-email-vkuznets@redhat.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-DLP: MIA2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/06/16 17:47, 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. Could the soft-reboot hypercall (optionally) return on vcpu 0? David