Re: [PATCH 06/10] KVM: arm/arm64: vgic: Allow dynamic mapping of physical/virtual interrupts

2015-06-11 Thread Marc Zyngier
On 11/06/15 09:43, Andre Przywara wrote: Hi, On 06/08/2015 06:04 PM, Marc Zyngier wrote: In order to be able to feed physical interrupts to a guest, we need to be able to establish the virtual-physical mapping between the two worlds. The mapping is kept in a rbtree, indexed by virtual

Re: [PATCH 07/10] KVM: arm/arm64: vgic: Allow HW interrupts to be queued to a guest

2015-06-11 Thread Marc Zyngier
On 11/06/15 09:44, Andre Przywara wrote: Hi Marc, On 06/08/2015 06:04 PM, Marc Zyngier wrote: To allow a HW interrupt to be injected into a guest, we lookup the guest virtual interrupt in the irq_phys_map rbtree, and if we have a match, encode both interrupts in the LR. We also mark the

Re: [PATCH 07/10] KVM: arm/arm64: vgic: Allow HW interrupts to be queued to a guest

2015-06-11 Thread Marc Zyngier
On 11/06/15 10:44, Andre Przywara wrote: On 06/11/2015 10:15 AM, Marc Zyngier wrote: On 11/06/15 09:44, Andre Przywara wrote: On 06/08/2015 06:04 PM, Marc Zyngier wrote: ... @@ -1344,6 +1364,35 @@ static bool vgic_process_maintenance(struct kvm_vcpu *vcpu) return level_pending; }

Re: [PATCH V2 0/5] Enable ACPI support for KVM ARM

2015-06-11 Thread Hanjun Guo
On 06/10/2015 09:23 PM, Andrew Jones wrote: On Wed, Jun 10, 2015 at 12:16:02AM -0400, Wei Huang wrote: Initial ACPI support for ARM64 has been accepted into Linux kernel recently. Now it is a good time to re-visit ACPI support for KVM. This patchset enables ACPI for both arch_timer and vGIC by

Re: [PATCH V2 2/5] kvm: arm64: Dispatch virt GIC probing to device tree and ACPI

2015-06-11 Thread Hanjun Guo
On 06/10/2015 12:16 PM, Wei Huang wrote: This patch creates a dispatch function to support virt GIC probing in both device tree (DT) and ACPI environment. kvm_vgic_hyp_init() will probe DT first. If failed, it will try ACPI. Signed-off-by: Wei Huang w...@redhat.com --- include/kvm/arm_vgic.h

Re: [PATCH 09/13] KVM: arm64: handle pending bit for LPIs in ITS emulation

2015-06-11 Thread Andre Przywara
Salut Eric, On 06/09/2015 04:59 PM, Eric Auger wrote: On 05/29/2015 11:53 AM, Andre Przywara wrote: As the actual LPI number in a guest can be quite high, but is mostly assigned using a very sparse allocation scheme, bitmaps and arrays for storing the virtual interrupt status are a waste of

Re: [PATCH 09/13] KVM: arm64: handle pending bit for LPIs in ITS emulation

2015-06-11 Thread Marc Zyngier
On 11/06/15 16:46, Andre Przywara wrote: Salut Eric, On 06/09/2015 04:59 PM, Eric Auger wrote: On 05/29/2015 11:53 AM, Andre Przywara wrote: As the actual LPI number in a guest can be quite high, but is mostly assigned using a very sparse allocation scheme, bitmaps and arrays for storing

Re: [PATCH 09/13] KVM: arm64: handle pending bit for LPIs in ITS emulation

2015-06-11 Thread Eric Auger
On 06/11/2015 06:01 PM, Marc Zyngier wrote: On 11/06/15 16:46, Andre Przywara wrote: Salut Eric, On 06/09/2015 04:59 PM, Eric Auger wrote: On 05/29/2015 11:53 AM, Andre Przywara wrote: As the actual LPI number in a guest can be quite high, but is mostly assigned using a very sparse