From 581af6dbd9a118cc30f23c2d11a0e390f937778e Mon Sep 17 00:00:00 2001
From: Trammell Hudson <trammell.hudson@twosigma.com>
Date: Tue, 28 Mar 2017 16:35:58 -0400
Subject: [PATCH] silence NMI errors on qemu (issue #141)

---
 patches/linux-4.9.7.patch | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 patches/linux-4.9.7.patch

diff --git a/patches/linux-4.9.7.patch b/patches/linux-4.9.7.patch
new file mode 100644
index 00000000..27cb0a27
--- /dev/null
+++ b/patches/linux-4.9.7.patch
@@ -0,0 +1,18 @@
+--- a/arch/x86/kernel/nmi.c	2017-03-28 16:19:30.830924335 -0400
++++ b/arch/x86/kernel/nmi.c	2017-03-28 16:19:32.798935626 -0400
+@@ -303,6 +303,7 @@
+ 
+ 	__this_cpu_add(nmi_stats.unknown, 1);
+ 
++/*
+ 	pr_emerg("Uhhuh. NMI received for unknown reason %02x on CPU %d.\n",
+ 		 reason, smp_processor_id());
+ 
+@@ -311,6 +312,7 @@
+ 		nmi_panic(regs, "NMI: Not continuing");
+ 
+ 	pr_emerg("Dazed and confused, but trying to continue\n");
++*/
+ }
+ NOKPROBE_SYMBOL(unknown_nmi_error);
+