[PATCH] kvmppc: comply with requirement for kvm_arch_try_push_nmi

ehrhardt
2008-10-17T08:46:54Z

From: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>

Since a recent patch all architetcures need a kvm_arch_try_push_nmi function.
Powerpc has no direct nmi equivalent, so this patch fixes only build for
powerpc by adding an empty stub.
If powerpc later wants to support the nmi monitor command somehow the function
can still be extended.

Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
---

[diffstat]
qemu-kvm-powerpc.c | 8 ++++++++
1 file changed, 8 insertions(+)

[diff]
diff --git a/qemu/qemu-kvm-powerpc.c b/qemu/qemu-kvm-powerpc.c
--- a/qemu/qemu-kvm-powerpc.c
+++ b/qemu/qemu-kvm-powerpc.c
@@ -190,6 +190,14 @@
return 0;
}

+int kvm_arch_try_push_nmi(void *opaque)
+{
+ /* no nmi irq, so discard that call for now and return success.
+ * This might later get mapped to something on powerpc too if we want
+ * to support the nmi monitor command somwhow */
+ return 0;
+}
+
void kvm_arch_update_regs_for_sipi(CPUState *env)
{
printf("%s: no kvm-powerpc multi processor support yet!\n", __func__);