Re: [PATCH v3 03/21] KVM: arm64: Provide the host_stage2_try() helper macro

2021-08-02 Thread Fuad Tabba
Hi Quentin. On Thu, Jul 29, 2021 at 3:28 PM Quentin Perret wrote: > > We currently unmap all MMIO mappings from the host stage-2 to recycle > the pages whenever we run out. In order to make this pattern easy to > re-use from other places, factor the logic out into a dedicated macro. > While at it

[PATCH v3 03/21] KVM: arm64: Provide the host_stage2_try() helper macro

2021-07-29 Thread Quentin Perret
We currently unmap all MMIO mappings from the host stage-2 to recycle the pages whenever we run out. In order to make this pattern easy to re-use from other places, factor the logic out into a dedicated macro. While at it, apply the macro for the kvm_pgtable_stage2_set_owner() calls. They're curren