[PATCH V1 4/7] KVM: GICv2: Extract the common code from DT

2016-02-05 Thread Wei Huang
This patch extracts the common code from the DT probe function. With this patch the DT function only fills out the following info in *vgic. - maint_irq (mapped) - GICH resource - GICV resource Note that vgic->vctrl_base io-remapping is now moved to vgic_v2_probe(). Signed-off-by: Wei Huang

[PATCH V1 6/7] KVM: GICv3: Extract the common code from DT

2016-02-05 Thread Wei Huang
In preparation for ACPI probing, this patch extracts the DT-neutral code into vgic_v3_probe(). DT function nows fills out the following info in *vgic: - maint_irq (mapped) - GICv resources Signed-off-by: Wei Huang --- virt/kvm/arm/vgic-v3.c | 75

[PATCH V1 7/7] KVM: GICv3: Add ACPI probing function

2016-02-05 Thread Wei Huang
This patch implements ACPI probing for GICv3. Signed-off-by: Wei Huang --- virt/kvm/arm/vgic-v3.c | 64 -- 1 file changed, 62 insertions(+), 2 deletions(-) diff --git a/virt/kvm/arm/vgic-v3.c b/virt/kvm/arm/vgic-v3.c index

[PATCH V1 1/7] KVM: GIC: Move GIC DT probing code to GICv2 and GICv3 files

2016-02-05 Thread Wei Huang
This patch moves GIC DT probing code from vgic.c to GICv2 & GICv3 sub-files. The probing will start from GICv2. If the probing fails, KVM will try to probe GICv3 then. Signed-off-by: Wei Huang --- include/kvm/arm_vgic.h | 6 ++ virt/kvm/arm/vgic-v2.c | 17 ++---

[PATCH V1 2/7] KVM: GIC: Add extra fields to store GICH and GICV resource info

2016-02-05 Thread Wei Huang
This patch adds new fields in the struct vgic_params to store the resource info (base and size) of GICH & GICV interfaces. These new fields will be used by the DT and ACPI probing code later. Signed-off-by: Wei Huang --- include/kvm/arm_vgic.h | 8 +++-

[PATCH V1 5/7] KVM: GICv2: Add ACPI probing function

2016-02-05 Thread Wei Huang
This patch implements ACPI probing for GICv2. Signed-off-by: Wei Huang --- virt/kvm/arm/vgic-v2.c | 68 ++ 1 file changed, 68 insertions(+) diff --git a/virt/kvm/arm/vgic-v2.c b/virt/kvm/arm/vgic-v2.c index b60e73a..7de2a1f

[PATCH V1 0/7] Enable ACPI support for ARM KVM GIC

2016-02-05 Thread Wei Huang
This patch set enables ACPI support for KVM GIC. Note that the patches are in fact the V3 of previously submitted patches (search "Enable ACPI support for KVM ARM"). But because Fu Wei includes the arch_timer part in his series [1] and I have substantially re-written the GIC code in this revision,

ARM PCI/MSI KVM passthrough with GICv2M

2016-02-05 Thread Eric Auger
Hi Alex, I tried to sketch a proposal for guaranteeing the IRQ integrity when doing ARM PCI/MSI passthrough with ARM GICv2M msi-controller. This is based on extended VFIO group viability control, as detailed below. As opposed to ARM GICv3 ITS, this MSI controller does *not* support IRQ

Re: ARM PCI/MSI KVM passthrough with GICv2M

2016-02-05 Thread Alex Williamson
On Fri, 5 Feb 2016 18:32:07 +0100 Eric Auger wrote: > Hi Alex, > > I tried to sketch a proposal for guaranteeing the IRQ integrity when > doing ARM PCI/MSI passthrough with ARM GICv2M msi-controller. This is > based on extended VFIO group viability control, as detailed

[PATCH] arm64: KVM: Add 48bit PA support for EL2 translations

2016-02-05 Thread tchalamarla
From: Tirumalesh Chalamarla Systems where RAM is at higher address and MultiNode systems whith higher address RAM, 39 bit max PA for EL2 translations is not sufficient. This patch sets max possible PA(48bit) for EL2 translations. Signed-off-by: Tirumalesh

