Commit Graph

3 Commits

Author SHA1 Message Date
Yifan Liu
9f684d04e4 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>
2025-11-14 10:44:41 +08:00
Yifan Liu
b02903e6dd hv: fdt: Add API to read physical memory layout from FDT
This patch adds ACRN-side APIs that uses libfdt to manupulate
FDT. This patch implements two APIs: read physical memory range
(assuming it is one continous physical range), and read reserved
memory ranges (multiple reserved memory ranges may present).

Tracked-On: #8841
Signed-off-by: Yifan Liu <yifan1.liu@intel.com>
Acked-by: Wang Yu1 <yu1.wang@intel.com>
2025-11-14 10:44:41 +08:00
Yifan Liu
a82c08849e hv: fdt: Save and sanity check fdt
Saves physical FDT and do basic sanity checking.

Tracked-On: #8838
Signed-off-by: Yifan Liu <yifan1.liu@intel.com>
Acked-by: Wang Yu1 <yu1.wang@intel.com>
2025-11-04 10:59:30 +08:00