From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkRMM-0007VY-2o for qemu-devel@nongnu.org; Wed, 05 Jun 2013 23:59:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkRMK-000843-37 for qemu-devel@nongnu.org; Wed, 05 Jun 2013 23:59:33 -0400 Received: from mail-ie0-x22d.google.com ([2607:f8b0:4001:c03::22d]:37912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkRMJ-00083i-TO for qemu-devel@nongnu.org; Wed, 05 Jun 2013 23:59:31 -0400 Received: by mail-ie0-f173.google.com with SMTP id k13so5908251iea.4 for ; Wed, 05 Jun 2013 20:59:31 -0700 (PDT) From: Alexey Kardashevskiy Date: Thu, 6 Jun 2013 13:59:06 +1000 Message-Id: <1370491146-10778-3-git-send-email-aik@ozlabs.ru> In-Reply-To: <1370491146-10778-1-git-send-email-aik@ozlabs.ru> References: <1370491146-10778-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH 2/2] KVM: PPC: Add dummy kvm_arch_init_irq_routing() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Gibson Cc: aik@ozlabs.ru, qemu-devel@nongnu.org, Alexander Graf , qemu-trivial@nongnu.org, qemu-ppc@nongnu.org, Scott Wood 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