[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/2] Xen real-time x86
- To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Stefano Stabellini <stefano.stabellini@xxxxxxx>
- Date: Tue, 8 Jul 2025 11:32:30 -0700
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org 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=cDzK2PaLAxehE4jqToTbXo9SpSv7K9LLsBbDs0bVq3A=; b=bDqTXEz0MzZ1VaUGqGpITatjO+0cl+CEkoA1czjL9twR41MP02yQCrZJ6D8TXf2sK8Z7tv6Y+JAsXDG81IOhNT3AeeDsWfIF6Y5MN/OfmESPwIUuJzbb14RCoO1xGk/FrOfAtE/o2/nhSd9i9Gj8RajfZUsCkVri8Lh6J3q8yTDZLOEzcG4MAo/i1q/5r8IfiDk1/69XwLv6jiadMfTV7gB2R6OjTDQIlkZZbYWnJTYU/bvPcP7qlrIrXIFXiGhMfH3tlen23f+2XvJKYV3sFFSnXxg3KaEWsvFrwSpvCkPEywMzQ6FSod89RAMcaGGs/1IE1z5N0A3JADdwFubAUQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UCfYFjF6gYXevadzcm0m6kgdDTbtNt0EawAa4ATWA72K3jOuSzqcYMVO1yr3Ndb66aKD+ZBnQ6fNM0yCoWk28LFRK+YV3Ev3FceZWAUU65O6d8rr846elvrIatKcgCez9jiCGEWIJtKit6ycC8cgbcj9mo3U6W4Kxr1xby84XVwYrM8W0wGjqpzcc9SfB9tlCyz+gqAcIaNSVzRVPljIklrS5C6CzjZjwdiF4D1AfNDJGv87vkMY1Kor+h7+vr0EJrhyo8y0Cwmp2juFGHxtGTfff0CSLJDCiLxeO5zvp5NrmbPjw+egUVp0ou9LqIymZZ/2OZ6ws+uMnH8qpwbPBA==
- Cc: Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, <stefano.stabellini@xxxxxxx>, <Xenia.Ragiadakou@xxxxxxx>, <alejandro.garciavallejo@xxxxxxx>, <Jason.Andryuk@xxxxxxx>
- Delivery-date: Tue, 08 Jul 2025 18:32:56 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Hi all,
This short patch series improves Xen real-time execution on AMD x86
processors.
The key to real-time performance is deterministic guest execution times
and deterministic guest interrupt latency. In such configurations, the
null scheduler is typically used, and there should be no IPIs or other
sources of vCPU execution interruptions beyond the guest timer interrupt
as configured by the guest, and any passthrough interrupts for
passthrough devices.
This is because, upon receiving a critical interrupt, the guest (such as
FreeRTOS or Zephyr) typically has a very short window of time to
complete the required action. Being interrupted in the middle of this
critical section could prevent the guest from completing the action
within the allotted time, leading to malfunctions.
To address this, the patch series disables IPIs that could potentially
affect the real-time domain.
Cheers,
Stefano
Stefano Stabellini (2):
xen/x86: don't send IPI to sync TSC when it is reliable
xen/x86: introduce MCE_NONFATAL
xen/arch/x86/Kconfig | 14 ++++++++++++++
xen/arch/x86/cpu/mcheck/Makefile | 6 +++---
xen/arch/x86/time.c | 6 +-----
3 files changed, 18 insertions(+), 8 deletions(-)
|