From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvsBb-0004oi-A5 for qemu-devel@nongnu.org; Tue, 02 Dec 2014 13:28:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XvsBT-0004Ni-Ok for qemu-devel@nongnu.org; Tue, 02 Dec 2014 13:28:31 -0500 Received: from mail-wi0-f181.google.com ([209.85.212.181]:61400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XvsBT-0004NM-JO for qemu-devel@nongnu.org; Tue, 02 Dec 2014 13:28:23 -0500 Received: by mail-wi0-f181.google.com with SMTP id r20so21867713wiv.14 for ; Tue, 02 Dec 2014 10:28:22 -0800 (PST) From: Eric Auger Date: Tue, 2 Dec 2014 18:28:12 +0000 Message-Id: <1417544894-2000-1-git-send-email-eric.auger@linaro.org> Subject: [Qemu-devel] [PATCH 0/2] arm_gic: Initialize VGIC on machine init done List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: eric.auger@st.com, christoffer.dall@linaro.org, qemu-devel@nongnu.org, a.rigo@virtualopensystems.com, marc.zyngier@arm.com, ard.biesheuvel@linaro.org, agraf@suse.de, peter.maydell@linaro.org, pbonzini@redhat.com, afaerber@suse.de Cc: a.motakis@virtualopensystems.com, alex.williamson@redhat.com, patches@linaro.org, kvmarm@lists.cs.columbia.edu, eric.auger@linaro.org With current implementation the vgic is initialized very late, when the VM is started, on the first VCPU run execution. This series kicks the initialization off on machine init done instead. Among other things, this earlier VGIC initialization allows to have a simpler handling of VFIO. VFIO platform signaling can be setup on reset handler, making sure the VGIC is ready, at that time, to accept injected virtual IRQs. Depends on the following kernel patch: - [PATCH] KVM: arm/arm64: vgic: add init entry to VGIC KVM device Tested on Calxeda Miday with VFIO platform use case Eric Auger (2): linux-headers: Update KVM headers from linux-next tag ToBeFilled hw/intc/arm_gic: Initialize the vgic on machine init done hw/intc/arm_gic_kvm.c | 21 +++++++++++++++++++++ include/hw/intc/arm_gic_common.h | 1 + linux-headers/asm-arm/kvm.h | 2 ++ linux-headers/asm-arm64/kvm.h | 2 ++ 4 files changed, 26 insertions(+) -- 1.8.3.2