From nobody Wed Apr 24 23:04:58 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=bytedance.com ARC-Seal: i=1; a=rsa-sha256; t=1578650819; cv=none; d=zohomail.com; s=zohoarc; b=YKkYS9ZaMqcIJ0qNMpKOkQjmkj54TOEolu4T5+8NnnsUHIiKYG9auxxBHN8asu5cLWKSBhA+hPUWSEr8vpGGsejFF4DoDSYoquMl9YDl9NWpk8W2RcDPME5oBla8G1kosKuW/aIl0L43KG0X6YpgBOHJIqbIzk+ksHPdpb24fwg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578650819; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=IUgIZ3HjhFgPRZ5sPrpSavWZSCy5GuLmZk9ly6bvA+s=; b=liTdCNl5Oz6Gl3UU1agaG2cgFMAvJi3n44Vvl1LNW5NcXaZwagxtd0PIIvUPYejQfKaaOOY4xz2qkBx2QoyKSzJXEnqLAxioE28yOpd8OdRmVbUHUk70fJsJjzNsDf/PLrdx7m+GPg5j/I6CLLnu1UCHgeW6FSvP6eFm7kidVvo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1578650819704740.2564308473815; Fri, 10 Jan 2020 02:06:59 -0800 (PST) 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-193-NJxqJbwoPSWTdcnwfCOB1g-1; Fri, 10 Jan 2020 05:06:57 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 89411184B1F8; Fri, 10 Jan 2020 10:06:51 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5F1C460FA2; Fri, 10 Jan 2020 10:06:51 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id C7D0C503CE; Fri, 10 Jan 2020 10:06:49 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 00AA6mZ9000346 for ; Fri, 10 Jan 2020 05:06:48 -0500 Received: by smtp.corp.redhat.com (Postfix) id 3266A2022EAC; Fri, 10 Jan 2020 10:06:48 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2C3202022EAB for ; Fri, 10 Jan 2020 10:06:48 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0BD8F8E6847 for ; Fri, 10 Jan 2020 10:06:48 +0000 (UTC) Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-349-cv0w-lcnMa-SQBe1kCi6QA-1; Fri, 10 Jan 2020 05:06:46 -0500 Received: by mail-pl1-f193.google.com with SMTP id c23so674869plz.4 for ; Fri, 10 Jan 2020 02:06:46 -0800 (PST) Received: from libai.bytedance.net ([61.120.150.71]) by smtp.gmail.com with ESMTPSA id q21sm2179039pff.105.2020.01.10.02.06.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jan 2020 02:06:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578650818; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=IUgIZ3HjhFgPRZ5sPrpSavWZSCy5GuLmZk9ly6bvA+s=; b=JnCdqogfZHzKsd+yigPfG4THarXZIwAP2GHKQnvXY91QqTUDmeIJQnz7WdKBf8MYyYcqCu JAv083zpUkdUK/BMi/0091sf/qd1Cpk2+yVbG7XyqSTXaOSkZlWcULF2QDWTPuc269m5Uc aB4OKqSSFYAnKWvviw424V9AHpjmlQU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dAhOey3cqiOp5/b6uTfIau2ZiRzs6yslTIYzXyRfd0c=; b=BDJ3CdLIYbE1U37DF6j5KSNLpMFP9Mfgdkwn50regu/rw0UfKDEsCmHOMEP9qRGx1e nS3PuBQg+Oq2Rj20fQnbuLndGLvLErYo1ZVgfudpwacMsCMqtMRz5zxOJhh1KvgG5LIY v3I4j1XpcPUQC8BEN0FG88zLIeQNXnZeZb6PqeD82zFtKRCT33zWNfb/J+4hqadV/ck5 9fW36P83VNC+ZjA66pAX0Y5OiqBhKgKGTAdxheAAlc1tkwKR/Ye4q/Ol3BsHVNP0SYYp ds6GtEF7Q0JJIAODZctO0dF/axatr9ymhr8+xMo4rD6QMMpZEuKarHa5dyFzHyWOfg+P rsCg== X-Gm-Message-State: APjAAAX92hmAzf/hwB3krK+Hl5VUKFRfEb7nYvbxwLYJ+t8BVgXwRP7O hKbTeopibag7y427D0l20YJI1Q== X-Google-Smtp-Source: APXvYqyqnZ9lf3ppNVir68eoZT7u3buRR7s7HIwujRNHxEUEdVG6qsr88g9VM/pC+0jZaZIEUqzprA== X-Received: by 2002:a17:90a:1b4d:: with SMTP id q71mr3653557pjq.82.1578650805378; Fri, 10 Jan 2020 02:06:45 -0800 (PST) From: zhenwei pi To: pbonzini@redhat.com Date: Fri, 10 Jan 2020 18:06:33 +0800 Message-Id: <20200110100634.491936-2-pizhenwei@bytedance.com> In-Reply-To: <20200110100634.491936-1-pizhenwei@bytedance.com> References: <20200110100634.491936-1-pizhenwei@bytedance.com> X-MC-Unique: cv0w-lcnMa-SQBe1kCi6QA-1 X-MC-Unique: NJxqJbwoPSWTdcnwfCOB1g-1 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 00AA6mZ9000346 X-loop: libvir-list@redhat.com Cc: yelu@bytedance.com, libvir-list@redhat.com, gregkh@linuxfoundation.org, qemu-devel@nongnu.org, zhenwei pi , linux-kernel@vger.kernel.org, mprivozn@redhat.com Subject: [libvirt] [PATCH 1/2] pvpanic: introduce crashloaded for pvpanic X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" 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. -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. =20 ACPI Interface -------------- --=20 2.11.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list