Re: [PATCH v2 9/9] KVM: arm/arm64: avoid race by caching MPIDR

2017-04-05 Thread Andrew Jones
On Wed, Apr 05, 2017 at 01:03:36PM +0200, Christoffer Dall wrote: > On Wed, Apr 05, 2017 at 10:50:05AM +0200, Andrew Jones wrote: > > On Tue, Apr 04, 2017 at 09:44:39PM +0200, Christoffer Dall wrote: > > > On Fri, Mar 31, 2017 at 06:06:58PM +0200, Andrew Jones wrote: > > > > Cache the MPIDR in the

Re: [PATCH v2 9/9] KVM: arm/arm64: avoid race by caching MPIDR

2017-04-05 Thread Christoffer Dall
On Wed, Apr 05, 2017 at 10:50:05AM +0200, Andrew Jones wrote: > On Tue, Apr 04, 2017 at 09:44:39PM +0200, Christoffer Dall wrote: > > On Fri, Mar 31, 2017 at 06:06:58PM +0200, Andrew Jones wrote: > > > Cache the MPIDR in the vcpu structure to fix potential races that > > > can arise between vcpu

Re: [PATCH v2 9/9] KVM: arm/arm64: avoid race by caching MPIDR

2017-04-05 Thread Andrew Jones
On Tue, Apr 04, 2017 at 09:44:39PM +0200, Christoffer Dall wrote: > On Fri, Mar 31, 2017 at 06:06:58PM +0200, Andrew Jones wrote: > > Cache the MPIDR in the vcpu structure to fix potential races that > > can arise between vcpu reset and the extraction of the MPIDR from > > the sys-reg array. > >

Re: [PATCH v2 9/9] KVM: arm/arm64: avoid race by caching MPIDR

2017-04-04 Thread Christoffer Dall
On Fri, Mar 31, 2017 at 06:06:58PM +0200, Andrew Jones wrote: > Cache the MPIDR in the vcpu structure to fix potential races that > can arise between vcpu reset and the extraction of the MPIDR from > the sys-reg array. I don't understand the race, sorry. Can you be more specific in where this

[PATCH v2 9/9] KVM: arm/arm64: avoid race by caching MPIDR

2017-03-31 Thread Andrew Jones
Cache the MPIDR in the vcpu structure to fix potential races that can arise between vcpu reset and the extraction of the MPIDR from the sys-reg array. Signed-off-by: Andrew Jones --- arch/arm/include/asm/kvm_emulate.h | 2 +- arch/arm/include/asm/kvm_host.h | 3 +++