Re: [PATCH] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-04 Thread Christoffer Dall
On Tue, Jul 04, 2017 at 01:41:49AM +0200, Andrea Arcangeli wrote: > Hello, > > On Mon, Jul 03, 2017 at 10:48:03AM +0200, Alexander Graf wrote: > > On 07/03/2017 10:03 AM, Christoffer Dall wrote: > > > Hi Alex, > > > > > > On Fri, Jun 23, 2017 at 05:21:59PM +0200, Alexander Graf wrote: > > >> If

Re: [PATCH] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-04 Thread Christoffer Dall
On Tue, Jul 04, 2017 at 01:41:49AM +0200, Andrea Arcangeli wrote: > Hello, > > On Mon, Jul 03, 2017 at 10:48:03AM +0200, Alexander Graf wrote: > > On 07/03/2017 10:03 AM, Christoffer Dall wrote: > > > Hi Alex, > > > > > > On Fri, Jun 23, 2017 at 05:21:59PM +0200, Alexander Graf wrote: > > >> If

Re: [PATCH] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-03 Thread Andrea Arcangeli
Hello, On Mon, Jul 03, 2017 at 10:48:03AM +0200, Alexander Graf wrote: > On 07/03/2017 10:03 AM, Christoffer Dall wrote: > > Hi Alex, > > > > On Fri, Jun 23, 2017 at 05:21:59PM +0200, Alexander Graf wrote: > >> If we want to age an HVA while the VM is getting destroyed, we have a > >> tiny race

Re: [PATCH] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-03 Thread Andrea Arcangeli
Hello, On Mon, Jul 03, 2017 at 10:48:03AM +0200, Alexander Graf wrote: > On 07/03/2017 10:03 AM, Christoffer Dall wrote: > > Hi Alex, > > > > On Fri, Jun 23, 2017 at 05:21:59PM +0200, Alexander Graf wrote: > >> If we want to age an HVA while the VM is getting destroyed, we have a > >> tiny race

Re: [PATCH] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-03 Thread Alexander Graf
On 07/03/2017 10:03 AM, Christoffer Dall wrote: Hi Alex, On Fri, Jun 23, 2017 at 05:21:59PM +0200, Alexander Graf wrote: If we want to age an HVA while the VM is getting destroyed, we have a tiny race window during which we may end up dereferencing an invalid kvm->arch.pgd value. CPU0

Re: [PATCH] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-03 Thread Alexander Graf
On 07/03/2017 10:03 AM, Christoffer Dall wrote: Hi Alex, On Fri, Jun 23, 2017 at 05:21:59PM +0200, Alexander Graf wrote: If we want to age an HVA while the VM is getting destroyed, we have a tiny race window during which we may end up dereferencing an invalid kvm->arch.pgd value. CPU0

Re: [PATCH] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-03 Thread Christoffer Dall
Hi Alex, On Fri, Jun 23, 2017 at 05:21:59PM +0200, Alexander Graf wrote: > If we want to age an HVA while the VM is getting destroyed, we have a > tiny race window during which we may end up dereferencing an invalid > kvm->arch.pgd value. > >CPU0 CPU1 > >kvm_age_hva() >

Re: [PATCH] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-03 Thread Christoffer Dall
Hi Alex, On Fri, Jun 23, 2017 at 05:21:59PM +0200, Alexander Graf wrote: > If we want to age an HVA while the VM is getting destroyed, we have a > tiny race window during which we may end up dereferencing an invalid > kvm->arch.pgd value. > >CPU0 CPU1 > >kvm_age_hva() >