[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: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • Date: Mon, 1 Sep 2025 15:17:11 +0200
  • 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=rx3fOCSwsGtXm6ZBrmsvbB7eQMtANgtB6v4VWy1ncdE=; b=mFCqh33QrWKPVGvm8ueyxIlC9MjmbTfhuVZ507DwAMMt5BiSKi+OGZafQzAK6F4Upn97ea7a9pzAX0kb43KHKInzNARl9nVBHfB+V9ezzEBBrsioiDmT5jTLYQk48jQC39rJv3U9cLJQycZ//VW0M3sxKcHkkBT+GLY4wgncHLjo666dRnogdzaf02y089cG9/OwkGJqwqj62mwxu+LNmC4S02Tl67fjfHU8X4CVY/gWMlUo5TzzEM0L9AMBZiOMUj9b8uiCvqhWs6TGReD8C0STfcLp14EALla/OSswjm+JECaRU3rzoJmIaGe0wBeiFLhS1KpmbN3doHi9iHGOIg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZPX0FaIHbwS50xg8Cm+sufucZpuYsOkZwDabBurdznP52DMpdZD2B6K0rtOKxi8hJm16JEzkWS4mSEyENqkHwB+ui7LEvmJvX9/Bw0EUzc+iA8RA0f8t675yMlm5f30Sh7CwapruFJMB46kGZIWhNumutOlwhWg3+UPYKOk9VbgaFEMVGs3PTXkZL33/mQTqAxsey8lF7RwJBvi/JhJyGYGEz0XWEaOjogG2QMAc1zA46rGoM2pi1zLPIhg/3ZHF4MAib1cH45B4NxSwYA9SDvQ20QPpB/0tebf2qA/1aGEAg8YEIUaunsX0iZIoj/yhgaiNfSfhDdN3V+kb4f+WXQ==
  • Cc: <sstabellini@xxxxxxxxxx>, <bertrand.marquis@xxxxxxx>, <volodymyr_babchuk@xxxxxxxx>, <mark.brown@xxxxxxxxxxxxx>, <matthew.l.weber3@xxxxxxxxxx>, <sookyung.ahn@xxxxxxxxxx>
  • Delivery-date: Mon, 01 Sep 2025 13:17:25 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


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.
I would expect the script to know what to look for in a passed dtb. Otherwise
it's just a script that searches for the list of specified compatibilities by
the user. In other words, a simple grep would also do the job. Compatibility is
not everything, there are other things that would prevent Xen from booting.
Also, often times the dtb is modified by the bootloader before passing control
over to Xen (i.e. it may differ from the base dtb).

~Michal




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.