Received: from eggs.gnu.org ([2001:4830:134:3::10]:33967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ut6hb-0003cd-Dn for qemu-devel@nongnu.org; Sat, 29 Jun 2013 21:45:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ut6hX-0007by-Q9 for qemu-devel@nongnu.org; Sat, 29 Jun 2013 21:45:19 -0400 From: Alexander Graf Date: Sun, 30 Jun 2013 03:44:44 +0200 Message-Id: <1372556709-23868-8-git-send-email-agraf@suse.de> In-Reply-To: <1372556709-23868-1-git-send-email-agraf@suse.de> References: <1372556709-23868-1-git-send-email-agraf@suse.de> Subject: [Qemu-devel] [PATCH 07/32] PPC: Add non-kvm stub file List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-ppc@nongnu.org Cc: Blue Swirl , qemu-devel@nongnu.org, Aurelien Jarno There are cases where a kvm provided function is called from generic hw code that doesn't know whether kvm is available or not. Provide a stub file which can provide simple replacement functions for those cases. Signed-off-by: Alexander Graf Reviewed-by: Paolo Bonzini --- target-ppc/Makefile.objs | 1 + target-ppc/kvm-stub.c | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 target-ppc/kvm-stub.c diff --git a/target-ppc/Makefile.objs b/target-ppc/Makefile.objs index 2c43c34..6e78cb3 100644 --- a/target-ppc/Makefile.objs +++ b/target-ppc/Makefile.objs @@ -5,6 +5,7 @@ obj-y += machine.o mmu_helper.o mmu-hash32.o obj-$(TARGET_PPC64) += mmu-hash64.o endif obj-$(CONFIG_KVM) += kvm.o kvm_ppc.o +obj-$(CONFIG_NO_KVM) += kvm-stub.o obj-y += excp_helper.o obj-y += fpu_helper.o obj-y += int_helper.o diff --git a/target-ppc/kvm-stub.c b/target-ppc/kvm-stub.c new file mode 100644 index 0000000..0f5c27d --- /dev/null +++ b/target-ppc/kvm-stub.c @@ -0,0 +1,12 @@ +/* + * QEMU KVM PPC specific function stubs + * + * Copyright Freescale Inc. 2013 + * + * Author: Alexander Graf + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + * + */ +#include "qemu-common.h" -- 1.8.1.4