Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils Add xenkernel413 and xentools413 packages, ve...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/76cdea50f499
branches:  trunk
changeset: 432853:76cdea50f499
user:      bouyer <bouyer%pkgsrc.org@localhost>
date:      Tue May 26 11:12:10 2020 +0000

description:
Add xenkernel413 and xentools413 packages, version 4.13.1.
At this time xentools413 will only build on a very recent -current (as of
an hour ago or do - with /usr/include/xen/xenio.h 1.12 or newer)

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/xenkernel413/DESCR                                                           |   14 +
 sysutils/xenkernel413/MESSAGE                                                         |   11 +
 sysutils/xenkernel413/Makefile                                                        |   82 +
 sysutils/xenkernel413/PLIST                                                           |    3 +
 sysutils/xenkernel413/distinfo                                                        |   14 +
 sysutils/xenkernel413/patches/patch-Config.mk                                         |   14 +
 sysutils/xenkernel413/patches/patch-xen_Makefile                                      |   13 +
 sysutils/xenkernel413/patches/patch-xen_Rules.mk                                      |   12 +
 sysutils/xenkernel413/patches/patch-xen_arch_x86_Rules.mk                             |   12 +
 sysutils/xenkernel413/patches/patch-xen_arch_x86_boot_build32.mk                      |   15 +
 sysutils/xenkernel413/patches/patch-xen_arch_x86_mm_p2m.c                             |   21 +
 sysutils/xenkernel413/patches/patch-xen_drivers_passthrough_x86_iommu.c               |   15 +
 sysutils/xenkernel413/patches/patch-xen_tools_symbols.c                               |   19 +
 sysutils/xentools413/DESCR                                                            |    5 +
 sysutils/xentools413/MESSAGE                                                          |   11 +
 sysutils/xentools413/MESSAGE.NetBSD                                                   |   17 +
 sysutils/xentools413/Makefile                                                         |  256 ++++
 sysutils/xentools413/PLIST                                                            |  532 ++++++++++
 sysutils/xentools413/distinfo                                                         |   80 +
 sysutils/xentools413/files/blk_netbsd.c                                               |   38 +
 sysutils/xentools413/files/blktapctrl_netbsd.c                                        |   16 +
 sysutils/xentools413/files/locking.sh                                                 |   72 +
 sysutils/xentools413/files/xen-watchdog.sh                                            |   17 +
 sysutils/xentools413/files/xencommons.sh                                              |  107 ++
 sysutils/xentools413/files/xendomains.sh                                              |  129 ++
 sysutils/xentools413/patches/patch-Config.mk                                          |   22 +
 sysutils/xentools413/patches/patch-Makefile                                           |   30 +
 sysutils/xentools413/patches/patch-docs_man_xl-disk-configuration.5.pod               |   13 +
 sysutils/xentools413/patches/patch-docs_man_xl.1.pod.in                               |   44 +
 sysutils/xentools413/patches/patch-docs_man_xl.cfg.5.pod.in                           |   29 +
 sysutils/xentools413/patches/patch-docs_man_xl.conf.5.pod                             |   37 +
 sysutils/xentools413/patches/patch-docs_man_xlcpupool.cfg.5.pod                       |   28 +
 sysutils/xentools413/patches/patch-docs_misc_block-scripts.txt                        |   13 +
 sysutils/xentools413/patches/patch-docs_misc_vtd.txt                                  |   22 +
 sysutils/xentools413/patches/patch-extras_mini-os_Config.mk                           |   17 +
 sysutils/xentools413/patches/patch-extras_mini-os_arch_x86_arch.mk                    |   22 +
 sysutils/xentools413/patches/patch-extras_mini-os_include_fcntl.h                     |   12 +
 sysutils/xentools413/patches/patch-extras_mini-os_include_time.h                      |   12 +
 sysutils/xentools413/patches/patch-extras_mini-os_lib_sys.c                           |   18 +
 sysutils/xentools413/patches/patch-extras_mini-os_lock.c                              |   11 +
 sysutils/xentools413/patches/patch-m4_paths.m4                                        |   16 +
 sysutils/xentools413/patches/patch-tools_Makefile                                     |   48 +
 sysutils/xentools413/patches/patch-tools_Rules.mk                                     |  108 ++
 sysutils/xentools413/patches/patch-tools_configure                                    |   39 +
 sysutils/xentools413/patches/patch-tools_console_daemon_utils.c                       |   22 +
 sysutils/xentools413/patches/patch-tools_debugger_gdbsx_xg_xg_main.c                  |   24 +
 sysutils/xentools413/patches/patch-tools_examples_Makefile                            |   12 +
 sysutils/xentools413/patches/patch-tools_firmware_etherboot_Makefile                  |   26 +
 sysutils/xentools413/patches/patch-tools_firmware_hvmloader_Makefile                  |   13 +
 sysutils/xentools413/patches/patch-tools_hotplug_NetBSD_Makefile                      |   52 +
 sysutils/xentools413/patches/patch-tools_hotplug_NetBSD_block                         |   37 +
 sysutils/xentools413/patches/patch-tools_hotplug_NetBSD_vif-bridge                    |   16 +
 sysutils/xentools413/patches/patch-tools_hotplug_NetBSD_vif-ip                        |   15 +
 sysutils/xentools413/patches/patch-tools_hotplug_common_Makefile                      |   24 +
 sysutils/xentools413/patches/patch-tools_include_xen-sys_NetBSD_gntdev.h              |  110 ++
 sysutils/xentools413/patches/patch-tools_libs_call_netbsd.c                           |   55 +
 sysutils/xentools413/patches/patch-tools_libs_call_private.h                          |   16 +
 sysutils/xentools413/patches/patch-tools_libs_evtchn_netbsd.c                         |   22 +
 sysutils/xentools413/patches/patch-tools_libs_foreignmemory_Makefile                  |   12 +
 sysutils/xentools413/patches/patch-tools_libs_foreignmemory_netbsd.c                  |  114 ++
 sysutils/xentools413/patches/patch-tools_libs_foreignmemory_private.h                 |   36 +
 sysutils/xentools413/patches/patch-tools_libs_gnttab_Makefile                         |   14 +
 sysutils/xentools413/patches/patch-tools_libs_gnttab_netbsd.c                         |  274 +++++
 sysutils/xentools413/patches/patch-tools_libxl_libxl__create.c                        |   40 +
 sysutils/xentools413/patches/patch-tools_libxl_libxl_dm.c                             |   25 +
 sysutils/xentools413/patches/patch-tools_libxl_libxl_dom.c                            |   13 +
 sysutils/xentools413/patches/patch-tools_libxl_libxl_event.c                          |   24 +
 sysutils/xentools413/patches/patch-tools_libxl_libxl_internal.h                       |   23 +
 sysutils/xentools413/patches/patch-tools_libxl_libxl_uuid.c                           |   22 +
 sysutils/xentools413/patches/patch-tools_ocaml_common.make                            |   31 +
 sysutils/xentools413/patches/patch-tools_ocaml_xenstored_Makefile                     |   12 +
 sysutils/xentools413/patches/patch-tools_ocaml_xenstored_utils.ml                     |   13 +
 sysutils/xentools413/patches/patch-tools_qemu-xen-traditional_Makefile                |   84 +
 sysutils/xentools413/patches/patch-tools_qemu-xen-traditional_block-raw-posix.c       |   62 +
 sysutils/xentools413/patches/patch-tools_qemu-xen-traditional_configure               |   41 +
 sysutils/xentools413/patches/patch-tools_qemu-xen-traditional_hw_e1000.c              |   34 +
 sysutils/xentools413/patches/patch-tools_qemu-xen-traditional_hw_ide.c                |   37 +
 sysutils/xentools413/patches/patch-tools_qemu-xen-traditional_hw_pass-through.c       |   13 +
 sysutils/xentools413/patches/patch-tools_qemu-xen-traditional_hw_pass-through.h       |   18 +
 sysutils/xentools413/patches/patch-tools_qemu-xen-traditional_hw_piix4acpi.c          |   17 +
 sysutils/xentools413/patches/patch-tools_qemu-xen-traditional_hw_pt-graphics.c        |   13 +
 sysutils/xentools413/patches/patch-tools_qemu-xen-traditional_hw_pt-msi.c             |   15 +
 sysutils/xentools413/patches/patch-tools_qemu-xen-traditional_hw_pt-msi.h             |   12 +
 sysutils/xentools413/patches/patch-tools_qemu-xen-traditional_i386-dm_hookstarget.mak |   12 +
 sysutils/xentools413/patches/patch-tools_qemu-xen-traditional_net.c                   |   46 +
 sysutils/xentools413/patches/patch-tools_qemu-xen-traditional_xen-hooks.mak           |   51 +
 sysutils/xentools413/patches/patch-tools_qemu-xen_audio_audio.c                       |   12 +
 sysutils/xentools413/patches/patch-tools_qemu-xen_configure                           |   14 +
 sysutils/xentools413/patches/patch-tools_qemu-xen_net_tap-bsd.c                       |   44 +
 sysutils/xentools413/patches/patch-tools_qemu-xen_qemu-doc.texi                       |   15 +
 sysutils/xentools413/patches/patch-tools_xenpaging_xenpaging.c                        |   18 +
 sysutils/xentools413/patches/patch-tools_xenpmd_xenpmd.c                              |   15 +
 sysutils/xentools413/patches/patch-tools_xenstat_libxenstat_src_xenstat_netbsd.c      |   31 +
 sysutils/xentools413/patches/patch-tools_xenstore_xc.c                                |   18 +
 sysutils/xentools413/patches/patch-tools_xenstore_xs_lib.c                            |   13 +
 sysutils/xentools413/patches/patch-tools_xentrace_xentrace.c                          |   13 +
 sysutils/xentools413/patches/patch-tools_xl_Makefile                                  |   16 +
 sysutils/xentools413/patches/patch-xen_Rules.mk                                       |   12 +
 sysutils/xentools413/patches/patch-xen_tools_symbols.c                                |   19 +
 99 files changed, 3858 insertions(+), 0 deletions(-)