Re: [PATCH v3 20/23] arm64: perf: Count EL2 events if the kernel is running in HYP

2016-02-05 Thread Marc Zyngier
On 04/02/16 19:23, Christoffer Dall wrote: > On Wed, Feb 03, 2016 at 06:00:13PM +, Marc Zyngier wrote: >> When the kernel is running in HYP (with VHE), it is necessary to >> include EL2 events if the user requests counting kernel or >> hypervisor events. >> >> Signed-off-by: Marc Zyngier

Re: MPIDR Aff0 question

2016-02-05 Thread Marc Zyngier
On 05/02/16 09:23, Andrew Jones wrote: > On Thu, Feb 04, 2016 at 06:51:06PM +, Marc Zyngier wrote: >> Hi Drew, >> >> On 04/02/16 18:38, Andrew Jones wrote: >>> >>> Hi Marc and Andre, >>> >>> I completely understand why reset_mpidr() limits Aff0 to 16, thanks >>> to Andre's nice comment about

Re: MPIDR Aff0 question

2016-02-05 Thread Mark Rutland
On Fri, Feb 05, 2016 at 10:23:53AM +0100, Andrew Jones wrote: > On Thu, Feb 04, 2016 at 06:51:06PM +, Marc Zyngier wrote: > What would the benefit of defining a "socket"? > > That's a good lead in for my next question. While I don't believe > there needs to be any relationship between socket

Re: MPIDR Aff0 question

2016-02-05 Thread Andrew Jones
On Fri, Feb 05, 2016 at 10:37:42AM +, Marc Zyngier wrote: > On 05/02/16 09:23, Andrew Jones wrote: > > On Thu, Feb 04, 2016 at 06:51:06PM +, Marc Zyngier wrote: > >> Hi Drew, > >> > >> On 04/02/16 18:38, Andrew Jones wrote: > >>> > >>> Hi Marc and Andre, > >>> > >>> I completely understand

Re: [kvm-unit-tests PATCH 01/11] arm/pci: Device tree PCI probing

2016-02-05 Thread Andrew Jones
On Fri, Feb 05, 2016 at 12:48:50PM +0100, Alexander Gordeev wrote: > On Wed, Jan 13, 2016 at 04:13:07PM +0100, Andrew Jones wrote: > > > diff --git a/lib/pci-host-generic.h b/lib/pci-host-generic.h > > > new file mode 100644 > > > index 000..097ac2d > > > --- /dev/null > > > +++

Re: [kvm-unit-tests PATCH 01/11] arm/pci: Device tree PCI probing

2016-02-05 Thread Alexander Gordeev
On Wed, Jan 13, 2016 at 04:13:07PM +0100, Andrew Jones wrote: > > diff --git a/lib/pci-host-generic.h b/lib/pci-host-generic.h > > new file mode 100644 > > index 000..097ac2d > > --- /dev/null > > +++ b/lib/pci-host-generic.h > > @@ -0,0 +1,26 @@ > > +#ifndef PCI_HOST_GENERIC_H > > +#define

Re: MPIDR Aff0 question

2016-02-05 Thread Andrew Jones
On Fri, Feb 05, 2016 at 11:00:33AM +, Mark Rutland wrote: > On Fri, Feb 05, 2016 at 10:23:53AM +0100, Andrew Jones wrote: > > On Thu, Feb 04, 2016 at 06:51:06PM +, Marc Zyngier wrote: > > What would the benefit of defining a "socket"? > > > > That's a good lead in for my next question.

Re: MPIDR Aff0 question

2016-02-05 Thread Marc Zyngier
On 05/02/16 12:03, Andrew Jones wrote: > On Fri, Feb 05, 2016 at 10:37:42AM +, Marc Zyngier wrote: >> On 05/02/16 09:23, Andrew Jones wrote: >>> On Thu, Feb 04, 2016 at 06:51:06PM +, Marc Zyngier wrote: Hi Drew, On 04/02/16 18:38, Andrew Jones wrote: > > Hi Marc and