Re: [PATCH] KVM: arm64: Move virt/kvm/arm to arch/arm64

2020-05-13 Thread Will Deacon
On Wed, May 13, 2020 at 11:40:34AM +0100, Marc Zyngier wrote: > Now that the 32bit KVM/arm host is a distant memory, let's move the > whole of the KVM/arm64 code into the arm64 tree. > > As they said in the song: Welcome Home (Sanitarium). > > Signed-off-by: Marc Zyngier Acked-by: Will Deacon

RE: [PATCH v11 00/13] SMMUv3 Nested Stage Setup (IOMMU part)

2020-05-13 Thread Shameerali Kolothum Thodi
Hi Eric, > -Original Message- > From: Auger Eric [mailto:eric.au...@redhat.com] > Sent: 13 May 2020 14:29 > To: Shameerali Kolothum Thodi ; > Zhangfei Gao ; eric.auger@gmail.com; > io...@lists.linux-foundation.org; linux-ker...@vger.kernel.org; > k...@vger.kernel.org;

Re: [PATCH 02/15] arm64: kvm: Formalize host-hyp hypcall ABI

2020-05-13 Thread David Brazdil
> > In fact David already has a nice patch that transforms the whole thing > > in a jump table, which is much nicer. I'll let him share the details > > :) > > Ah! Looking forward to reviewing it then! It's not actually that different. It still has the same header file, just uses the macros to

Re: [PATCH 01/15] arm64: kvm: Unify users of HVC instruction

2020-05-13 Thread David Brazdil
On Thu, May 07, 2020 at 03:36:33PM +0100, Quentin Perret wrote: > On Thursday 07 May 2020 at 15:01:07 (+0100), Marc Zyngier wrote: > > > /* > > > - * u64 __kvm_call_hyp(void *hypfn, ...); > > > + * u64 __kvm_call_hyp(unsigned long arg, ...); > > > * > > > * This is not really a variadic

Re: [PATCH v11 00/13] SMMUv3 Nested Stage Setup (IOMMU part)

2020-05-13 Thread Auger Eric
Hi Shameer, On 5/7/20 8:59 AM, Shameerali Kolothum Thodi wrote: > Hi Eric, > >> -Original Message- >> From: Shameerali Kolothum Thodi >> Sent: 30 April 2020 10:38 >> To: 'Auger Eric' ; Zhangfei Gao >> ; eric.auger@gmail.com; >> io...@lists.linux-foundation.org;

Re: [PATCH 08/26] KVM: arm64: Use TTL hint in when invalidating stage-2 translations

2020-05-13 Thread Andrew Scull
On Tue, May 12, 2020 at 01:04:31PM +0100, James Morse wrote: > Hi Andrew, > > On 07/05/2020 16:13, Andrew Scull wrote: > >> @@ -176,7 +177,7 @@ static void clear_stage2_pud_entry(struct kvm_s2_mmu > >> *mmu, pud_t *pud, phys_addr > >>pmd_t *pmd_table __maybe_unused = stage2_pmd_offset(kvm,

[PATCH] KVM: arm64: Simplify __kvm_timer_set_cntvoff implementation

2020-05-13 Thread Marc Zyngier
Now that this function isn't constrained by the 32bit PCS, let's simplify it by taking a single 64bit offset instead of two 32bit parameters. Signed-off-by: Marc Zyngier --- arch/arm64/include/asm/kvm_asm.h | 2 +- virt/kvm/arm/arch_timer.c| 12 +--- virt/kvm/arm/hyp/timer-sr.c

[PATCH] KVM: arm64: Move virt/kvm/arm to arch/arm64

2020-05-13 Thread Marc Zyngier
Now that the 32bit KVM/arm host is a distant memory, let's move the whole of the KVM/arm64 code into the arm64 tree. As they said in the song: Welcome Home (Sanitarium). Signed-off-by: Marc Zyngier --- MAINTAINERS | 1 - arch/arm64/kvm/Makefile

[PATCH] KVM: arm64: Use cpus_have_final_cap for has_vhe()

2020-05-13 Thread Marc Zyngier
By the time we start using the has_vhe() helper, we have long discovered whether we are running VHE or not. It thus makes sense to use cpus_have_final_cap() instead of cpus_have_const_cap(), which leads to a small text size reduction. Signed-off-by: Marc Zyngier ---

[PATCH V2] arm64/cpufeature: Drop open encodings while extracting parange

2020-05-13 Thread Anshuman Khandual
Currently there are multiple instances of parange feature width mask open encodings while fetching it's value. Even the width mask value (0x7) itself is not accurate. It should be (0xf) per ID_AA64MMFR0_EL1.PARange[3:0] as in ARM ARM (0487F.a). Replace them with