pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils Add xenkernel415 and xentools415 version 4.15.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/47d3fd03b770
branches:  trunk
changeset: 450502:47d3fd03b770
user:      bouyer <bouyer%pkgsrc.org@localhost>
date:      Sun Apr 18 12:31:26 2021 +0000

description:
Add xenkernel415 and xentools415 version 4.15.0

Xen is a hypervisor which supports running multiple guest operating
systems on a single machine. Guest OSes (also called "domains")
can be either paravirtualised (i.e. make hypercalls in order to
access hardware), run in HVM (Hardware Virtualisation Mode) where
they will be presented with virtual devices, or a combination where
they use hypercalls to access hardware but manage memory themselves.
At boot, the xen kernel is loaded along with the guest kernel for
the first domain (called domain0). domain0 has privileges to access
the physical hardware (PCI and ISA devices), administrate other
domains and provide virtual devices (disks and network) to other
domains.

diffstat:

 sysutils/xenkernel415/DESCR                                                           |   16 +
 sysutils/xenkernel415/MESSAGE                                                         |   11 +
 sysutils/xenkernel415/Makefile                                                        |   82 +
 sysutils/xenkernel415/PLIST                                                           |    3 +
 sysutils/xenkernel415/distinfo                                                        |   14 +
 sysutils/xenkernel415/patches/patch-Config.mk                                         |   14 +
 sysutils/xenkernel415/patches/patch-xen_Makefile                                      |   13 +
 sysutils/xenkernel415/patches/patch-xen_Rules.mk                                      |   12 +
 sysutils/xenkernel415/patches/patch-xen_arch_x86_Rules.mk                             |   10 +
 sysutils/xenkernel415/patches/patch-xen_arch_x86_boot_build32.mk                      |   15 +
 sysutils/xenkernel415/patches/patch-xen_arch_x86_extable.c                            |   15 +
 sysutils/xenkernel415/patches/patch-xen_arch_x86_mm_p2m.c                             |   21 +
 sysutils/xenkernel415/patches/patch-xen_drivers_passthrough_x86_iommu.c               |   15 +
 sysutils/xentools415/DESCR                                                            |    5 +
 sysutils/xentools415/MESSAGE                                                          |   11 +
 sysutils/xentools415/MESSAGE.NetBSD                                                   |   25 +
 sysutils/xentools415/Makefile                                                         |  248 +++
 sysutils/xentools415/PLIST                                                            |  825 ++++++++++
 sysutils/xentools415/distinfo                                                         |   72 +
 sysutils/xentools415/patches/patch-.._seabios-rel-1.14.0_src_string.c                 |   18 +
 sysutils/xentools415/patches/patch-Config.mk                                          |   34 +
 sysutils/xentools415/patches/patch-Makefile                                           |   30 +
 sysutils/xentools415/patches/patch-docs_man_xl.1.pod.in                               |   17 +
 sysutils/xentools415/patches/patch-docs_man_xl.cfg.5.pod.in                           |   29 +
 sysutils/xentools415/patches/patch-docs_man_xlcpupool.cfg.5.pod                       |   28 +
 sysutils/xentools415/patches/patch-docs_misc_block-scripts.txt                        |   13 +
 sysutils/xentools415/patches/patch-docs_misc_vtd.txt                                  |   22 +
 sysutils/xentools415/patches/patch-tools_Makefile                                     |   21 +
 sysutils/xentools415/patches/patch-tools_configure                                    |   30 +
 sysutils/xentools415/patches/patch-tools_console_daemon_utils.c                       |   22 +
 sysutils/xentools415/patches/patch-tools_examples_Makefile                            |   12 +
 sysutils/xentools415/patches/patch-tools_firmware_Makefile                            |   13 +
 sysutils/xentools415/patches/patch-tools_firmware_etherboot_Makefile                  |   26 +
 sysutils/xentools415/patches/patch-tools_hotplug_NetBSD_Makefile                      |   46 +
 sysutils/xentools415/patches/patch-tools_hotplug_common_Makefile                      |   24 +
 sysutils/xentools415/patches/patch-tools_include_xen-sys_NetBSD_evtchn.h              |   96 +
 sysutils/xentools415/patches/patch-tools_include_xen-sys_NetBSD_privcmd.h             |  116 +
 sysutils/xentools415/patches/patch-tools_libs_ctrl_Makefile                           |   15 +
 sysutils/xentools415/patches/patch-tools_libs_libs.mk                                 |   58 +
 sysutils/xentools415/patches/patch-tools_libs_light_libxl.c                           |   24 +
 sysutils/xentools415/patches/patch-tools_libs_light_libxl_pci.c                       |   15 +
 sysutils/xentools415/patches/patch-tools_libs_util_libxlu_pci.c                       |   15 +
 sysutils/xentools415/patches/patch-tools_libs_xenstore_xenstored_control.c            |   15 +
 sysutils/xentools415/patches/patch-tools_libxl_libxl_dom.c                            |   13 +
 sysutils/xentools415/patches/patch-tools_libxl_libxl_event.c                          |   24 +
 sysutils/xentools415/patches/patch-tools_libxl_libxl_internal.h                       |   23 +
 sysutils/xentools415/patches/patch-tools_misc_xenhypfs.c                              |   15 +
 sysutils/xentools415/patches/patch-tools_ocaml_common.make                            |   23 +
 sysutils/xentools415/patches/patch-tools_ocaml_xenstored_Makefile                     |   12 +
 sysutils/xentools415/patches/patch-tools_ocaml_xenstored_utils.ml                     |   13 +
 sysutils/xentools415/patches/patch-tools_pygrub_Makefile                              |   13 +
 sysutils/xentools415/patches/patch-tools_python_Makefile                              |   13 +
 sysutils/xentools415/patches/patch-tools_qemu-xen-traditional_Makefile                |   84 +
 sysutils/xentools415/patches/patch-tools_qemu-xen-traditional_block-raw-posix.c       |   62 +
 sysutils/xentools415/patches/patch-tools_qemu-xen-traditional_configure               |   41 +
 sysutils/xentools415/patches/patch-tools_qemu-xen-traditional_hw_e1000.c              |   34 +
 sysutils/xentools415/patches/patch-tools_qemu-xen-traditional_hw_ide.c                |   37 +
 sysutils/xentools415/patches/patch-tools_qemu-xen-traditional_hw_pass-through.c       |   13 +
 sysutils/xentools415/patches/patch-tools_qemu-xen-traditional_hw_pass-through.h       |   18 +
 sysutils/xentools415/patches/patch-tools_qemu-xen-traditional_hw_piix4acpi.c          |   17 +
 sysutils/xentools415/patches/patch-tools_qemu-xen-traditional_hw_pt-graphics.c        |   13 +
 sysutils/xentools415/patches/patch-tools_qemu-xen-traditional_hw_pt-msi.c             |   15 +
 sysutils/xentools415/patches/patch-tools_qemu-xen-traditional_hw_pt-msi.h             |   12 +
 sysutils/xentools415/patches/patch-tools_qemu-xen-traditional_i386-dm_hookstarget.mak |   12 +
 sysutils/xentools415/patches/patch-tools_qemu-xen-traditional_net.c                   |   46 +
 sysutils/xentools415/patches/patch-tools_qemu-xen-traditional_xen-hooks.mak           |   34 +
 sysutils/xentools415/patches/patch-tools_qemu-xen_audio_audio.c                       |   12 +
 sysutils/xentools415/patches/patch-tools_qemu-xen_configure                           |   14 +
 sysutils/xentools415/patches/patch-tools_qemu-xen_net_tap-bsd.c                       |   44 +
 sysutils/xentools415/patches/patch-tools_qemu-xen_net_tap.c                           |   70 +
 sysutils/xentools415/patches/patch-tools_xenpaging_xenpaging.c                        |   15 +
 sysutils/xentools415/patches/patch-tools_xenstore_xs_lib.c                            |   13 +
 sysutils/xentools415/patches/patch-tools_xl_Makefile                                  |   16 +
 sysutils/xentools415/patches/patch-xen_Makefile                                       |   16 +
 sysutils/xentools415/patches/patch-xen_Rules.mk                                       |   12 +
 sysutils/xentools415/patches/patch-xen_arch_x86_Makefile                              |   15 +
 sysutils/xentools415/patches/patch-xen_include_Makefile                               |   15 +
 77 files changed, 2995 insertions(+), 0 deletions(-)

