From nobody Tue Sep 9 19:12:41 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1747839897; cv=none; d=zohomail.com; s=zohoarc; b=QwZNXN1rro2y+GZ/ybIXsktrcW/I/XKNdatYMUfHStWQ4WycK3mxa16hiIFzPW1MOBCZtgtcfaRoJXR+/nNl9fiLL31yqZVJY5y3HbYg4D1+rZ/i3OXgWF4l3Jd2FtWeillojR1U0nW+SPg6dTRxnHzoHySrBvwVNXl2pQdNaw4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1747839897; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:Subject:Subject:To:To:Message-Id:Cc; bh=CIS9w/RBejrBj+WEvxyWC6+mTelsVTgNsgdk1ul5CIQ=; b=k6KpzUHamXd4DMCMh9z92jcjNhqfeMlg8ycDLt1FwFwnwFxL04NryAfW4e6qhe4+cIBeNopb+Ee6uLoEFWhiBDhz1hnFoln+c/mhwlHZGRDIL9R7eIMS2b88rdlkImBjRBwqIxSNqaCVjy0EjCd8rHhNv6sLmmclCbaL4ipvhY8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1747839897320682.6949229281885; Wed, 21 May 2025 08:04:57 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 6078A1548; Wed, 21 May 2025 11:04:56 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id AFADD1558; Wed, 21 May 2025 11:04:38 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id ECD531519; Wed, 21 May 2025 11:04:34 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 3C72314F6 for ; Wed, 21 May 2025 11:04:34 -0400 (EDT) Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-576-AnkraE7NMs-gT1XCQNbDyg-1; Wed, 21 May 2025 11:04:32 -0400 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 96AE818001EA for ; Wed, 21 May 2025 15:04:30 +0000 (UTC) Received: from speedmetal.lan (unknown [10.44.22.37]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id CC16C19560A7 for ; Wed, 21 May 2025 15:04:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1747839874; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=C8EPW6JsTRSmCTC6QaOauJTdIFvzDWg/JiyFxQ+1N68=; b=GCEcdOe5eVU72kdOuFrS1XuurzkaoTHyN8+EzM+pOlN+jTT1F/sFMgv2dXfqHz/CpE1vrQ U3xTmOxlqkcQhmNzUVaLuDn+fNa5kDoVQT7CZTXltgxC5rrzS3nT/5Jo4dVMFjGay4bs7z dRZLIoqPIKGaxr/bjbO9zIbOQIz3sYk= X-MC-Unique: AnkraE7NMs-gT1XCQNbDyg-1 X-Mimecast-MFC-AGG-ID: AnkraE7NMs-gT1XCQNbDyg_1747839870 To: devel@lists.libvirt.org Subject: [PATCH] docs: domain: Explain supported options of 'error_policy' Date: Wed, 21 May 2025 17:04:28 +0200 Message-ID: <38dee0cc9629d24bb9fd5fb2bc1db4f767f3dcc8.1747839868.git.pkrempa@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: yMSicJuDtAPPbujUlG7YWGJVoBKTwtQxvpktDlsZ9X8_1747839870 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: VYZ6XZ52CFT4NITIIAQ3XN7FBYYMEZUL X-Message-ID-Hash: VYZ6XZ52CFT4NITIIAQ3XN7FBYYMEZUL X-MailFrom: pkrempa@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: From: Peter Krempa via Devel Reply-To: Peter Krempa X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1747839898675116600 Content-Type: text/plain; charset="utf-8" From: Peter Krempa Explain what the individual settings actually result in. The changes are based on the paraprhase of qemu documentation which in 'qemu-options.hx' states: ``werror=3Daction,rerror=3Daction`` Specify which action to take on write and read errors. Valid actions are: "ignore" (ignore the error and try to continue), "stop" (pause QEMU), "report" (report the error to the guest), "enospc" (pause QEMU only if the host disk is full; report the error to the guest otherwise). The default setting is ``werror=3Denospc`` and ``rerror=3Dreport``. Closes: https://gitlab.com/libvirt/libvirt/-/issues/138 Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- docs/formatdomain.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index c7c75ae219..a23a746229 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -3451,8 +3451,12 @@ paravirtualized driver is specified via the ``disk``= element. and sync requests from guest are ignored). :since:`Since 0.6.0` - The optional ``error_policy`` attribute controls how the hypervisor = will - behave on a disk read or write error, possible values are "stop", - "report" (:since:`since 0.9.7`), "ignore", and "enospace". + behave on a disk read or write error, possible values are ``stop`` ( + suspend/pause the domain on error), ``report`` (report the error to = the + guest OS; :since:`since 0.9.7`), ``ignore`` (ignore the error and tr= y to + continue), and ``enospace`` (suspend/pause the domain only if host s= torage + is full; report the error to the guest OS otherwise). + The default is left to the discretion of the hypervisor. :since:`Since 0.8.0`. - The optional ``rerror_policy`` attribute controls behavior for read --=20 2.49.0