hv: fdt: Add API to set kernel boot args

Set kernel bootargs through FDT path "/chosen/bootargs".

Tracked-On: #8841
Signed-off-by: Yifan Liu <yifan1.liu@intel.com>
Acked-by: Wang Yu1 <yu1.wang@intel.com>
This commit is contained in:
Yifan Liu
2025-11-07 05:17:09 +00:00
committed by acrnsi-robot
parent 95ac40143b
commit 9f684d04e4
3 changed files with 31 additions and 3 deletions

View File

@@ -18,5 +18,6 @@ uint8_t *get_host_fdt(void);
int fdt_get_phys_mem_region(const void *fdt, uint64_t *addr_out, uint64_t *size_out);
int fdt_get_rsvd_mem_regions(const void *fdt, struct mem_region *out_region, int *out_nr_region);
int fdt_add_rsvd_node(void *fdt, uint64_t addr, uint64_t size);
int fdt_set_kernel_bootargs(void *fdt, const char *bootargs);
#endif /* FDT_API_H */