Re: [PATCH v4 33/40] KVM: arm64: Configure c15, PMU, and debug register traps on cpu load/put for VHE

2018-02-22 Thread Christoffer Dall
On Wed, Feb 21, 2018 at 06:20:54PM +, Marc Zyngier wrote: > On Thu, 15 Feb 2018 21:03:25 +, > Christoffer Dall wrote: > > > > We do not have to change the c15 trap setting on each switch to/from the > > guest on VHE systems, because this setting only affects EL0. > > Did you mean EL1

Re: [PATCH v4 33/40] KVM: arm64: Configure c15, PMU, and debug register traps on cpu load/put for VHE

2018-02-22 Thread Andrew Jones
On Thu, Feb 15, 2018 at 10:03:25PM +0100, Christoffer Dall wrote: > We do not have to change the c15 trap setting on each switch to/from the > guest on VHE systems, because this setting only affects EL0. > > The PMU and debug trap configuration can also be done on vcpu load/put > instead, because

Re: [PATCH v4 33/40] KVM: arm64: Configure c15, PMU, and debug register traps on cpu load/put for VHE

2018-02-21 Thread Marc Zyngier
On Thu, 15 Feb 2018 21:03:25 +, Christoffer Dall wrote: > > We do not have to change the c15 trap setting on each switch to/from the > guest on VHE systems, because this setting only affects EL0. Did you mean EL1 instead? > > The PMU and debug trap configuration can also be done on vcpu

[PATCH v4 33/40] KVM: arm64: Configure c15, PMU, and debug register traps on cpu load/put for VHE

2018-02-15 Thread Christoffer Dall
We do not have to change the c15 trap setting on each switch to/from the guest on VHE systems, because this setting only affects EL0. The PMU and debug trap configuration can also be done on vcpu load/put instead, because they don't affect how the host kernel can access the debug registers while