[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
Hi, After the FMEA discussion at Xen summit, I want to put a clarification. On 01/09/2025 13: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. Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@xxxxxxx> --- Hi,In some of the discussions with the safety experts and upstream folks, one issuethat kept coming up is there are lots of ‘faulty system configuration’ and ‘impossible conditions’ checks in Xen. While these conditions can rarely occur, Xen would panic if any of such condition does occur.For example, during bootup, Xen parses the device tree .It checks if the device tree nodes are present for timer, interrupt-controller, memory, cpu, etc. If these nodes are not present, Xen panics.As part of safety certification, we have 3 aims :-1. We want to reduce the instances where Xen can panic. This is to improve the robustness. 2. We need to define a safe state when a fault is triggered in Xen. As faults (like the one mentioned here) are triggered during boot time and it is due to incorrect system configuration in device tree, it is hard to define a safe state. 3. Avoid validating all the instances of system configuration errors. By having an external tool, we push the responsibility to the system integrator. The system integrator needs to run the tool to validate all the properties that Xen checks for. This can be a justification for the coverage gap for those checks in Xen. This isn't true as we will have tests to validate all possible system configuration errors. However, I want to use this script as a 'prevention' mechanism to check for the sanity of device tree (which can be offloaded to the system integrator). There could be many of such errors arising from misconfiguration in device tree. Wherever possible, we will use a script or we can explain how to identify these errors before Xen boots. We want to convey that certain failures in Xen are not possible (or there is atleast some mitigation) if the user has read the FMEA or safety manual or public documents. - Ayan
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |