Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp414840ybn; Tue, 1 Oct 2019 23:41:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8CPUq9CrrMXiV7GdgPvTdJJARXQMiVxDyPe74m+Gx9zb0G5g7pCvBC/2v0Sg2DjW/01FA X-Received: by 2002:a50:f603:: with SMTP id c3mr2076770edn.208.1569998477729; Tue, 01 Oct 2019 23:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569998477; cv=none; d=google.com; s=arc-20160816; b=qY7FU9SRYpChJTyUd5YZRBrZYJ9w6vi1t9o3p6OYk6SMdzvqBJrFNUnUp33EFTKnHU PPxEP+mYjQBp/hCnjbQTl7jN1IUY4DKLc37yOQiGFLFjtEoykE+J2GixBOAoGlHgalj+ Y37HeSbmbjQ7tJzPO3MhwY6nIhAKkEaVDFvdByf5mIP2cdfE0a4WInZEkuZn3EFW1EYF pbEPXPyijoda0rAD8oit05knDrxRaXwbYSXE4L6XmGs0PcXQVhjVnu+vnnchgUK0y3iy mrKDhaVxp20CPatmBq7ePK0tRwURIF7YLUwVRKU7v8ezJsV/nlv6djW0QYnlljbxSfun mk3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=20he/mPA83oWUmLCrvr9KTPMtZvHCm/V7rbVrzQiz1g=; b=deVmbVhCm3XYpXHDRmQYNz6YrFUp6l0JfpuTReWf/O9/hAZfYsjzIa8jHH6tEfmhuM daaxV5quSKnhRK/Isbu/Bm0jFCobi5xwAkZS/gNQD/FMof1DlyNIU2k8kWglOPORXfiz IXj5y1r686YywqI1CpL9fQfbje1LoN7w+uNBz9JXL5Vivfc/mcuhEAVmHYDOVD2p74Yd i6xKahb9fdimfvtqG1OJw5uc1TI7fKq9pV0DR1JB8YNo4HzOwOaa5Ff8r9FW3sDA8K7f 8nqXRbHOu9Py7GPR3oEMIH4kOTZfIvCmJbOEwkOorjAFNzvrydv1hvn0ZO7FP5HPQlyM JWvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22si9726762ejr.19.2019.10.01.23.40.53; Tue, 01 Oct 2019 23:41:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726802AbfJBEge (ORCPT + 99 others); Wed, 2 Oct 2019 00:36:34 -0400 Received: from mx2.suse.de ([195.135.220.15]:35008 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725991AbfJBEge (ORCPT ); Wed, 2 Oct 2019 00:36:34 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id EA59AAF56; Wed, 2 Oct 2019 04:36:32 +0000 (UTC) Subject: Re: [PATCH] x86/xen: Return from panic notifier To: Boris Ostrovsky , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Cc: james@dingwall.me.uk References: <20191001151633.1659-1-boris.ostrovsky@oracle.com> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: <3fb02346-16b8-1885-32b3-8d136ad7118b@suse.com> Date: Wed, 2 Oct 2019 06:36:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191001151633.1659-1-boris.ostrovsky@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01.10.19 17:16, Boris Ostrovsky wrote: > Currently execution of panic() continues until Xen's panic notifier > (xen_panic_event()) is called at which point we make a hypercall that > never returns. > > This means that any notifier that is supposed to be called later as > well as significant part of panic() code (such as pstore writes from > kmsg_dump()) is never executed. > > There is no reason for xen_panic_event() to be this last point in > execution since panic()'s emergency_restart() will call into > xen_emergency_restart() from where we can perform our hypercall. > > Reported-by: James Dingwall > Signed-off-by: Boris Ostrovsky Reviewed-by: Juergen Gross Juergen