Re: [PATCH 2/2] target/arm: Initlaize PMU feature for scratch vcpu

2021-04-11 Thread Gavin Shan
Hi Peter, On 4/7/21 5:38 PM, Peter Maydell wrote: On Wed, 7 Apr 2021 at 03:01, Gavin Shan wrote: If the scratch vCPU is initialized without PMU feature, we receive error on reading PMCR_EL0 as it's invisible in this case. It leads to host probing failure. This fixes the issue by initializing

Re: [PATCH 2/2] target/arm: Initlaize PMU feature for scratch vcpu

2021-04-07 Thread Peter Maydell
On Wed, 7 Apr 2021 at 03:01, Gavin Shan wrote: > > If the scratch vCPU is initialized without PMU feature, we receive > error on reading PMCR_EL0 as it's invisible in this case. It leads > to host probing failure. > > This fixes the issue by initializing the scratch vcpu with the PMU > feature ena

[PATCH 2/2] target/arm: Initlaize PMU feature for scratch vcpu

2021-04-06 Thread Gavin Shan
If the scratch vCPU is initialized without PMU feature, we receive error on reading PMCR_EL0 as it's invisible in this case. It leads to host probing failure. This fixes the issue by initializing the scratch vcpu with the PMU feature enabled and reading PMCR_EL0 from host. Otherwise, its value is