diffs (truncated from 3303 to 300 lines):

diff -r 27a79752af5a -r 47d3fd03b770 sysutils/xenkernel415/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel415/DESCR       Sun Apr 18 12:31:26 2021 +0000
@@ -0,0 +1,16 @@
+Xen is a hypervisor which supports running multiple guest operating
+systems on a single machine. Guest OSes (also called "domains")
+can be either paravirtualised (i.e. make hypercalls in order to
+access hardware), run in HVM (Hardware Virtualisation Mode) where
+they will be presented with virtual devices, or a combination where
+they use hypercalls to access hardware but manage memory themselves.
+At boot, the xen kernel is loaded along with the guest kernel for
+the first domain (called domain0). domain0 has privileges to access
+the physical hardware (PCI and ISA devices), administrate other
+domains and provide virtual devices (disks and network) to other
+domains.
+
+This package contains the 4.15 Xen kernel itself.  PCI passthrough is
+not supported.  PAE is mandatory; on i386 one must use XEN3PAE_DOM[0U].
+
+This is the recommended Xen version in pkgsrc.
diff -r 27a79752af5a -r 47d3fd03b770 sysutils/xenkernel415/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel415/MESSAGE     Sun Apr 18 12:31:26 2021 +0000
@@ -0,0 +1,11 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2021/04/18 12:31:26 bouyer Exp $
+
+The Xen hypervisor is installed under the following locations:
+       ${XENKERNELDIR}/xen.gz          (standard hypervisor)
+       ${XENKERNELDIR}/xen-debug.gz    (debug hypervisor)
+
+Note that unlike upstream Xen, pv-linear-pt defaults to true.
+You can disable it using pv-linear-pt=false on the Xen command line,
+but then you can't boot NetBSD in PV mode.
+===========================================================================
diff -r 27a79752af5a -r 47d3fd03b770 sysutils/xenkernel415/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel415/Makefile    Sun Apr 18 12:31:26 2021 +0000
@@ -0,0 +1,82 @@
+# $NetBSD: Makefile,v 1.1 2021/04/18 12:31:26 bouyer Exp $
+
+VERSION=       4.15.0
+PKGREVISION=   0
+DISTNAME=      xen-${VERSION}
+PKGNAME=       xenkernel415-${VERSION}
+CATEGORIES=    sysutils
+MASTER_SITES=  https://downloads.xenproject.org/release/xen/${VERSION}/
+DIST_SUBDIR=   xen415
+
+MAINTAINER=    bouyer%NetBSD.org@localhost
+HOMEPAGE=      https://xenproject.org/
+COMMENT=       Xen 4.15.x Kernel
+
+LICENSE=       gnu-gpl-v2
+
+ONLY_FOR_PLATFORM=     NetBSD-*.*-x86_64
+
+SSP_SUPPORTED= no
+
+NO_CONFIGURE=  yes
+USE_TOOLS+=    gmake bison
+
+PYTHON_FOR_BUILD_ONLY=         YES
+
+MAKE_ENV+=     OCAML_TOOLS=no
+.if defined(PKGREVISION) && !empty(PKGREVISION) && (${PKGREVISION} != "0")
+MAKE_ENV+=     XEN_VENDORVERSION=nb${PKGREVISION}
+.else
+MAKE_ENV+=     XEN_VENDORVERSION=nb0
+.endif
+
+INSTALLATION_DIRS=     xen415-kernel
+XENKERNELDIR=          ${PREFIX}/${INSTALLATION_DIRS}
+
+MESSAGE_SUBST+=                XENKERNELDIR=${XENKERNELDIR}
+
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang)
+EXTRA_CFLAGS+= -Qunused-arguments -no-integrated-as -Wno-error=format \
+               -Wno-error=parentheses-equality -Wno-error=enum-conversion \
+               -Wno-error=unused-function -Wno-error=unused-const-variable \
+               -Wno-error=ignored-attributes -Wno-error=constant-conversion \
+               -Wno-error=address-of-packed-member \
+               -Wno-error=initializer-overrides \
+               -Wno-error=tautological-compare -Wno-error=pragma-pack
+.elif !empty(PKGSRC_COMPILER:Mgcc)
+EXTRA_CFLAGS+=  -falign-functions=16
+.endif
+
+MAKE_ENV+=     EXTRA_CFLAGS=${EXTRA_CFLAGS:Q}
+
+do-build:
+       cd ${WRKSRC} && ${BUILD_MAKE_CMD} build-xen
+       ${CP} ${WRKSRC}/xen/xen.gz ${WRKDIR}/xen.gz
+       cd ${WRKSRC} && ${MAKE_PROGRAM} clean
+       echo "CONFIG_DEBUG=y" >> ${WRKSRC}/xen/.config
+       echo "CONFIG_DEBUG_INFO=y" >> ${WRKSRC}/xen/.config
+       echo "# CONFIG_DEBUG_LOCK_PROFILE is not set" >> ${WRKSRC}/xen/.config
+       echo "# CONFIG_DEBUG_LOCKS is not set" >> ${WRKSRC}/xen/.config
+       echo "# CONFIG_DEBUG_TRACE is not set" >> ${WRKSRC}/xen/.config
+       echo "# CONFIG_XMEM_POOL_POISON is not set" >> ${WRKSRC}/xen/.config
+       echo "# CONFIG_CRASH_DEBUG is not set" >> ${WRKSRC}/xen/.config
+       echo "# CONFIG_GDBSX is not set" >> ${WRKSRC}/xen/.config
+       echo "# CONFIG_FRAME_POINTER is not set" >> ${WRKSRC}/xen/.config
+       echo "# CONFIG_GCOV is not set" >> ${WRKSRC}/xen/.config
+       echo "# CONFIG_LOCK_PROFILE is not set" >> ${WRKSRC}/xen/.config
+       echo "# CONFIG_PERF_COUNTERS is not set" >> ${WRKSRC}/xen/.config
+       echo "CONFIG_VERBOSE_DEBUG=y" >> ${WRKSRC}/xen/.config
+       echo "CONFIG_SCRUB_DEBUG=y" >> ${WRKSRC}/xen/.config
+       echo "# CONFIG_UBSAN is not set" >> ${WRKSRC}/xen/.config
+       cd ${WRKSRC} && ${BUILD_MAKE_CMD} build-xen
+       ${CP} ${WRKSRC}/xen/xen.gz ${WRKDIR}/xen-debug.gz
+
+do-install:
+       ${INSTALL_DATA} ${WRKDIR}/xen.gz \
+           ${DESTDIR}${XENKERNELDIR}/xen.gz
+       ${INSTALL_DATA} ${WRKDIR}/xen-debug.gz \
+           ${DESTDIR}${XENKERNELDIR}/xen-debug.gz
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 27a79752af5a -r 47d3fd03b770 sysutils/xenkernel415/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel415/PLIST       Sun Apr 18 12:31:26 2021 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2021/04/18 12:31:26 bouyer Exp $
+xen415-kernel/xen-debug.gz
+xen415-kernel/xen.gz
diff -r 27a79752af5a -r 47d3fd03b770 sysutils/xenkernel415/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel415/distinfo    Sun Apr 18 12:31:26 2021 +0000
@@ -0,0 +1,14 @@
+$NetBSD: distinfo,v 1.1 2021/04/18 12:31:26 bouyer Exp $
+
+SHA1 (xen415/xen-4.15.0.tar.gz) = 4ea99cf3063db822dfbaf971bf8e9d50828d485a
+RMD160 (xen415/xen-4.15.0.tar.gz) = e314791e29244da385e482166776641929babad3
+SHA512 (xen415/xen-4.15.0.tar.gz) = 93683b8a97387ca5f003c635a11d163e61c87dbdc9a03081f9155fe87b49f1dfa74ce243fcd5e04dc009353a36e2375b786f1ebde828b5951a094cd64197b4c7
+Size (xen415/xen-4.15.0.tar.gz) = 40785399 bytes
+SHA1 (patch-Config.mk) = 9372a09efd05c9fbdbc06f8121e411fcb7c7ba65
+SHA1 (patch-xen_Makefile) = 465388d80de414ca3bb84faefa0f52d817e423a6
+SHA1 (patch-xen_Rules.mk) = c743dc63f51fc280d529a7d9e08650292c171dac
+SHA1 (patch-xen_arch_x86_Rules.mk) = 54392a7d719a21bc625a96b673056f88b96df97d
+SHA1 (patch-xen_arch_x86_boot_build32.mk) = b82c20de9b86ddaa9d05bbc1ff28f970eb78473c
+SHA1 (patch-xen_arch_x86_extable.c) = e439e6f3fe704d9b2894fc6b9e8f23f321a00f05
+SHA1 (patch-xen_arch_x86_mm_p2m.c) = 6e9b84dc8448eca9677f184e720bbfcb3c6d314e
+SHA1 (patch-xen_drivers_passthrough_x86_iommu.c) = 8b3a36a019490b1d125ea1f74274435382797da1
diff -r 27a79752af5a -r 47d3fd03b770 sysutils/xenkernel415/patches/patch-Config.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel415/patches/patch-Config.mk     Sun Apr 18 12:31:26 2021 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-Config.mk,v 1.1 2021/04/18 12:31:26 bouyer Exp $
+
+--- Config.mk.orig     2018-04-17 19:21:31.000000000 +0200
++++ Config.mk  2018-04-23 13:29:47.000000000 +0200
+@@ -32,6 +32,9 @@
+ # Tools to run on system hosting the build
+ HOSTCFLAGS  = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
+ HOSTCFLAGS += -fno-strict-aliasing
++HOSTCFLAGS += ${EXTRA_CFLAGS}
++CFLAGS     += ${EXTRA_CFLAGS}
++
+ 
+ DISTDIR     ?= $(XEN_ROOT)/dist
+ DESTDIR     ?= /
diff -r 27a79752af5a -r 47d3fd03b770 sysutils/xenkernel415/patches/patch-xen_Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel415/patches/patch-xen_Makefile  Sun Apr 18 12:31:26 2021 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-xen_Makefile,v 1.1 2021/04/18 12:31:26 bouyer Exp $
+
+--- xen/Makefile.orig  2018-04-17 19:21:31.000000000 +0200
++++ xen/Makefile       2018-04-23 13:29:47.000000000 +0200
+@@ -167,7 +167,7 @@
+           -e 's/@@whoami@@/$(XEN_WHOAMI)/g' \
+           -e 's/@@domain@@/$(XEN_DOMAIN)/g' \
+           -e 's/@@hostname@@/$(XEN_BUILD_HOST)/g' \
+-          -e 's!@@compiler@@!$(shell $(CC) $(CFLAGS) --version 2>&1 | head -1)!g' \
++          -e 's!@@compiler@@!$(shell $(CC) $(EXTRA_CFLAGS) $(CFLAGS) --version 2>&1 | head -1)!g' \
+           -e 's/@@version@@/$(XEN_VERSION)/g' \
+           -e 's/@@subversion@@/$(XEN_SUBVERSION)/g' \
+           -e 's/@@extraversion@@/$(XEN_EXTRAVERSION)/g' \
diff -r 27a79752af5a -r 47d3fd03b770 sysutils/xenkernel415/patches/patch-xen_Rules.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel415/patches/patch-xen_Rules.mk  Sun Apr 18 12:31:26 2021 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-xen_Rules.mk,v 1.1 2021/04/18 12:31:26 bouyer Exp $
+
+--- xen/Rules.mk.orig  2018-04-23 14:50:02.000000000 +0200
++++ xen/Rules.mk       2018-04-23 14:50:32.000000000 +0200
+@@ -1,4 +1,7 @@
+ 
++#reset cflags. Why is it needed in pkgsrc ?
++CFLAGS=
++
+ -include $(BASEDIR)/include/config/auto.conf
+ 
+ include $(XEN_ROOT)/Config.mk
diff -r 27a79752af5a -r 47d3fd03b770 sysutils/xenkernel415/patches/patch-xen_arch_x86_Rules.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel415/patches/patch-xen_arch_x86_Rules.mk Sun Apr 18 12:31:26 2021 +0000
@@ -0,0 +1,10 @@
+$NetBSD: patch-xen_arch_x86_Rules.mk,v 1.1 2021/04/18 12:31:26 bouyer Exp $
+
+--- xen/arch/x86/Rules.mk.orig 2020-12-08 15:28:32.000000000 +0100
++++ xen/arch/x86/Rules.mk      2020-12-08 17:27:58.740162095 +0100
+@@ -8,3 +8,5 @@
+ endif
+ c_flags += $(object_label_flags) $(CFLAGS-stack-boundary)
+ a_flags += $(object_label_flags) $(CFLAGS-stack-boundary)
++
++c_flags += $(EXTRA_CFLAGS)
diff -r 27a79752af5a -r 47d3fd03b770 sysutils/xenkernel415/patches/patch-xen_arch_x86_boot_build32.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel415/patches/patch-xen_arch_x86_boot_build32.mk  Sun Apr 18 12:31:26 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-xen_arch_x86_boot_build32.mk,v 1.1 2021/04/18 12:31:26 bouyer Exp $
+linux's toolchain doesn't generate a .eh_frame section but NetBSD does.
+remove it.
+
+--- xen/arch/x86/boot/build32.mk.orig  2018-04-17 19:21:31.000000000 +0200
++++ xen/arch/x86/boot/build32.mk       2018-04-23 13:29:47.000000000 +0200
+@@ -25,7 +25,7 @@
+                               exit $$(expr $$idx + 1);; \
+                       esac; \
+               done
+-      $(OBJCOPY) -O binary -R .got.plt $< $@
++      $(OBJCOPY) -O binary -R .got.plt -R .eh_frame $< $@
+ 
+ %.lnk: %.o
+       $(LD) $(LDFLAGS_DIRECT) -N -T build32.lds -o $@ $<
diff -r 27a79752af5a -r 47d3fd03b770 sysutils/xenkernel415/patches/patch-xen_arch_x86_extable.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel415/patches/patch-xen_arch_x86_extable.c        Sun Apr 18 12:31:26 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-xen_arch_x86_extable.c,v 1.1 2021/04/18 12:31:26 bouyer Exp $
+
+silent nosy debug output
+
+--- xen/arch/x86/extable.c.orig        2020-12-08 18:32:35.707855990 +0100
++++ xen/arch/x86/extable.c     2020-12-08 18:32:05.786712864 +0100
+@@ -199,7 +199,7 @@
+         __start___pre_ex_table, __stop___pre_ex_table-1, addr);
+     if ( fixup )
+     {
+-        dprintk(XENLOG_INFO, "Pre-exception: %p -> %p\n", _p(addr), _p(fixup));
++        // dprintk(XENLOG_INFO, "Pre-exception: %p -> %p\n", _p(addr), _p(fixup));
+         perfc_incr(exception_fixed);
+     }
+     return fixup;
diff -r 27a79752af5a -r 47d3fd03b770 sysutils/xenkernel415/patches/patch-xen_arch_x86_mm_p2m.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel415/patches/patch-xen_arch_x86_mm_p2m.c Sun Apr 18 12:31:26 2021 +0000
@@ -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);
diff -r 27a79752af5a -r 47d3fd03b770 sysutils/xenkernel415/patches/patch-xen_drivers_passthrough_x86_iommu.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel415/patches/patch-xen_drivers_passthrough_x86_iommu.c   Sun Apr 18 12:31:26 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-xen_drivers_passthrough_x86_iommu.c,v 1.1 2021/04/18 12:31:26 bouyer Exp $
+
+Silent noisy warning
+
+--- xen/drivers/passthrough/x86/iommu.c.orig   2020-12-08 15:28:32.000000000 +0100
++++ xen/drivers/passthrough/x86/iommu.c        2020-12-08 17:32:05.407356434 +0100
+@@ -248,7 +248,7 @@
+             rc = iommu_map(d, _dfn(pfn), _mfn(pfn), 1ul << PAGE_ORDER_4K,
+                            IOMMUF_readable | IOMMUF_writable, &flush_flags);
+ 
+-        if ( rc )
++        if ( rc && (!paging_mode_translate(d) || rc != -16) )
+             printk(XENLOG_WARNING "%pd: identity %smapping of %lx failed: %d\n",
+                    d, !paging_mode_translate(d) ? "IOMMU " : "", pfn, rc);
+ 
diff -r 27a79752af5a -r 47d3fd03b770 sysutils/xentools415/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools415/DESCR        Sun Apr 18 12:31:26 2021 +0000
@@ -0,0 +1,5 @@
+The Xen virtual machine monitor allows running several virtual machines
+on a single physical machine.  The xentools415 package contains the
+tools to create, destroy and control the virtual machines.



Home | Main Index | Thread Index | Old Index