Received: from eggs.gnu.org ([2001:4830:134:3::10]:53770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmfSg-0003aq-Bw for qemu-devel@nongnu.org; Wed, 12 Jun 2013 03:27:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmfSe-0001Sm-UA for qemu-devel@nongnu.org; Wed, 12 Jun 2013 03:27:18 -0400 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]:47060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmfSe-0001SX-Mx for qemu-devel@nongnu.org; Wed, 12 Jun 2013 03:27:16 -0400 Received: by mail-pa0-f51.google.com with SMTP id lf11so3649107pab.24 for ; Wed, 12 Jun 2013 00:27:16 -0700 (PDT) From: Alexey Kardashevskiy Date: Wed, 12 Jun 2013 17:26:54 +1000 Message-Id: <1371022015-7576-4-git-send-email-aik@ozlabs.ru> In-Reply-To: <1371022015-7576-1-git-send-email-aik@ozlabs.ru> References: <1371022015-7576-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH 3/4] KVM: PPC: Add dummy kvm_arch_init_irq_routing() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Scott Wood , aik@ozlabs.ru, qemu-trivial@nongnu.org, qemu-ppc@nongnu.org, Alexander Graf From: Scott Wood The common KVM code insists on calling kvm_arch_init_irq_routing() as soon as it sees kernel header support for it (regardless of whether QEMU supports it). Provide a dummy function to satisfy this. Unlike x86, PPC does not have one default irqchip, so there's no common code that we'd stick here. Even if you ignore the routes themselves, which even on x86 are not set up in this function, the initial XICS kernel implementation will not support IRQ routing, so it's best to leave even the general feature flags up to the specific irqchip code. Signed-off-by: Scott Wood Signed-off-by: Alexey Kardashevskiy --- target-ppc/kvm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index 3ab2946..2bbc3b8 100644 --- a/target-ppc/kvm.c +++ b/target-ppc/kvm.c @@ -1797,3 +1797,7 @@ int kvm_arch_on_sigbus(int code, void *addr) { return 1; } + +void kvm_arch_init_irq_routing(KVMState *s) +{ +} -- 1.7.10.4