From patchwork Tue Dec 17 05:31:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Kardashevskiy X-Patchwork-Id: 301996 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 92F822C00A5 for ; Tue, 17 Dec 2013 16:31:58 +1100 (EST) Received: from localhost ([::1]:59745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsnG5-0005yz-RL for incoming@patchwork.ozlabs.org; Tue, 17 Dec 2013 00:31:53 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsnFj-0005vw-1a for qemu-devel@nongnu.org; Tue, 17 Dec 2013 00:31:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VsnFY-0007V7-6o for qemu-devel@nongnu.org; Tue, 17 Dec 2013 00:31:30 -0500 Received: from e23smtp03.au.ibm.com ([202.81.31.145]:58640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsnFX-0007Tw-DT for qemu-devel@nongnu.org; Tue, 17 Dec 2013 00:31:20 -0500 Received: from /spool/local by e23smtp03.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 17 Dec 2013 15:31:13 +1000 Received: from d23dlp01.au.ibm.com (202.81.31.203) by e23smtp03.au.ibm.com (202.81.31.209) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 17 Dec 2013 15:31:10 +1000 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [9.190.235.152]) by d23dlp01.au.ibm.com (Postfix) with ESMTP id 287F72CE8052; Tue, 17 Dec 2013 16:31:09 +1100 (EST) Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id rBH5CdbW56688880; Tue, 17 Dec 2013 16:12:40 +1100 Received: from d23av02.au.ibm.com (localhost [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id rBH5V6CR027176; Tue, 17 Dec 2013 16:31:06 +1100 Received: from ozlabs.au.ibm.com (ozlabs.au.ibm.com [9.190.163.12]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id rBH5V6xd027163; Tue, 17 Dec 2013 16:31:06 +1100 Received: from bran.ozlabs.ibm.com (haven.au.ibm.com [9.190.164.82]) by ozlabs.au.ibm.com (Postfix) with ESMTP id 4F0AFA0110; Tue, 17 Dec 2013 16:31:06 +1100 (EST) Received: from ka1.ozlabs.ibm.com (ka1.ozlabs.ibm.com [10.61.145.11]) by bran.ozlabs.ibm.com (Postfix) with ESMTP id 0015816AAC9; Tue, 17 Dec 2013 16:31:05 +1100 (EST) From: Alexey Kardashevskiy To: qemu-devel@nongnu.org Date: Tue, 17 Dec 2013 16:31:04 +1100 Message-Id: <1387258264-9734-1-git-send-email-aik@ozlabs.ru> X-Mailer: git-send-email 1.8.4.rc4 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13121705-6102-0000-0000-000004AD04AD X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 202.81.31.145 Cc: Alexey Kardashevskiy , Paolo Bonzini , qemu-ppc@nongnu.org, Alexander Graf Subject: [Qemu-devel] [PATCH] PPC: KVM: fix compile errors by adding empty stubs for breakpoints API X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The latest kernel headers update bf63839ffa2d0eebb1eb1706022f46e93b6fec08 "linux-headers: Update from v3.13-rc3" turned __KVM_HAVE_GUEST_DEBUG on and broke the upstream for PPC64 as this API is not supported by PPC64 yet. This adds no-op stubs (copied from target-arm/kvm.c). Signed-off-by: Alexey Kardashevskiy --- target-ppc/kvm.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index b77ce5e..8c95834 100644 --- a/target-ppc/kvm.c +++ b/target-ppc/kvm.c @@ -1899,6 +1899,44 @@ int kvm_arch_on_sigbus(int code, void *addr) return 1; } +void kvm_arch_update_guest_debug(CPUState *cs, struct kvm_guest_debug *dbg) +{ + qemu_log_mask(LOG_UNIMP, "%s: not implemented\n", __func__); +} + +int kvm_arch_insert_sw_breakpoint(CPUState *cs, + struct kvm_sw_breakpoint *bp) +{ + qemu_log_mask(LOG_UNIMP, "%s: not implemented\n", __func__); + return -EINVAL; +} + +int kvm_arch_insert_hw_breakpoint(target_ulong addr, + target_ulong len, int type) +{ + qemu_log_mask(LOG_UNIMP, "%s: not implemented\n", __func__); + return -EINVAL; +} + +int kvm_arch_remove_hw_breakpoint(target_ulong addr, + target_ulong len, int type) +{ + qemu_log_mask(LOG_UNIMP, "%s: not implemented\n", __func__); + return -EINVAL; +} + +int kvm_arch_remove_sw_breakpoint(CPUState *cs, + struct kvm_sw_breakpoint *bp) +{ + qemu_log_mask(LOG_UNIMP, "%s: not implemented\n", __func__); + return -EINVAL; +} + +void kvm_arch_remove_all_hw_breakpoints(void) +{ + qemu_log_mask(LOG_UNIMP, "%s: not implemented\n", __func__); +} + void kvm_arch_init_irq_routing(KVMState *s) { }