Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3553234ybl; Tue, 21 Jan 2020 02:58:37 -0800 (PST) X-Google-Smtp-Source: APXvYqz6dPvRgV3R/SPONUQEz7B/TSpiDzOQZ6XRJV44LJGP6QljsehC1KQ+LSPrswbYGN38FsER X-Received: by 2002:a9d:2264:: with SMTP id o91mr3161931ota.328.1579604317254; Tue, 21 Jan 2020 02:58:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579604317; cv=none; d=google.com; s=arc-20160816; b=e4inA1m9EUhPLm34Lkg22PEO9t38doCeILfO2U5uXa7hyBVcDw7eoelqUNjajWDCIz UP9MTl6KotYZq/blEq5DVLQuNsWhnKtyLunBfnpRg1n+5O0EMgV9+Tdcq89Qy6pVBL9n uW8mJ7VjIyxcTbFaWFYrN93SvnSAi9WLOkduDuD+zLLrzMfJXXQkk/d+ZgQBwtAq4W17 Yj9lIm5hh/oAIBMKzrAzp33sfKQM+JwezSNAI4ovOKmyJCV876vKq/A8ef0CyGc11/vx YaFYMsFOCzfrkcxiLfZdQGdRcuj9aUm+B0Px3AqG8azAC+dvNfwaO9xps1P4DyHd5C0t TnGg== 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:dkim-signature; bh=V6z6VMHQRuZ71QFFUl75dnxsvN2jLBKErbicOLLiKQU=; b=K6rxweeBRh+EzJtn5/vKxVijyvAqSoS1ls9UeV5aKkGZIJ1Nhal/OvP0sIcBCtbBJy funsiNBWeRNEjtv5OyHmD0vVkl4bI4ZnJrb9DxxuW28jIhHLAbzhn90N1SSxIiG7RQOQ M6yddRArsSVRmBC0AuCWQ3I5yWGhbZsmq8YOwEBUZXabqTUtTy9z/29BCuw8G5wRtQAO X9Zj/QujPpKQP2RSqjwGnpXbLnWIlflcFl/fOFNug2FCpKB8aNq1jc42B9Ay20UY43Rm jFx1W4U5R6WGTqvljDyVyOjK3SzHkfzEhYZUA4qkJAboh9u6eyJWd5ZH2LQWK8wJDoWn V0Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="VX2r/6ZX"; 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 d7si19708571otf.84.2020.01.21.02.58.25; Tue, 21 Jan 2020 02:58:37 -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="VX2r/6ZX"; 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 S1728831AbgAUKwD (ORCPT + 99 others); Tue, 21 Jan 2020 05:52:03 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:38540 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726052AbgAUKwC (ORCPT ); Tue, 21 Jan 2020 05:52:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579603921; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=V6z6VMHQRuZ71QFFUl75dnxsvN2jLBKErbicOLLiKQU=; b=VX2r/6ZXSEDMeKId8nOGy5TIdamg5yakQ3+D0aFUqdr2lhrcuik1BMNEkAZgjMlTX587B0 5DMgkLsMWuKR7tXUDSENpjdi9TGmJSSCnr9YDgML5BLe5rw0z/oLlP03eHCmW7Tr4KgD+N 8ja7SqJK6ZGAUuhz9nBuKautxm1thAI= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-282-E4IA0i3SP9iP7iMNt_uyPg-1; Tue, 21 Jan 2020 05:50:56 -0500 X-MC-Unique: E4IA0i3SP9iP7iMNt_uyPg-1 Received: by mail-wr1-f69.google.com with SMTP id f15so1151559wrr.2 for ; Tue, 21 Jan 2020 02:50:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=V6z6VMHQRuZ71QFFUl75dnxsvN2jLBKErbicOLLiKQU=; b=EU/zRmcNKZT2dPqfH1gjuElSLfCdmYEE7YpiNan3CViAKQndW5y8v3DOwKwzgiQzjm TLQUM7H5Jcdv2VDOoOI57zbgsZK6C1Y6lfS1d1fo4+L2QNTq+q0eWAaHCKXNIQFvuLz4 FxBvBBWnZs9wm2DcR1dq/3KyKCVu/5ff3hW2bKpMWPIVnn4V+/rgI9n1ZyzKLB0jWDf7 BBvoL4YiuP0MLsrSzAtavu40vNPnUxWZHFydDeVhqZ7fubaDXzuJHjJOfWazEOvphfWl 5VlUXBOFFfFD6Mr4re0KGFWyoIX+AK7Z9kwdcX8vpsQ0Jr9BgeTb+gmiMkMy0WIduRGo 7RFw== X-Gm-Message-State: APjAAAWxv4P0Dwe2KY5YSANPcnfX0kno81Q9dxI1boMRQwNjBiLiG6KE Cqe6mtvpzZaLDHpHMAZAAnHGD2bYmac39LnRhA97SzlStW+Q/ICIp9+nvgQ51nqmZ9KW7usxYAB V55m27/VoQCWob176D4vsBR8U X-Received: by 2002:a7b:cb01:: with SMTP id u1mr3853824wmj.156.1579603854818; Tue, 21 Jan 2020 02:50:54 -0800 (PST) X-Received: by 2002:a7b:cb01:: with SMTP id u1mr3853798wmj.156.1579603854510; Tue, 21 Jan 2020 02:50:54 -0800 (PST) Received: from ?IPv6:2001:b07:6468:f312:b509:fc01:ee8a:ca8a? ([2001:b07:6468:f312:b509:fc01:ee8a:ca8a]) by smtp.gmail.com with ESMTPSA id h8sm54673071wrx.63.2020.01.21.02.50.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jan 2020 02:50:54 -0800 (PST) Subject: Re: [PATCH 1/2] pvpanic: introduce crashloaded for pvpanic To: Markus Armbruster , zhenwei pi Cc: yelu@bytedance.com, libvir-list@redhat.com, gregkh@linuxfoundation.org, qemu-devel@nongnu.org, linux-kernel@vger.kernel.org, mprivozn@redhat.com References: <20200110100634.491936-1-pizhenwei@bytedance.com> <20200110100634.491936-2-pizhenwei@bytedance.com> <87h80pi5hf.fsf@dusky.pond.sub.org> From: Paolo Bonzini Message-ID: <247586dd-576a-a0c9-9c43-5d9a310a4ddc@redhat.com> Date: Tue, 21 Jan 2020 11:50:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <87h80pi5hf.fsf@dusky.pond.sub.org> Content-Type: text/plain; charset=utf-8 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 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