summaryrefslogtreecommitdiff
path: root/sysutils/xenkernel415/patches/patch-xen_arch_x86_mm_p2m.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/xenkernel415/patches/patch-xen_arch_x86_mm_p2m.c')
-rw-r--r--sysutils/xenkernel415/patches/patch-xen_arch_x86_mm_p2m.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/sysutils/xenkernel415/patches/patch-xen_arch_x86_mm_p2m.c b/sysutils/xenkernel415/patches/patch-xen_arch_x86_mm_p2m.c
new file mode 100644
index 00000000000..bbbe0f74763
--- /dev/null
+++ b/sysutils/xenkernel415/patches/patch-xen_arch_x86_mm_p2m.c
@@ -0,0 +1,21 @@
+$NetBSD: patch-xen_arch_x86_mm_p2m.c,v 1.1 2021/04/18 12:31:26 bouyer Exp $
+
+silent a noisy warning
+
+--- xen/arch/x86/mm/p2m.c.orig 2020-05-03 21:13:56.173269058 +0200
++++ xen/arch/x86/mm/p2m.c 2020-05-03 21:15:38.477174874 +0200
+@@ -1367,10 +1367,13 @@
+ ret = 0;
+ else
+ ret = -EBUSY;
+- printk(XENLOG_G_WARNING
++
++ if (gfn_l != mfn_x(mfn)) {
++ printk(XENLOG_G_WARNING
+ "Cannot setup identity map d%d:%lx,"
+ " gfn already mapped to %lx.\n",
+ d->domain_id, gfn_l, mfn_x(mfn));
++ }
+ }
+
+ gfn_unlock(p2m, gfn, 0);