Skip to contentSkip to conversation

PPC: KVM: fix compile errors by adding empty stubs for breakpoints API

PATCH New Alexey Kardashevskiy 1 participant 1 message Dec 17, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC: KVM: fix compile errors by adding empty stubs for breakpoints API

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).

---
 target-ppc/kvm.c | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
target-ppc/kvm.c +38 -0
index b77ce5e..8c95834 100644
@@ -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)
 {
 }
Signature · 1 line
1.8.4.rc4