Re: [PATCH v2] KVM: ARM64: fix phy counter access failure in guest.

2017-06-12 Thread Christoffer Dall
On Mon, Jun 12, 2017 at 10:08:16AM +0100, Marc Zyngier wrote: > Nit: Please fix the time on your machine. It ended up in my Spam folder > because it comes from the future... > > On 12/06/17 15:37, Hu Huajun wrote: > > When reading the cntpct_el0 in guest with VHE (Virtual Host Extension) > > enabl

Re: [PATCH v2] KVM: ARM64: fix phy counter access failure in guest.

2017-06-12 Thread Marc Zyngier
Nit: Please fix the time on your machine. It ended up in my Spam folder because it comes from the future... On 12/06/17 15:37, Hu Huajun wrote: > When reading the cntpct_el0 in guest with VHE (Virtual Host Extension) > enabled in host, the "Unsupported guest sys_reg access" error reported. > The r

Re: [PATCH v2] KVM: ARM64: fix phy counter access failure in guest.

2017-06-12 Thread Christoffer Dall
Hi, On Mon, Jun 12, 2017 at 10:37:48PM +0800, Hu Huajun wrote: > When reading the cntpct_el0 in guest with VHE (Virtual Host Extension) > enabled in host, the "Unsupported guest sys_reg access" error reported. > The reason is cnthctl_el2.EL1PCTEN is not enabled, which is expected > to be done in k

[PATCH v2] KVM: ARM64: fix phy counter access failure in guest.

2017-06-11 Thread Hu Huajun
When reading the cntpct_el0 in guest with VHE (Virtual Host Extension) enabled in host, the "Unsupported guest sys_reg access" error reported. The reason is cnthctl_el2.EL1PCTEN is not enabled, which is expected to be done in kvm_timer_init_vhe(). The problem is kvm_timer_init_vhe is called by cpu_