[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] xen/arm: ignore spurious interrupts from virtual timer
- To: Mykola Kvach <Mykola_Kvach@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: "Orzel, Michal" <michal.orzel@xxxxxxx>
- Date: Fri, 4 Dec 2026 08:26:27 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=epam.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZxYcST1VxoJ+TEyG/1F2iLstOS0wzsFeeOtzy4ryHFc=; b=ipculp58WNbcktD6Grr3Y5N7JtmVplmAXCBGGpwgH70L66vuv1yvxJ4k47NdmFl9RIzdOZvSeyKTXniSt9t+6PE41tyTeRIUFSztjapc6sKH8Jh4scBMy4NXczqoOsb2aUidWqdYSn6cfwka3Qo2GzWmMXwAkLcFYmJwEarn5r7+xGMgv3xGc+8J4gYptKZfgqybbTC5ph5D+DH7yPwfd9Hw4cYiWLM65ciILLDMBLq+IV3yaZj5wqYQNYdH/hCly1Tlgt0supboy9JeqmZWu3KidOiHcR94+AaJ4vNAwgLS6S/2DJq99WAIKQT/CAf7/fdSbamYZTgy1qv8xwj3og==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JTfmdbJq1fGPImLcc11cwDJBmU1JWqiftqIJr3ByRGnl7Qi0J4W16vLdfqG0Yu2aaflALFNdBqZQHnW5ezogx0TaWsW7UEzoVqlbhXLMJNFXSLVjV+UOY2z+BO4f3cLIzIMCKJI3lVsduFMMKUg38Skn+Q1QwFLLGW2XBtjIjBpn0X2jolhtoTvslfqLLSjB2E6W9G/MBUtZQ5Pron0Nx6OPoNt8qodZRKpY7gBsIIisNppjZXd5jM3rtp9+DshfFsjwbF265RZ+nGzpECH4XXkbW3lSL9R3DQzbvacLjVdKZjHK8hqsqsbejuqdmvsnvDSmPaVIYyo4TwmSSmlBfQ==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, "Volodymyr Babchuk" <Volodymyr_Babchuk@xxxxxxxx>
- Delivery-date: Fri, 04 Dec 2026 07:26:49 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 04-Dec-26 00:25, Mykola Kvach wrote:
> If the virtual timer IRQ fires but the timer is not pending (the ISTATUS
> bit in CNTV_CTL_EL0 is clear), Xen masks the timer and injects the IRQ
> into the guest. Linux unmasks the timer when it programs a new CVAL.
> If ISTATUS is clear, its timer IRQ handler skips the clock event handler.
> The timer can stay masked and the guest can miss the next timer IRQ.
>
> This patch mirrors the Linux arm generic timer handler: if the interrupt
> fires but the pending bit is not set, treat it as spurious and ignore it.
>
> This issue is reproducible under heavy load on the R-Car X5H board
> (Cortex-A720AE r0p0).
>
> Add a performance counter for virtual timer IRQs ignored by this check.
>
> Fixes: b765caf5101a ("xen/arm: support the ARM generic virtual timer")
> Signed-off-by: Mykola Kvach <mykola_kvach@xxxxxxxx>
> Reviewed-by: Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>
Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>
~Michal
|