Re: [PATCH v1 08/16] kvm: arm/arm64: Clean up stage2 pgd life time

2018-02-09 Thread Christoffer Dall
On Thu, Feb 08, 2018 at 05:19:22PM +, Suzuki K Poulose wrote: > On 08/02/18 11:00, Christoffer Dall wrote: > >On Tue, Jan 09, 2018 at 07:04:03PM +, Suzuki K Poulose wrote: > >>On arm/arm64 we pre-allocate the entry level page tables when > >>a VM is created and is free'd when either all the

Re: [PATCH v1 08/16] kvm: arm/arm64: Clean up stage2 pgd life time

2018-02-08 Thread Suzuki K Poulose
On 08/02/18 11:00, Christoffer Dall wrote: On Tue, Jan 09, 2018 at 07:04:03PM +, Suzuki K Poulose wrote: On arm/arm64 we pre-allocate the entry level page tables when a VM is created and is free'd when either all the mm users are gone or the KVM is about to get destroyed. i.e, kvm_free_stage

Re: [PATCH v1 08/16] kvm: arm/arm64: Clean up stage2 pgd life time

2018-02-08 Thread Christoffer Dall
On Tue, Jan 09, 2018 at 07:04:03PM +, Suzuki K Poulose wrote: > On arm/arm64 we pre-allocate the entry level page tables when > a VM is created and is free'd when either all the mm users are > gone or the KVM is about to get destroyed. i.e, kvm_free_stage2_pgd > is triggered via kvm_arch_flush_

[PATCH v1 08/16] kvm: arm/arm64: Clean up stage2 pgd life time

2018-01-09 Thread Suzuki K Poulose
On arm/arm64 we pre-allocate the entry level page tables when a VM is created and is free'd when either all the mm users are gone or the KVM is about to get destroyed. i.e, kvm_free_stage2_pgd is triggered via kvm_arch_flush_shadow_all() which can be invoked from two different paths : 1) do_exit(