From nobody Mon Nov 23 22:28:39 2026 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=pass; 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=pass(p=reject dis=none) header.from=citrix.com ARC-Seal: i=1; a=rsa-sha256; t=1794310142; cv=none; d=zohomail.com; s=zohoarc; b=YPaCBRVDEnX/2zfeq93qURnEImxjTX2GYAVO/2YLY7lKkcRoGJX5B0P8PZAUehkQPVKZ+CZgNNwK9zGQ5RgAw6hmXOv0mP1cD1TU8r2yG8zLgxbQpvcAuYtlipPXV8TA+IJ/yeniLKaZN7spZb+DDYSk7s4YJ3jadnMZ1XBi6Wo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1794310142; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=aqQq/sXAmjdQ8AVefYn3BXNLntMo3EUXAilwAWxe7Bo=; b=I6T/u8qa3YLMkMwRpSJ2d177hMM3ZPw3Y5v3gBvwYVTfb78f/rZFQlB1Dv129cLrriTokHPj9zC+UKef5XF43npztnDBOblRriFDXDAA05jrnmNYEhHlnU83CrVXpjMca9Rltc8cFLpj1wlJO+8gyat0BpJDCyxqwrxyGGDfMfI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1794310142653107.20379905543268; Tue, 10 Nov 2026 03:29:02 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.1481553.1685452 (Exim 4.92) (envelope-from ) id 1xQk1l-0000da-Ch; Tue, 10 Nov 2026 11:28:37 +0000 Received: by outflank-mailman (output) from mailman id 1481553.1685452; Tue, 10 Nov 2026 11:28: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 1xQk1l-0000dS-9q; Tue, 10 Nov 2026 11:28:37 +0000 Received: by outflank-mailman (input) for mailman id 1481553; Tue, 10 Nov 2026 11:28:36 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) id 1xQk1k-0000dE-F2 for xen-devel@lists.xenproject.org; Tue, 10 Nov 2026 11:28:36 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1xQk1j-0072b1-Rn for xen-devel@lists.xenproject.org; Tue, 10 Nov 2026 12:28:35 +0100 Received: from [10.42.69.2] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6af2ffe3-2eae-0a2a0a5409dd-0a2a450299aa-0 for ; Tue, 10 Nov 2026 12:28:35 +0100 Received: from [209.85.221.52] (helo=mail-wr1-f52.google.com) by tlsNG-720697.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6af2ffde-6ca4-0a2a45020019-d155dd34c020-3 for ; Tue, 10 Nov 2026 12:28:30 +0100 Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-491aaed7565so1164874f8f.2 for ; Tue, 10 Nov 2026 03:28:30 -0800 (PST) Received: from localhost.localdomain (host-78-146-248-75.as13285.net. [78.146.248.75]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4982eedfb36sm4746333f8f.0.2026.11.10.03.28.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2026 03:28:29 -0800 (PST) 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" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=google header.d=citrix.com header.i="@citrix.com" header.h="Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1794310110; x=1794914910; darn=lists.xenproject.org; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=aqQq/sXAmjdQ8AVefYn3BXNLntMo3EUXAilwAWxe7Bo=; b=g33jUfi+2VAK93i08y55VedzzNN+bX+JqrnDcbqtyqtps0Nc8xUma1TkNE3Iz1C6vc aivuzwvXemzYUq8PUwNGOXOYa9KXI7IcE03yqrCKiDh5rQCYHfn8gQY/9mAX8uw1VO8/ oWIFwfTtD2ZVNODO97OcIr708ajei7rNIMlKo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794310110; x=1794914910; h=content-transfer-encoding:content-type:mime-version:message-id:date :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=aqQq/sXAmjdQ8AVefYn3BXNLntMo3EUXAilwAWxe7Bo=; b=Rem2mm7RqRDmO6nwLxOxWtdsdLVbE/yDjnBwhIw9OGMPkWA4Y8KUJioE3T/B1BZKWJ FAmvdNe6EKKOnIhP3uXeSu2A0jNewe22jT9SalvxGrJtPULFe3k2hrnQHf5U3rNiG36e vS4yZN2CuQ661jYnaHyu8no5XXZaEhqVz0vEeW9hMYU47qoc6kovkA0s8kCr5fW/T5gC 1nZw5lfzjLlKFvj1FFqf6bzKrSxrPkxHI4rzyGkA221KVc5ZPtV6GdPPOJnAhty1pnqO zZaDeTdM2Hw1mVgQAnMWrlzbpAVVfjOmzHmawTsqrz4REW9xDvS+6JhmMLyYx4gwcXpu bD8w== X-Gm-Message-State: APuU4Z8sqX5a0zA8DJc8+uKLKTUK6GD+/Qb96YjRfSlm2Ihf/BMiH3du Ma508RmMV9y5mB1UeVgTRp1IEhKqlZ10N8lvItUEtd2nes85oyGsqlExvj2PQih508xb/VvqYWX 69avp X-Gm-Gg: AYBFou0jZJ0oo1tKhuVLT+zBrojP1cYp1Z2yuD2wtBSRkogCfI46Bh6GYbc9whUmqwq 2XFiCzZB0P+H1deDdzK5vGjdS5a6861PJw2bzYxEL+RoMf/QCsPG7Dfcy1oKQJB2SJGOcdcFOId eXuHpLoinOhLI/1xN8krenPHnQS0E1E7Pe61BbRSY59GFhdbReFgxf1YqhNtXthtw30YNwu/R5w fXa6WsAY5GXu8fxKf7EssgVtLX8jQ+Quf5ArM3lwEqQjb8gMi/UntKBYdYOZz6MVgA+LdpOX0fd RpIBWVKbMfLFJjDHe/5ZZ97pB25yOp6m7A2w3SIMOqu1GKUWdNSFlw4v1pa8ARuQ/KrcG9V744U 08M4+oWgCLExGd/TCVj5Ijt+7Jcic+zR7wxXUd4wBFbaqhZsVeJqA/kRaQguXPVN/UeZ48TkZhz ZAHp4Eh0ndOcGpUwYixMQXUOeWESd5kL2ba8B7vW2qvafe8PE+7x5mykHgYwo59pvkziTS5JDun fI9VQk30dBzTn4zxMrD6C5rv+dBNBf+MA4ecJo8oo9FOJXp5hB4pKC8ePUyo5hwDyHrTmWXWc4s RNTf4VnjdAYr3m8fEkvdPBy4rDeN008WHwtByQ064PcHusBr3EKWu6WEIfngW74TdbUj5cO5pMl SWCTYY1rH+zBpibw3f3+raKOZ X-Received: by 2002:a5d:5f47:0:b0:498:be72:6370 with SMTP id ffacd0b85a97d-498be7263e8mr2211364f8f.10.1794310109557; Tue, 10 Nov 2026 03:28:29 -0800 (PST) From: Andrew Cooper To: Xen-devel Cc: Andrew Cooper , Jan Beulich , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Teddy Astie Subject: [PATCH] x86/traps: Make get_stack_{trace,dump}_bottom() static Date: Tue, 10 Nov 2026 11:28:27 +0000 Message-Id: <20261110112827.3063860-1-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-purgate-ID: tlsNG-720697/1794310115-30BC02AC-DA8E85AC/10/78276251493 X-purgate-type: spam X-purgate-size: 2228 X-ZohoMail-DKIM: pass (identity @citrix.com) X-ZM-MESSAGEID: 1794310144571158500 They have no external callers. Suggested-by: Jan Beulich Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich --- CC: Jan Beulich CC: Roger Pau Monn=C3=A9 CC: Teddy Astie This has apparently been sat around in my tree for 6 years. --- xen/arch/x86/include/asm/current.h | 8 -------- xen/arch/x86/traps.c | 4 ++-- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/xen/arch/x86/include/asm/current.h b/xen/arch/x86/include/asm/= current.h index fe9a86a3f7d4..875fe41d924f 100644 --- a/xen/arch/x86/include/asm/current.h +++ b/xen/arch/x86/include/asm/current.h @@ -118,14 +118,6 @@ static inline attr_const struct cpu_info *get_cpu_info= (void) #define get_stack_bottom() \ ((unsigned long)(&get_cpu_info()->guest_cpu_user_regs + 1)) =20 -/* - * Get the reasonable stack bounds for stack traces and stack dumps. Stack - * dumps have a slightly larger range to include exception frames in the - * printed information. The returned word is inside the interesting range. - */ -unsigned long get_stack_trace_bottom(unsigned long sp); -unsigned long get_stack_dump_bottom (unsigned long sp); - #ifdef CONFIG_LIVEPATCH # define CHECK_FOR_LIVEPATCH_WORK "call check_for_livepatch_work;" #elif defined(CONFIG_DEBUG) diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index 6d83162a967c..d2ca33f9e45c 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -673,7 +673,7 @@ static void show_hvm_stack(struct vcpu *v, const struct= cpu_user_regs *regs) * For the cases where the stack should not be inspected, pretend that the * passed stack pointer is already out of reasonable bounds. */ -unsigned long get_stack_trace_bottom(unsigned long sp) +static unsigned long get_stack_trace_bottom(unsigned long sp) { switch ( get_stack_page(sp) ) { @@ -690,7 +690,7 @@ unsigned long get_stack_trace_bottom(unsigned long sp) } } =20 -unsigned long get_stack_dump_bottom(unsigned long sp) +static unsigned long get_stack_dump_bottom(unsigned long sp) { switch ( get_stack_page(sp) ) { --=20 2.39.5