[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v1] imagebuilder: Add a script to check the sanity of device tree
- To: "Orzel, Michal" <michal.orzel@xxxxxxx>, Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Ayan Kumar Halder <ayankuma@xxxxxxx>
- Date: Thu, 4 Sep 2025 15:16:43 +0100
- 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=73SUVBZ6nW9unotFUaNLknrnE+H2gSnoW980g2+MLUM=; b=atAC4rVRKOclXywpus7TbO86BOnlHoQy0CS4R2Q2sczsJWSjEcGpkJzlHpSCEdRljkCUs/UAyAixoXdyKGLMzmt+ZF3mcnNa9l/FrB6g1qwyc+m2gKSoT2gTPmr4R3XrEC3UibI/piKsLItOtT1sNgDh6Qatb/JtVOIA7iQNgk4PgcTssxDBqKk5fGysxtiDowOi+ps5mLQ+5tfyi8U9mdLTms/Hh288xXs9Mja/JLchhtT7IvQfFmapQuG3NwGkozJNL5c0nJzrVUX6LU5Tbh00wM0araFgsh9lVSkOa0S+RcVsXW0H8zOFcNJHwgboj+52PKaU5ae08aIHkEWW0g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=nihkuabmQ+XtHsDCqljTS4KKPKFK4wssaudbcIFIH2BMscQ9wxk4l2d7x46R1UudcYzjdYnsL4/gwzqm2V76eXV3ocz9r2PXpNSpAaZ6+79eoEdDpRMtAEORMqirrPSL5dSZbtKMpAa0j7lgKie4p6rlm5lI/i5htU0KNbkEJhPRmJG53HAaL6CTphVL0JuIXt+GiXoPkUsfYxxrNBI1LowaWq+kIt50/qq/e5yTU1qFEnb0Uzj5IucHV0hxBmC3DAALVAN0Rr97U6YctASsUIYDgA19nqjgh/WYMvQwgmdvVu9khmFGQyk1VwmTTHU0EjSvzM219Qgq1Q/3VCkXGw==
- Cc: <sstabellini@xxxxxxxxxx>, <bertrand.marquis@xxxxxxx>, <volodymyr_babchuk@xxxxxxxx>, <mark.brown@xxxxxxxxxxxxx>, <matthew.l.weber3@xxxxxxxxxx>, <sookyung.ahn@xxxxxxxxxx>
- Delivery-date: Thu, 04 Sep 2025 14:16:57 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
Hi,
On 01/09/2025 14:51, Ayan Kumar Halder wrote:
Hi Michal,
On 01/09/2025 14:17, Orzel, Michal wrote:
On 01/09/2025 14:31, Ayan Kumar Halder wrote:
Xen gives a panic if certain nodes are not present in the device
tree. In order
to prevent this panic, scripts/dt_sanity.py is written so that it
checks if the
node/s are present. If the node/s are not present, the script gives
an error.
User is expected to run the script against the device tree before
booting Xen
with dtb.
One thing I forgot to mention is that as part of safety certification,
we do need to do "Failure mode and error analysis". This means
describing the scenarios in which Xen can fail to perform its regular
functionality and coming up with prevention, detection and mitigation
measures.
One can argue that the panics caused by system misconfiguration, are the
most straightforward of all the errors. However, we do need to define
prevention mechanisms to avoid these panics. For this particular
failure, the prevention mechanism can be described as manually looking
into the device tree to ensure that the nodes expected by Xen, are
present. The script aims to provide a better alternative.
This script is not meant to catch all possible panics. However we do
want to have such scripts and utilities wherever possible, and document
them as part of our FMEA.
May be a safety expert can comment if the approach makes sense.
- Ayan
|