Re: [PATCH v2 4/4] KVM: arm64: Remove PMSWINC_EL0 shadow register

2021-07-21 Thread Marc Zyngier
On Tue, 20 Jul 2021 17:44:32 +0100, Alexandru Elisei wrote: > > Hi Marc, > > On 7/19/21 5:56 PM, Marc Zyngier wrote: > > Hi Alex, > > > > On 2021-07-19 17:35, Alexandru Elisei wrote: > >> Hi Marc, > >> > >> On 7/19/21 1:39 PM, Marc Zyngier wrote: > >>> We keep an entry for the PMSWINC_EL0

Re: [PATCH v2 4/4] KVM: arm64: Remove PMSWINC_EL0 shadow register

2021-07-20 Thread Alexandru Elisei
Hi Marc, On 7/19/21 5:56 PM, Marc Zyngier wrote: > Hi Alex, > > On 2021-07-19 17:35, Alexandru Elisei wrote: >> Hi Marc, >> >> On 7/19/21 1:39 PM, Marc Zyngier wrote: >>> We keep an entry for the PMSWINC_EL0 register in the vcpu structure, >>> while *never* writing anything there outside of

Re: [PATCH v2 4/4] KVM: arm64: Remove PMSWINC_EL0 shadow register

2021-07-19 Thread Marc Zyngier
Hi Alex, On 2021-07-19 17:35, Alexandru Elisei wrote: Hi Marc, On 7/19/21 1:39 PM, Marc Zyngier wrote: We keep an entry for the PMSWINC_EL0 register in the vcpu structure, while *never* writing anything there outside of reset. Given that the register is defined as write-only, that we always

Re: [PATCH v2 4/4] KVM: arm64: Remove PMSWINC_EL0 shadow register

2021-07-19 Thread Alexandru Elisei
Hi Marc, On 7/19/21 1:39 PM, Marc Zyngier wrote: > We keep an entry for the PMSWINC_EL0 register in the vcpu structure, > while *never* writing anything there outside of reset. > > Given that the register is defined as write-only, that we always > trap when this register is accessed, there is