fdt: add PMU node to fdt

PMU node in fdt stores some important info like irq number.

Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
This commit is contained in:
Jianyong Wu
2022-01-13 18:00:15 +08:00
committed by Xin Wang
parent 53060874a7
commit 81c5855184
3 changed files with 31 additions and 0 deletions
+2
View File
@@ -1172,6 +1172,7 @@ impl Vm {
virtio_iommu_bdf.map(|bdf| bdf.into()),
&*gic_device,
&self.numa_nodes,
pmu_supported,
)
.map_err(Error::ConfigureSystem)?;
@@ -2791,6 +2792,7 @@ mod tests {
&Vec::new(),
&BTreeMap::new(),
None,
true,
)
.is_ok())
}