Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3703771ybl; Tue, 21 Jan 2020 05:40:17 -0800 (PST) X-Google-Smtp-Source: APXvYqwif+iQunH4G9gJPv241AG4vUbU1oqGJ4rvO9IK+nEFsnRvP1Ji7HPLg2NbCrb/Nes+eSzO X-Received: by 2002:a05:6808:64e:: with SMTP id z14mr2820863oih.79.1579614017445; Tue, 21 Jan 2020 05:40:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579614017; cv=none; d=google.com; s=arc-20160816; b=tLmky3rykX4raWsGZYeVPo5fzq14acdijdPtyAuiJnHy0gxLsQH/WWs7DPMd1PzcLw W0lj66ZfycoB2p9YPTstP8vZzkJbWeopkk2/pjLe4zUIoRsXRbsZ7lnzArySQ3y7Oi0J xo0QAHIjHNcRejoeo9K2kBXXtfXGntOwmdHB1sny9InzTt3eWSPbjc09dsBqfD9OiZvb wB+fBWqYlof/7+bvPaAG1UcG9OrlG5974PT89xDHfU2wQMQomQv2pU+6CVjfaDPz53+c 3KfWkyk1apGop7pjFHINy6uyQH0OhAmSnW6NGswYQJS9BbRl01ZszSHafKDfFI97TjT/ oWsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dkim-signature; bh=UNaqdG/kf6Aak5iOvVnZKMEuLm98y8RF9EOYvq0J7S8=; b=a+b1wejz3eZyLvMieRQHLd8quyc6x8sT8djv3ewXN/v2G70dLeGxlM4dNM7biYjEEI 8VNpaoT8yQTSLZaXM5jN3oktguvup7BU57hEVIVqUtoP2EvpRNA8yDCB3kvOeO/upP1G B+GLIY7lkWzOosUIxaP6hgHT0xAz7kBOZho/4mhdZI9RToM7Ds1PnEVoeuxrCmLfx6Ev QyBpO+MlnUh/1w3IvHLyrT4yK6PtAiiXj0gDJSwa7AVpDpYuYCOHRY3kkjEJGVK8DFoP mti2SPXY4w0Fkyj1y8+8BKlAXkFRKRsKAejfY2RIUqJ1oFnT0DJph8Hx82Zdv2hkg4Zt sAhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=deQzd0AB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6si21890017otk.171.2020.01.21.05.40.04; Tue, 21 Jan 2020 05:40:17 -0800 (PST) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=deQzd0AB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728925AbgAUNjI (ORCPT + 99 others); Tue, 21 Jan 2020 08:39:08 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:31408 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728733AbgAUNjI (ORCPT ); Tue, 21 Jan 2020 08:39:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579613947; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UNaqdG/kf6Aak5iOvVnZKMEuLm98y8RF9EOYvq0J7S8=; b=deQzd0AB7BvlABP/IjcZDIDeh1ZRhS1f2h4zAQszEPm1XemrlQ/7+IKExOP5/OdgKfOZjw cWE2kbmGQkuxlDn8kb8FGZ5srzpgyrKnsMNanpDrHJNK5colLpZ1Uo3bBqKeOuFE4Rp4Ki vRVvedyqaNZMxckUHkFWVqtizcLur04= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-79-uPOuSdQYOmil2C_jhNcbZQ-1; Tue, 21 Jan 2020 08:39:04 -0500 X-MC-Unique: uPOuSdQYOmil2C_jhNcbZQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CA6D0800D48; Tue, 21 Jan 2020 13:39:02 +0000 (UTC) Received: from blackfin.pond.sub.org (ovpn-116-131.ams2.redhat.com [10.36.116.131]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 14E641001DE1; Tue, 21 Jan 2020 13:39:00 +0000 (UTC) Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id ABC0E1138600; Tue, 21 Jan 2020 14:38:58 +0100 (CET) From: Markus Armbruster To: Paolo Bonzini Cc: zhenwei pi , yelu@bytedance.com, libvir-list@redhat.com, gregkh@linuxfoundation.org, qemu-devel@nongnu.org, linux-kernel@vger.kernel.org, mprivozn@redhat.com Subject: Re: [PATCH 1/2] pvpanic: introduce crashloaded for pvpanic References: <20200110100634.491936-1-pizhenwei@bytedance.com> <20200110100634.491936-2-pizhenwei@bytedance.com> <87h80pi5hf.fsf@dusky.pond.sub.org> <247586dd-576a-a0c9-9c43-5d9a310a4ddc@redhat.com> Date: Tue, 21 Jan 2020 14:38:58 +0100 In-Reply-To: <247586dd-576a-a0c9-9c43-5d9a310a4ddc@redhat.com> (Paolo Bonzini's message of "Tue, 21 Jan 2020 11:50:53 +0100") Message-ID: <87sgk9c4jx.fsf@dusky.pond.sub.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Paolo Bonzini writes: > On 21/01/20 09:22, Markus Armbruster wrote: >> zhenwei pi writes: >> >>> Add bit 1 for pvpanic. This bit means that guest hits a panic, but >>> guest wants to handle error by itself. Typical case: Linux guest runs >>> kdump in panic. It will help us to separate the abnormal reboot from >>> normal operation. >>> >>> Signed-off-by: zhenwei pi >>> --- >>> docs/specs/pvpanic.txt | 8 ++++++-- >>> 1 file changed, 6 insertions(+), 2 deletions(-) >>> >>> diff --git a/docs/specs/pvpanic.txt b/docs/specs/pvpanic.txt >>> index c7bbacc778..bdea68a430 100644 >>> --- a/docs/specs/pvpanic.txt >>> +++ b/docs/specs/pvpanic.txt >>> @@ -16,8 +16,12 @@ pvpanic exposes a single I/O port, by default 0x505. On read, the bits >>> recognized by the device are set. Software should ignore bits it doesn't >>> recognize. On write, the bits not recognized by the device are ignored. >>> Software should set only bits both itself and the device recognize. >> >> Guest software, I presume. >> >>> -Currently, only bit 0 is recognized, setting it indicates a guest panic >>> -has happened. >>> + >>> +Bit Definition >>> +-------------- >>> +bit 0: setting it indicates a guest panic has happened. >>> +bit 1: named crashloaded. setting it indicates a guest panic and run >>> + kexec to handle error by guest itself. >> >> Suggest to scratch "named crashloaded." > > bit 1: a guest panic has happened and will be handled by the guest; > the host should record it or report it, but should not affect > the execution of the guest. > > ? > > Paolo Works for me, thanks!