vmm: Init PMU for vcpu when create vm

PMU is needed in guest for performance profiling, thus should be
enabled.

Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
This commit is contained in:
Jianyong Wu
2022-01-15 15:27:55 +08:00
committed by Xin Wang
parent 9bcb984962
commit 53060874a7
3 changed files with 62 additions and 0 deletions

View File

@@ -43,6 +43,9 @@ pub enum Error {
/// Error configuring the MPIDR register
VcpuRegMpidr(hypervisor::HypervisorCpuError),
/// Error initializing PMU for vcpu
VcpuInitPmu,
}
impl From<Error> for super::Error {