From patchwork Wed Jul 12 10:29:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Hoyes X-Patchwork-Id: 13310037 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2CC40EB64DD for ; Wed, 12 Jul 2023 10:31:21 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.562179.878756 (Exim 4.92) (envelope-from ) id 1qJX7c-0004N5-4Q; Wed, 12 Jul 2023 10:31:00 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 562179.878756; Wed, 12 Jul 2023 10:31:00 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qJX7c-0004My-1Z; Wed, 12 Jul 2023 10:31:00 +0000 Received: by outflank-mailman (input) for mailman id 562179; Wed, 12 Jul 2023 10:30:58 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qJX7a-0004Ms-Qp for xen-devel@lists.xenproject.org; Wed, 12 Jul 2023 10:30:58 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-flk1.inumbo.com (Halon) with ESMTP id 2f0e9b32-209f-11ee-8611-37d641c3527e; Wed, 12 Jul 2023 12:30:56 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 83930D75; Wed, 12 Jul 2023 03:31:37 -0700 (PDT) Received: from e125920.cambridge.arm.com (unknown [10.1.199.64]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 091EF3F73F; Wed, 12 Jul 2023 03:30:53 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 2f0e9b32-209f-11ee-8611-37d641c3527e From: Peter Hoyes To: xen-devel@lists.xenproject.org Cc: bertrand.marquis@arm.com, wei.chen@arm.com, luca.fancellu@arm.com, Peter Hoyes , Wei Liu , Anthony PERARD , Juergen Gross Subject: [PATCH v5 0/2] Add escape character argument to Xen console Date: Wed, 12 Jul 2023 11:29:15 +0100 Message-Id: <20230712102917.37763-1-peter.hoyes@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 From: Peter Hoyes Dom0 may be accessed via telnet, meaning the default escape character (which is the same as telnet's) cannot be directly used to exit the console. It would be helpful to make the escape character customizable in such use cases, falling back to the existing value if not set. Make the necessary changes to the console client, libxl and the xl console sub-command to support this. Peter Hoyes (2): tools/console: Add escape argument to configure escape character xl: Add escape character argument to xl console docs/man/xl.1.pod.in | 8 ++++++- tools/console/client/main.c | 21 +++++++++++++---- tools/include/libxl.h | 39 +++++++++++++++++++++++++++++--- tools/libs/light/libxl_console.c | 30 +++++++++++++++++------- tools/xl/xl_cmdtable.c | 3 ++- tools/xl/xl_console.c | 10 +++++--- tools/xl/xl_vmcontrol.c | 2 +- 7 files changed, 92 insertions(+), 21 deletions(-)