diffs (truncated from 4254 to 300 lines):

diff -r d106686183cf -r 76cdea50f499 sysutils/xenkernel413/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel413/DESCR       Tue May 26 11:12:10 2020 +0000
@@ -0,0 +1,14 @@
+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.13 Xen kernel itself.  PCI passthrough is
+not supported.  PAE is mandatory; on i386 one must use XEN3PAE_DOM[0U].
diff -r d106686183cf -r 76cdea50f499 sysutils/xenkernel413/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel413/MESSAGE     Tue May 26 11:12:10 2020 +0000
@@ -0,0 +1,11 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2020/05/26 11:12:10 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 d106686183cf -r 76cdea50f499 sysutils/xenkernel413/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel413/Makefile    Tue May 26 11:12:10 2020 +0000
@@ -0,0 +1,82 @@
+# $NetBSD: Makefile,v 1.1 2020/05/26 11:12:10 bouyer Exp $
+
+VERSION=       4.13.1
+#PKGREVISION=  1
+DISTNAME=      xen-${VERSION}
+PKGNAME=       xenkernel413-${VERSION}
+CATEGORIES=    sysutils
+MASTER_SITES=  https://downloads.xenproject.org/release/xen/${VERSION}/
+DIST_SUBDIR=   xen413
+
+MAINTAINER=    bouyer%NetBSD.org@localhost
+HOMEPAGE=      https://xenproject.org/
+COMMENT=       Xen 4.13.x Kernel
+
+LICENSE=       gnu-gpl-v2
+
+ONLY_FOR_PLATFORM=     Linux-2.6*-x86_64
+ONLY_FOR_PLATFORM+=    NetBSD-*.*-x86_64
+
+SSP_SUPPORTED= no
+
+NO_CONFIGURE=  yes
+USE_TOOLS+=    gmake
+
+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=     xen413-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
+.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_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 d106686183cf -r 76cdea50f499 sysutils/xenkernel413/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel413/PLIST       Tue May 26 11:12:10 2020 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2020/05/26 11:12:10 bouyer Exp $
+xen413-kernel/xen-debug.gz
+xen413-kernel/xen.gz
diff -r d106686183cf -r 76cdea50f499 sysutils/xenkernel413/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel413/distinfo    Tue May 26 11:12:10 2020 +0000
@@ -0,0 +1,14 @@
+$NetBSD: distinfo,v 1.1 2020/05/26 11:12:10 bouyer Exp $
+
+SHA1 (xen413/xen-4.13.1.tar.gz) = 194a314171120dad0b3c5433104c92343ec884ba
+RMD160 (xen413/xen-4.13.1.tar.gz) = 29cfb90b9da0ede99c1228b8e5964a99547c205d
+SHA512 (xen413/xen-4.13.1.tar.gz) = b56d20704155d98d803496cba83eb928e0f986a750831cd5600fc88d0ae772fe1456571654375054043d2da8daca255cc98385ebf08b1b1a75ecf7f4b7a0ee90
+Size (xen413/xen-4.13.1.tar.gz) = 39024612 bytes
+SHA1 (patch-Config.mk) = 9372a09efd05c9fbdbc06f8121e411fcb7c7ba65
+SHA1 (patch-xen_Makefile) = 465388d80de414ca3bb84faefa0f52d817e423a6
+SHA1 (patch-xen_Rules.mk) = c743dc63f51fc280d529a7d9e08650292c171dac
+SHA1 (patch-xen_arch_x86_Rules.mk) = 0bedfc53a128a87b6a249ae04fbdf6a053bfb70b
+SHA1 (patch-xen_arch_x86_boot_build32.mk) = b82c20de9b86ddaa9d05bbc1ff28f970eb78473c
+SHA1 (patch-xen_arch_x86_mm_p2m.c) = 6e9b84dc8448eca9677f184e720bbfcb3c6d314e
+SHA1 (patch-xen_drivers_passthrough_x86_iommu.c) = 76dd564d5740df587b5ebe4a593dac82ab18edac
+SHA1 (patch-xen_tools_symbols.c) = 6070b3b5ccc38a196283cfc1c52f5d87858beb18
diff -r d106686183cf -r 76cdea50f499 sysutils/xenkernel413/patches/patch-Config.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel413/patches/patch-Config.mk     Tue May 26 11:12:10 2020 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-Config.mk,v 1.1 2020/05/26 11:12:10 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 d106686183cf -r 76cdea50f499 sysutils/xenkernel413/patches/patch-xen_Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel413/patches/patch-xen_Makefile  Tue May 26 11:12:10 2020 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-xen_Makefile,v 1.1 2020/05/26 11:12:10 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 d106686183cf -r 76cdea50f499 sysutils/xenkernel413/patches/patch-xen_Rules.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel413/patches/patch-xen_Rules.mk  Tue May 26 11:12:10 2020 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-xen_Rules.mk,v 1.1 2020/05/26 11:12:10 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 d106686183cf -r 76cdea50f499 sysutils/xenkernel413/patches/patch-xen_arch_x86_Rules.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel413/patches/patch-xen_arch_x86_Rules.mk Tue May 26 11:12:10 2020 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-xen_arch_x86_Rules.mk,v 1.1 2020/05/26 11:12:10 bouyer Exp $
+
+--- xen/arch/x86/Rules.mk.orig 2018-04-17 19:21:31.000000000 +0200
++++ xen/arch/x86/Rules.mk      2018-04-23 13:31:24.000000000 +0200
+@@ -8,6 +8,7 @@
+ CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-default
+ CFLAGS += -DXEN_IMG_OFFSET=$(XEN_IMG_OFFSET)
+ CFLAGS += '-D__OBJECT_LABEL__=$(subst /,$$,$(subst -,_,$(subst $(BASEDIR)/,,$(CURDIR))/$@))'
++CFLAGS += $(EXTRA_CFLAGS)
+ 
+ # Prevent floating-point variables from creeping into Xen.
+ CFLAGS += -msoft-float
diff -r d106686183cf -r 76cdea50f499 sysutils/xenkernel413/patches/patch-xen_arch_x86_boot_build32.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel413/patches/patch-xen_arch_x86_boot_build32.mk  Tue May 26 11:12:10 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-xen_arch_x86_boot_build32.mk,v 1.1 2020/05/26 11:12:10 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 d106686183cf -r 76cdea50f499 sysutils/xenkernel413/patches/patch-xen_arch_x86_mm_p2m.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel413/patches/patch-xen_arch_x86_mm_p2m.c Tue May 26 11:12:10 2020 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-xen_arch_x86_mm_p2m.c,v 1.1 2020/05/26 11:12:10 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 d106686183cf -r 76cdea50f499 sysutils/xenkernel413/patches/patch-xen_drivers_passthrough_x86_iommu.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel413/patches/patch-xen_drivers_passthrough_x86_iommu.c   Tue May 26 11:12:10 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-xen_drivers_passthrough_x86_iommu.c,v 1.1 2020/05/26 11:12:10 bouyer Exp $
+
+Silent noisy warning
+
+--- xen/drivers/passthrough/x86/iommu.c.orig   2020-05-03 22:03:37.840754709 +0200
++++ xen/drivers/passthrough/x86/iommu.c        2020-05-03 22:04:36.676914512 +0200
+@@ -234,7 +234,7 @@
+             rc = iommu_map(d, _dfn(pfn), _mfn(pfn), 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 d106686183cf -r 76cdea50f499 sysutils/xenkernel413/patches/patch-xen_tools_symbols.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel413/patches/patch-xen_tools_symbols.c   Tue May 26 11:12:10 2020 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-xen_tools_symbols.c,v 1.1 2020/05/26 11:12:10 bouyer Exp $
+fix "error: array subscript has type 'char'"
+
+--- xen/tools/symbols.c.orig   2018-04-17 19:21:31.000000000 +0200
++++ xen/tools/symbols.c        2018-04-23 13:29:47.000000000 +0200
+@@ -173,11 +173,11 @@
+       /* include the type field in the symbol name, so that it gets
+        * compressed together */
+       s->len = strlen(str) + 1;
+-      if (islower(stype) && filename)
++      if (islower((uint8_t)stype) && filename)
+               s->len += strlen(filename) + 1;
+       s->sym = malloc(s->len + 1);
+       sym = SYMBOL_NAME(s);
+-      if (islower(stype) && filename) {
++      if (islower((uint8_t)stype) && filename) {
+               sym = stpcpy(sym, filename);
+               *sym++ = '#';
+       }
diff -r d106686183cf -r 76cdea50f499 sysutils/xentools413/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools413/DESCR        Tue May 26 11:12:10 2020 +0000



Home | Main Index | Thread Index | Old Index