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 E0444CCFA04 for ; Tue, 4 Nov 2025 10:46:25 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1155649.1485089 (Exim 4.92) (envelope-from ) id 1vGEYJ-0007Rk-NJ; Tue, 04 Nov 2025 10:46:15 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1155649.1485089; Tue, 04 Nov 2025 10:46:15 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vGEYJ-0007Rd-KL; Tue, 04 Nov 2025 10:46:15 +0000 Received: by outflank-mailman (input) for mailman id 1155649; Tue, 04 Nov 2025 10:46:14 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vGEYI-0007RI-5V for xen-devel@lists.xenproject.org; Tue, 04 Nov 2025 10:46:14 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.96) (envelope-from ) id 1vGEYH-000m9x-0d; Tue, 04 Nov 2025 10:46:13 +0000 Received: from [2a02:8012:3a1:0:2858:32e7:18b8:3bf] by xenbits.xenproject.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vGEYH-00B4Rx-0o; Tue, 04 Nov 2025 10:46:13 +0000 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" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=m4d65BzOjjw23PnfyKNRcSMNDlBgZqZ/9Q0lDxpIUBc=; b=NYmx0NUPhV4F0PUGmnikHLlY2H m21WiVrGHxt7ilTfoWLtUUxONt+NbBvj5/OHxGtdJu8uzI0ALN/VVSu642Valx5QmOTnNneWWZzwI 58Y+X42/HIlVP9Pb9C4/WgB1OmJk/+gv3s3OwkRE2obTdkgghUIFS5xzhPKQzkYUtJyc=; Message-ID: Date: Tue, 4 Nov 2025 10:46:10 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] domain: adjust soft-reset arch dependency Content-Language: en-GB To: Jan Beulich , "xen-devel@lists.xenproject.org" Cc: Andrew Cooper , Stefano Stabellini , Anthony PERARD , Michal Orzel , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Penny Zheng , Christopher Clark , "Daniel P. Smith" , Bertrand Marquis , Volodymyr Babchuk , Timothy Pearson , Oleksii Kurochko References: From: Julien Grall In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Jan, On 30/10/2025 12:10, Jan Beulich wrote: > Arm's arch_domain_soft_reset() returning -ENOSYS is quite unhelpful: This > way a domain will be crashed if a tool stack mistakenly invokes > XEN_DOMCTL_soft_reset on it. Instead the tool stack should be told of its > mistake. > > Introduce HAS_SOFT_RESET, implied only by x86. "imply" rather than > "select" such that HAS_SOFT_RESET can later gain a dependency on > MGMT_HYPERCALLS. That way HAS_SOFT_RESET will go off when > MGMT_HYPERCALLS is off. > > Check the new setting early in domctl handling, and compile out the thus > dead (when HAS_SOFT_RESET=n) domain_soft_reset() as well as its dedicated > helpers. > > Signed-off-by: Jan Beulich Acked-by: Julien GralL Cheers, -- Julien Grall