From patchwork Wed Jul 12 07:35:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Hoyes X-Patchwork-Id: 13309661 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 BFA1BEB64D9 for ; Wed, 12 Jul 2023 07:37:07 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.561992.878533 (Exim 4.92) (envelope-from ) id 1qJUOr-00076E-4k; Wed, 12 Jul 2023 07:36:37 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 561992.878533; Wed, 12 Jul 2023 07:36:37 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qJUOr-000767-1v; Wed, 12 Jul 2023 07:36:37 +0000 Received: by outflank-mailman (input) for mailman id 561992; Wed, 12 Jul 2023 07:36:35 +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 1qJUOp-00075l-9r for xen-devel@lists.xenproject.org; Wed, 12 Jul 2023 07:36:35 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-flk1.inumbo.com (Halon) with ESMTP id d2700252-2086-11ee-8611-37d641c3527e; Wed, 12 Jul 2023 09:36:32 +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 1D76D2F4; Wed, 12 Jul 2023 00:37:14 -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 A97C33F67D; Wed, 12 Jul 2023 00:36:30 -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: d2700252-2086-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 v4 0/2] Add escape character argument to Xen console Date: Wed, 12 Jul 2023 08:35:54 +0100 Message-Id: <20230712073556.14719-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 Make the necessary changes to the console client, libxl and the xl console sub-command to support this. Changes in v4: * Update xl docs * Add necessary changes for libxl API version compatibility * Improve escape sequence argument validation 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(-)