Skip to contentSkip to conversation

kvmppc: comply with requirement for kvm_arch_try_push_nmi

PATCH Applied [email protected] 3 participants 3 messages Oct 17, 2008 – Oct 19, 2008 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvmppc: comply with requirement for kvm_arch_try_push_nmi

From: Christian Ehrhardt <[email protected]>

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.

---

[diffstat]

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

[diff]

qemu/qemu-kvm-powerpc.c +8 -0
@@ -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__);
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · On Fri, 2008-10-17 at 10:46 +0200, [email protected] wrote:

From: Christian Ehrhardt <[email protected]>

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.

Signature · 2 lines
Hollis Blanchard
IBM Linux Technology Center
Applied
#2 lore raw
In reply to [email protected]
Quoted 8 lines · [email protected] wrote:

From: Christian Ehrhardt <[email protected]>

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.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function