From nobody Mon Feb 9 19:30:15 2026 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1584102028; cv=none; d=zohomail.com; s=zohoarc; b=kfk6uxQTtQswNWnX45jSrZSnu7TVwdBXoUtiV6txDQZ+NnGekxA+zUVotuKVmMykeUN5xBlcvszWZp3fUcyO0sPYtQEG0lWMQjDtVSW1Y8KGef5IkRrc71AIUoCZSyYooP6ckyjCbNQGuoKKDYtf6mo6WEPOaUocL1wIG3IaftE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1584102028; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=DJzQndyu3dJYlIrCuB/ciYW8JA5IwLGLHdKV2SMSzrA=; b=JYBnH9/smOwElipf99Ee3Bk1Ic9q//dFL4O+3XZcI3oc1TBFcXT3qJYWZagnmt6RN8llWU1yPasVa0KqhmaqG7T8b6Iz4ZS02y4bv0nz6zQOymlxXAoF6TNwsm/x1C97Fq1Bo0R4pb4x6VHJz78zdUGRo6531edFoQLkS3q5rYk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1584102028208724.41498238403; Fri, 13 Mar 2020 05:20:28 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jCjI5-0004a6-C3; Fri, 13 Mar 2020 12:19:49 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jCjI3-0004Zv-QG for xen-devel@lists.xenproject.org; Fri, 13 Mar 2020 12:19:47 +0000 Received: from mail.xenproject.org (unknown [104.130.215.37]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id eddb6c90-6524-11ea-a6c1-bc764e2007e4; Fri, 13 Mar 2020 12:19:47 +0000 (UTC) Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jCjI2-0003gX-FN; Fri, 13 Mar 2020 12:19:46 +0000 Received: from 54-240-197-232.amazon.com ([54.240.197.232] helo=u2f063a87eabd5f.cbg10.amazon.com) by xenbits.xenproject.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1jCjI2-0005yq-5Q; Fri, 13 Mar 2020 12:19:46 +0000 X-Inumbo-ID: eddb6c90-6524-11ea-a6c1-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=F3v8xDkGCyHYWhAoZOryYOwBcqnWAisS+RPsL8Ed5+8=; b=zPoxL+qpJJHjtiPL/Msvt9ZgPH cI3jUm3VeVBfeHQ/BUr73PSXnyfWICCnGVQ0ZaXB6nTRXrLNYZqo+obc4eqGjtHa4lU6i/SeSoQZB 56yVSAXhsWqB/UXp4EcVieGGa5v7l5RjyLrVcdtQDk/A4Tznr/17g8KhLEwO12zToOkM=; From: paul@xen.org To: xen-devel@lists.xenproject.org Date: Fri, 13 Mar 2020 12:19:41 +0000 Message-Id: <20200313121942.1213-2-paul@xen.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200313121942.1213-1-paul@xen.org> References: <20200313121942.1213-1-paul@xen.org> MIME-Version: 1.0 Subject: [Xen-devel] [PATCH v3 1/2] libxl: create domain 'error' node in xenstore X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Julien Grall , Wei Liu , Konrad Rzeszutek Wilk , Andrew Cooper , Paul Durrant , Ian Jackson , George Dunlap , Jan Beulich , Anthony PERARD Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Paul Durrant Several PV drivers (both historically and currently [1]) report errors by writing text into /local/domain/$DOMID/error. This patch creates the node in libxl and makes it writable by the domain, and also adds some text into xenstore-paths.pandoc to state what the node is for. [1] https://xenbits.xen.org/gitweb/?p=3Dpvdrivers/win/xenvif.git;a=3Dblob;f= =3Dsrc/xenvif/frontend.c;hb=3DHEAD#l459 Signed-off-by: Paul Durrant Acked-by: Ian Jackson --- Cc: Andrew Cooper Cc: George Dunlap Cc: Jan Beulich Cc: Julien Grall Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Wei Liu Cc: Anthony PERARD --- docs/misc/xenstore-paths.pandoc | 5 +++++ tools/libxl/libxl_create.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/docs/misc/xenstore-paths.pandoc b/docs/misc/xenstore-paths.pan= doc index 0a6b36146e..e2ab5da54e 100644 --- a/docs/misc/xenstore-paths.pandoc +++ b/docs/misc/xenstore-paths.pandoc @@ -539,6 +539,11 @@ address written in one of these paths to, for example,= establish a VNC session to the guest (although clearly some level of trust is placed in the value supplied by the guest in this case). =20 +#### ~/error [w] + +A domain writable path used by some PV drivers to pass error messages +to the toolstack. + ### Paths private to the toolstack =20 #### ~/device-model/$DOMID/state [w] diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c index 7891fae426..fb7b3999ae 100644 --- a/tools/libxl/libxl_create.c +++ b/tools/libxl/libxl_create.c @@ -797,6 +797,9 @@ retry_transaction: libxl__xs_mknod(gc, t, GCSPRINTF("%s/attr", dom_path), rwperm, ARRAY_SIZE(rwperm)); + libxl__xs_mknod(gc, t, + GCSPRINTF("%s/error", dom_path), + rwperm, ARRAY_SIZE(rwperm)); =20 if (libxl_defbool_val(info->driver_domain)) { /* --=20 2.20.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel