From nobody Fri Oct 31 16:11:53 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) 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=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=quarantine dis=quarantine) header.from=proton.me Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1748647178081346.2733983042335; Fri, 30 May 2025 16:19:38 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1001607.1381751 (Exim 4.92) (envelope-from ) id 1uL90Y-0006Fu-Aw; Fri, 30 May 2025 23:19:26 +0000 Received: by outflank-mailman (output) from mailman id 1001607.1381751; Fri, 30 May 2025 23:19:26 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uL90Y-0006Fi-7Y; Fri, 30 May 2025 23:19:26 +0000 Received: by outflank-mailman (input) for mailman id 1001607; Fri, 30 May 2025 23:19:24 +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 1uL90W-00055p-Py for xen-devel@lists.xenproject.org; Fri, 30 May 2025 23:19:24 +0000 Received: from mail-10628.protonmail.ch (mail-10628.protonmail.ch [79.135.106.28]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 8587ab02-3dac-11f0-b894-0df219b8e170; Sat, 31 May 2025 01:19:23 +0200 (CEST) X-Outflank-Mailman: Message body and most headers restored to incoming version 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: 8587ab02-3dac-11f0-b894-0df219b8e170 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=y532ikq7kra7dhltmtp4fdjura.protonmail; t=1748647162; x=1748906362; bh=jkfiK442l+6t8tHuxB/JprzcNDyu+sgNZHPHUFa9lYw=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=R4CYcQBGd3VSaCrwWVWPOPLq57+ERM5gNA0mkQ9VY3kwZwHblqr4CJbWs0ZtNQwqz W67sifljb+rsmrA43DjzKs1D2sD8BauHo2lFx8eP/huaC/LbiHBrXdWJWJmnBXk+x+ KxR8ljbm9ehSJIvqqy58zginRx5T2FH0DgixNOQ/8/Ny6mbRIfPzcCzhPlLvMlPkaj lA0RMC+dSlosbHblPyWOilSy9AFF7GiHdwfZfHO9VmWouj08bv/HllJEX+4HdlDQd1 CwP3pqX4kh+tkp0jPYzmR6uLkwinu2AcdcZpkn8rx9ruB7/o2tYMcvMez9zhXW4Old EZ7gXcJQcgOiA== Date: Fri, 30 May 2025 23:19:17 +0000 To: xen-devel@lists.xenproject.org From: dmkhn@proton.me Cc: andrew.cooper3@citrix.com, anthony.perard@vates.tech, jbeulich@suse.com, julien@xen.org, michal.orzel@amd.com, roger.pau@citrix.com, sstabellini@kernel.org, dmukhin@ford.com Subject: [PATCH v5 4/4] xen/console: rename console_rx to console_domid Message-ID: <20250530231841.73386-5-dmukhin@ford.com> In-Reply-To: <20250530231841.73386-1-dmukhin@ford.com> References: <20250530231841.73386-1-dmukhin@ford.com> Feedback-ID: 123220910:user:proton X-Pm-Message-ID: a63e93d5e86d2fb5344c6fbbda1c4880a17b4a9b MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1748647179362116600 Content-Type: text/plain; charset="utf-8" From: Denis Mukhin Update the symbol name to match the code better. No functional change. Signed-off-by: Denis Mukhin Reviewed-by: Stefano Stabellini --- xen/drivers/char/console.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c index 37289d5558..5797f29d31 100644 --- a/xen/drivers/char/console.c +++ b/xen/drivers/char/console.c @@ -503,11 +503,11 @@ static void cf_check conring_dump_keyhandler(unsigned= char key) #define switch_code (opt_conswitch[0]-'a'+1) =20 /* Console owner domain identifier. */ -static domid_t __read_mostly console_rx =3D DOMID_XEN; +static domid_t __read_mostly console_domid =3D DOMID_XEN; =20 struct domain *console_get_domain(void) { - struct domain *d =3D rcu_lock_domain_by_id(console_rx); + struct domain *d =3D rcu_lock_domain_by_id(console_domid); =20 if ( !d ) return NULL; @@ -533,7 +533,7 @@ static void console_set_domid(domid_t domid) else printk("*** Serial input to DOM%u", domid); =20 - console_rx =3D domid; + console_domid =3D domid; =20 if ( switch_code ) printk(" (type 'CTRL-%c' three times to switch input)", @@ -549,10 +549,10 @@ static void console_switch_input(void) { domid_t hint; =20 - if ( console_rx =3D=3D DOMID_XEN ) + if ( console_domid =3D=3D DOMID_XEN ) hint =3D get_initial_domain_id(); else - hint =3D console_rx + 1; + hint =3D console_domid + 1; =20 hint =3D domid_find_with_input_allowed(hint); =20 @@ -564,7 +564,7 @@ static void __serial_rx(char c) struct domain *d; int rc =3D 0; =20 - if ( console_rx =3D=3D DOMID_XEN ) + if ( console_domid =3D=3D DOMID_XEN ) return handle_keypress(c, false); =20 d =3D console_get_domain(); --=20 2.34.1