Re: [PATCH v4 07/10] ARM: Introduce MPIDR_LEVEL_SHIFT macro

2016-09-13 Thread Marc Zyngier
On 13/09/16 11:32, Vladimir Murzin wrote: > On 13/09/16 11:12, Marc Zyngier wrote: >> On 13/09/16 10:04, Vladimir Murzin wrote: >>> On 13/09/16 09:38, Christoffer Dall wrote: On Mon, Sep 12, 2016 at 03:49:21PM +0100, Vladimir Murzin wrote: > vgic-v3 driver uses architecture specific

Re: [PATCH v4 07/10] ARM: Introduce MPIDR_LEVEL_SHIFT macro

2016-09-13 Thread Vladimir Murzin
On 13/09/16 11:12, Marc Zyngier wrote: > On 13/09/16 10:04, Vladimir Murzin wrote: >> On 13/09/16 09:38, Christoffer Dall wrote: >>> On Mon, Sep 12, 2016 at 03:49:21PM +0100, Vladimir Murzin wrote: vgic-v3 driver uses architecture specific MPIDR_LEVEL_SHIFT macro to encode the affinity

[PATCH 3/7] KVM: arm/arm64: Register perf trace event notifier

2016-09-13 Thread Punit Agrawal
Register a notifier to track state changes of perf trace events. The notifier will enable taking appropriate action for trace events targeting VM. Signed-off-by: Punit Agrawal Cc: Christoffer Dall Cc: Marc Zyngier ---

[PATCH 6/7] arm64: KVM: Handle trappable TLB instructions

2016-09-13 Thread Punit Agrawal
The ARMv8 architecture allows trapping of TLB maintenane instructions from EL0/EL1 to higher exception levels. On encountering a trappable TLB instruction in a guest, an exception is taken to EL2. Add functionality to handle emulating the TLB instructions. Signed-off-by: Punit Agrawal

Re: [PATCH 1/3] arm64: alternative: add auto-nop infrastructure

2016-09-13 Thread Mark Rutland
On Tue, Sep 13, 2016 at 09:36:14AM +0100, Ard Biesheuvel wrote: > On 7 September 2016 at 11:07, Mark Rutland wrote: > > In some cases, one side of an alternative sequence is simply a number of > > NOPs used to balance the other side. Keeping track of this manually is > >

Re: [PATCH v4 08/10] ARM: Move system register accessors to asm/cp15.h

2016-09-13 Thread Christoffer Dall
On Mon, Sep 12, 2016 at 03:49:22PM +0100, Vladimir Murzin wrote: > Headers linux/irqchip/arm-gic.v3.h and arch/arm/include/asm/kvm_hyp.h > are included in virt/kvm/arm/hyp/vgic-v3-sr.c and both define macros > called __ACCESS_CP15 and __ACCESS_CP15_64 which obviously creates a > conflict. These

Re: [PATCH v4 09/10] ARM: gic-v3: Introduce 32-to-64-bit mappings for GICv3 cpu registers

2016-09-13 Thread Christoffer Dall
On Mon, Sep 12, 2016 at 03:49:23PM +0100, Vladimir Murzin wrote: > vgic-v3 save/restore routines are written in such way that they map > arm64 system register naming nicely, but it does not fit to arm > world. To keep virt/kvm/arm/hyp/vgic-v3-sr.c untouched we create a > mapping with a function

Re: [PATCH v4 03/10] arm64: KVM: Move vgic-v3 save/restore to virt/kvm/arm/hyp

2016-09-13 Thread Christoffer Dall
On Mon, Sep 12, 2016 at 03:49:17PM +0100, Vladimir Murzin wrote: > So we can reuse the code under arch/arm > > Signed-off-by: Vladimir Murzin > Acked-by: Marc Zyngier Acked-by: Christoffer Dall

Re: [PATCH v4 04/10] KVM: arm64: vgic-its: Introduce config option to guard ITS specific code

2016-09-13 Thread Christoffer Dall
On Mon, Sep 12, 2016 at 03:49:18PM +0100, Vladimir Murzin wrote: > By now ITS code guarded with KVM_ARM_VGIC_V3 config option which was > introduced to hide everything specific to vgic-v3 from 32-bit world. > We are going to support vgic-v3 in 32-bit world and KVM_ARM_VGIC_V3 > will gone, but we

Re: [PATCH v4 05/10] KVM: arm: vgic: Fix compiler warnings when built for 32-bit

2016-09-13 Thread Christoffer Dall
On Mon, Sep 12, 2016 at 03:49:19PM +0100, Vladimir Murzin wrote: > Well, this patch is looking ahead of time, but we'll get following > compiler warnings as soon as we introduce vgic-v3 to 32-bit world > > CC arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-mmio-v3.o >

Re: [PATCH v4 07/10] ARM: Introduce MPIDR_LEVEL_SHIFT macro

2016-09-13 Thread Christoffer Dall
On Mon, Sep 12, 2016 at 03:49:21PM +0100, Vladimir Murzin wrote: > vgic-v3 driver uses architecture specific MPIDR_LEVEL_SHIFT macro to > encode the affinity in a form compatible with ICC_SGI* registers. > Unfortunately, that macro is missing on ARM, so let's add it. > > Cc: Russell King

Re: [PATCH v4 01/10] arm64: KVM: Use static keys for selecting the GIC backend

2016-09-13 Thread Christoffer Dall
On Mon, Sep 12, 2016 at 03:49:15PM +0100, Vladimir Murzin wrote: > Currently GIC backend is selected via alternative framework and this > is fine. We are going to introduce vgic-v3 to 32-bit world and there > we don't have patching framework in hand, so we can either check > support for GICv3