[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XEN][PATCH v5 13/17] xen/arm: Implement device tree node removal functionalities
- To: Vikram Garhwal <vikram.garhwal@xxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Mon, 17 Apr 2023 10:08:28 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=sJyVcNZsl+a0+4gqIW4m8I94oRY2MExdgWMzYzXAf2k=; b=Yu906kOp3QtXwiTmFJVA7yfI5Ea+egoPkdtDDTHT7b7bk7SI17JLsjKyjqM4mdWFYyFA14O/HCbPQtulEVeDqxlQ2b/v0ZJBzNpjm12ehRWhQKBrtnoHkzmVtG15sjNlZkc/vdhbwuxC7zDD0lWklmkaYBnuQqM0G1Uhmwq1QKmkeiD+vPDhBKEnvFYaatLtAUfKPaQxelEwY8ShI4pa4saUgo/+oh71MiJKDeusmfec/xSRADOueur3zOSPDLkg5eZJfk+Q6CnDU4c2IYFlRg9qwGhqa+WKnxdTSKdQwFwJt6qrPF9euzhGEQ9RS2/6D4bhwT+yqaxGtuhd/uKJIw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C2lCgzE6fSIvIsndOT4XxfcZyrODK3VxW9V67XCV6JwVilE77MY9cOf2P6jLMD5fnEYpzQI0HWdbjFqlj9hoCExEuFiJlHAWKMGPFlVutFCn0J1yulnqR4jhLAfR6XBhybC24m9f2Q/JPBvYWoS2jl8b/XvqmYazJUUo9VESb4LQ/dwZg6KrxaD0RpX5JfXHBp76v0co/TWUb9nGly0psDnfBL1ohjyfUwylGnXrS3WHnxH4Qj0H5dYm5dHrB5c1ZFQJ566bCiPwN1PMLh2fKBnbDQ7sNI6hH9HKOOML73ixHmEdYXuWqBIiOBNakZPKI4nVNrX2RR5cZyg4br511g==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
- Cc: sstabellini@xxxxxxxxxx, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Mon, 17 Apr 2023 08:09:01 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 11.04.2023 21:16, 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 | 415 +++++++++++++++++++++++++++++++++++
> xen/include/public/sysctl.h | 24 ++
> xen/include/xen/dt_overlay.h | 59 +++++
> 5 files changed, 514 insertions(+), 1 deletion(-)
> create mode 100644 xen/common/dt_overlay.c
> create mode 100644 xen/include/xen/dt_overlay.h
Can new files please use dashes in preference to underscores in their names?
Jan
|