[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN][PATCH v6 15/19] xen/arm: Implement device tree node removal functionalities
On 03.05.2023 01:36, Vikram Garhwal wrote: > Introduce sysctl XEN_SYSCTL_dt_overlay to remove device-tree nodes added using > device tree overlay. > > xl dt-overlay remove file.dtbo: > Removes all the nodes in a given dtbo. > First, removes IRQ permissions and MMIO accesses. Next, it finds the nodes > in dt_host and delete the device node entries from dt_host. > > The nodes get removed only if it is not used by any of dom0 or domio. > > Also, added overlay_track struct to keep the track of added node through > device > tree overlay. overlay_track has dt_host_new which is unflattened form of > updated > fdt and name of overlay nodes. When a node is removed, we also free the memory > used by overlay_track for the particular overlay node. > > Nested overlay removal is supported in sequential manner only i.e. if > overlay_child nests under overlay_parent, it is assumed that user first > removes > overlay_child and then removes overlay_parent. > > Signed-off-by: Vikram Garhwal <vikram.garhwal@xxxxxxx> > --- > xen/arch/arm/sysctl.c | 16 +- > xen/common/Makefile | 1 + > xen/common/dt-overlay.c | 419 +++++++++++++++++++++++++++++++++++ > xen/include/public/sysctl.h | 23 ++ > xen/include/xen/dt-overlay.h | 58 +++++ > 5 files changed, 516 insertions(+), 1 deletion(-) > create mode 100644 xen/common/dt-overlay.c > create mode 100644 xen/include/xen/dt-overlay.h Is it possible that on the next patch I and other REST maintainers are Cc-ed merely because at this point of introducing the two new files they're not added to (perhaps) the DEVICE TREE section of ./MAINTAINERS right away? Jan
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |