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 4E0C2D2F347 for ; Tue, 13 Jan 2026 16:53:37 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1202198.1517819 (Exim 4.92) (envelope-from ) id 1vfhdv-00043e-QC; Tue, 13 Jan 2026 16:53:19 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1202198.1517819; Tue, 13 Jan 2026 16:53:19 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vfhdv-00043X-NE; Tue, 13 Jan 2026 16:53:19 +0000 Received: by outflank-mailman (input) for mailman id 1202198; Tue, 13 Jan 2026 16:53:17 +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 1vfhdt-00043K-Td for xen-devel@lists.xenproject.org; Tue, 13 Jan 2026 16:53:17 +0000 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [2a00:1450:4864:20::530]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 55db249f-f0a0-11f0-9ccf-f158ae23cfc8; Tue, 13 Jan 2026 17:53:07 +0100 (CET) Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-64baaa754c6so11309366a12.3 for ; Tue, 13 Jan 2026 08:53:07 -0800 (PST) Received: from [192.168.1.6] (user-109-243-67-101.play-internet.pl. [109.243.67.101]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b871e383217sm562886366b.71.2026.01.13.08.53.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Jan 2026 08:53:06 -0800 (PST) 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: 55db249f-f0a0-11f0-9ccf-f158ae23cfc8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768323187; x=1768927987; darn=lists.xenproject.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=quR6N57RKz+5wdEK9dYC/7627WTrMtYCBE5SL1cVH24=; b=m9Br7jjYadDQ3hM20Pt7xjdC9nLmuIH4d5sHF+L7aPHtPGqZvx0XGrZ1EAV9tWGfZ6 7KNqFf/dnTCYswsBFeu59ewsN5ulQ3AQYmzSCSa7h9wxFwGfPYX3n4QFhDMh6LxMUdhu PXCC82GuVHjHqNJ7CaJHHsWMwoCYDYW5zbBFqsPS8qG2QnXTG1Ag6bqrKmqv6Q+ymYSE Kamgl2QcC/LnyyjBGOFvw12wzsGsOHJyO80dVHPV8t3S21IZBSXHSf9A2oBSJO5LHk8c zXPJ2WO2zVoVIZJFNUV90CrlnA2kZjREIs9S7YXsPLKpc8jDPvYnIn/6eSY6JmqphjGI 3hrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768323187; x=1768927987; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=quR6N57RKz+5wdEK9dYC/7627WTrMtYCBE5SL1cVH24=; b=wPcexVVHDMDg3tHOso7yvT7GEZXehoQ/OpUqJT+k3p9O80UGzWQeO95upv1hhsNq2P B7DmQbRwJ5nIFqeTPbHjxnrLtvOjW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kdgWQsDmPmGyT52fboynC+8J2+zVwxSmqZ5Ga2XwSRg== X-Received: by 2002:a17:907:780b:b0:b87:1fe8:9534 with SMTP id a640c23a62f3a-b871fe8af72mr429814766b.48.1768323186762; Tue, 13 Jan 2026 08:53:06 -0800 (PST) Message-ID: Date: Tue, 13 Jan 2026 17:53:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 14/15] xen/riscv: handle hypervisor timer interrupts To: Jan Beulich Cc: Alistair Francis , Connor Davis , Andrew Cooper , Anthony PERARD , Michal Orzel , Julien Grall , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Stefano Stabellini , xen-devel@lists.xenproject.org References: Content-Language: en-US From: Oleksii Kurochko In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/12/26 5:15 PM, Jan Beulich wrote: > On 24.12.2025 18:03, Oleksii Kurochko wrote: >> @@ -108,6 +109,15 @@ static void do_unexpected_trap(const struct cpu_user_regs *regs) >> die(); >> } >> >> +static void timer_interrupt(unsigned long cause) >> +{ >> + /* Disable the timer to avoid more interrupts */ >> + csr_clear(CSR_SIE, BIT(IRQ_S_TIMER, UL)); >> + >> + /* Signal the generic timer code to do its work */ >> + raise_softirq(TIMER_SOFTIRQ); >> +} > Why is "cause" being passed when it's not used? Good point. No any sense in it. Even more I think the cause is pretty known in such handler, it should be definitely = IRQ_S_TIMER. I will drop an argument for timer_interrupt(). Thanks. ~ Oleksii