pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils Xen is a virtual machine monitor which suppor...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a218d6e8fd9d
branches: trunk
changeset: 645012:a218d6e8fd9d
user: bouyer <bouyer%pkgsrc.org@localhost>
date: Tue Jan 20 16:42:13 2015 +0000
description:
Xen is a virtual machine monitor which supports running multiple
guests operating systems on a single machine. Guest OSes (also
called "domains") require a modified kernel which supports Xen
hypercalls in replacement to access to the physical hardware. 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.
xenkernel45 and xentools45 contains the kernel and tools from
the Xen 4.5.x branch
diffstat:
sysutils/xenkernel45/DESCR | 12 +
sysutils/xenkernel45/MESSAGE | 7 +
sysutils/xenkernel45/Makefile | 54 +
sysutils/xenkernel45/PLIST | 3 +
sysutils/xenkernel45/distinfo | 9 +
sysutils/xenkernel45/patches/patch-Config.mk | 13 +
sysutils/xenkernel45/patches/patch-xen_Makefile | 13 +
sysutils/xenkernel45/patches/patch-xen_arch_x86_Rules.mk | 12 +
sysutils/xenkernel45/patches/patch-xen_include_xen_lib.h | 13 +
sysutils/xentools45/DESCR | 5 +
sysutils/xentools45/MESSAGE | 11 +
sysutils/xentools45/MESSAGE.NetBSD | 17 +
sysutils/xentools45/Makefile | 219 +++++
sysutils/xentools45/PLIST | 403 ++++++++++
sysutils/xentools45/TODO | 7 +
sysutils/xentools45/distinfo | 53 +
sysutils/xentools45/files/blk_netbsd.c | 38 +
sysutils/xentools45/files/blktapctrl_netbsd.c | 16 +
sysutils/xentools45/files/xen-watchdog.sh | 17 +
sysutils/xentools45/files/xencommons.sh | 107 ++
sysutils/xentools45/files/xendomains.sh | 129 +++
sysutils/xentools45/patches/patch-.._Config.mk | 22 +
sysutils/xentools45/patches/patch-.._docs_man_xl.cfg.pod.5 | 29 +
sysutils/xentools45/patches/patch-.._docs_man_xl.conf.pod.5 | 30 +
sysutils/xentools45/patches/patch-.._docs_man_xl.pod.1 | 44 +
sysutils/xentools45/patches/patch-.._docs_man_xlcpupool.cfg.pod.5 | 28 +
sysutils/xentools45/patches/patch-Makefile | 13 +
sysutils/xentools45/patches/patch-blktap_drivers_Makefile | 16 +
sysutils/xentools45/patches/patch-configure | 39 +
sysutils/xentools45/patches/patch-examples_Makefile | 12 +
sysutils/xentools45/patches/patch-firmware_etherboot_Makefile | 26 +
sysutils/xentools45/patches/patch-firmware_etherboot_patches_series | 9 +
sysutils/xentools45/patches/patch-firmware_hvmloader_Makefile | 13 +
sysutils/xentools45/patches/patch-hotplug_NetBSD_Makefile | 46 +
sysutils/xentools45/patches/patch-hotplug_NetBSD_vif-bridge | 16 +
sysutils/xentools45/patches/patch-hotplug_NetBSD_vif-ip | 15 +
sysutils/xentools45/patches/patch-hotplug_common_Makefile | 24 +
sysutils/xentools45/patches/patch-include_xen-sys_NetBSD_gntdev.h | 110 ++
sysutils/xentools45/patches/patch-libfsimage_common_Makefile | 13 +
sysutils/xentools45/patches/patch-libfsimage_ufs_ufs.h | 13 +
sysutils/xentools45/patches/patch-libxc_xc__netbsd.c | 251 ++++++
sysutils/xentools45/patches/patch-libxl_Makefile | 22 +
sysutils/xentools45/patches/patch-libxl_libxl__create.c | 40 +
sysutils/xentools45/patches/patch-libxl_libxl_uuid.c | 22 +
sysutils/xentools45/patches/patch-ocaml_common.make | 13 +
sysutils/xentools45/patches/patch-ocaml_xenstored_Makefile | 12 +
sysutils/xentools45/patches/patch-ocaml_xenstored_define.ml | 20 +
sysutils/xentools45/patches/patch-ocaml_xenstored_utils.ml | 13 +
sysutils/xentools45/patches/patch-pygrub_Makefile | 13 +
sysutils/xentools45/patches/patch-qemu-xen-traditional_Makefile | 84 ++
sysutils/xentools45/patches/patch-qemu-xen-traditional_block-raw-posix.c | 62 +
sysutils/xentools45/patches/patch-qemu-xen-traditional_configure | 31 +
sysutils/xentools45/patches/patch-qemu-xen-traditional_hw_e1000.c | 34 +
sysutils/xentools45/patches/patch-qemu-xen-traditional_hw_ide.c | 27 +
sysutils/xentools45/patches/patch-qemu-xen-traditional_hw_pass-through.c | 13 +
sysutils/xentools45/patches/patch-qemu-xen-traditional_hw_pass-through.h | 18 +
sysutils/xentools45/patches/patch-qemu-xen-traditional_hw_piix4acpi.c | 17 +
sysutils/xentools45/patches/patch-qemu-xen-traditional_hw_pt-graphics.c | 13 +
sysutils/xentools45/patches/patch-qemu-xen-traditional_hw_pt-msi.c | 15 +
sysutils/xentools45/patches/patch-qemu-xen-traditional_hw_pt-msi.h | 12 +
sysutils/xentools45/patches/patch-qemu-xen-traditional_i386-dm_hookstarget.mak | 12 +
sysutils/xentools45/patches/patch-qemu-xen-traditional_xen-hooks.mak | 34 +
sysutils/xentools45/patches/patch-qemu-xen_audio_audio.c | 12 +
sysutils/xentools45/patches/patch-qemu-xen_qemu-doc.texi | 15 +
sysutils/xentools45/patches/patch-qemu-xen_util_hbitmap.c | 18 +
sysutils/xentools45/patches/patch-xenstore_xc.c | 18 +
66 files changed, 2517 insertions(+), 0 deletions(-)
diffs (truncated from 2781 to 300 lines):
diff -r cac522ec4909 -r a218d6e8fd9d sysutils/xenkernel45/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel45/DESCR Tue Jan 20 16:42:13 2015 +0000
@@ -0,0 +1,12 @@
+Xen is a virtual machine monitor which supports running multiple
+guests operating systems on a single machine. Guest OSes (also
+called "domains") require a modified kernel which supports Xen
+hypercalls in replacement to access to the physical hardware. 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.5 Xen4 kernel itself. PCI passthrough is
+not supported. PAE is mandatory; on i386 one must use XEN3PAE_DOM[0U].
diff -r cac522ec4909 -r a218d6e8fd9d sysutils/xenkernel45/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel45/MESSAGE Tue Jan 20 16:42:13 2015 +0000
@@ -0,0 +1,7 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2015/01/20 16:42:13 bouyer Exp $
+
+The Xen hypervisor is installed under the following locations:
+ ${XENKERNELDIR}/xen.gz (standard hypervisor)
+ ${XENKERNELDIR}/xen-debug.gz (debug hypervisor)
+===========================================================================
diff -r cac522ec4909 -r a218d6e8fd9d sysutils/xenkernel45/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel45/Makefile Tue Jan 20 16:42:13 2015 +0000
@@ -0,0 +1,54 @@
+# $NetBSD: Makefile,v 1.1 2015/01/20 16:42:13 bouyer Exp $
+
+VERSION= 4.5.0
+DISTNAME= xen-${VERSION}
+PKGNAME= xenkernel45-${VERSION}
+#PKGREVISION= 2
+CATEGORIES= sysutils
+MASTER_SITES= http://bits.xensource.com/oss-xen/release/${VERSION}/
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://xenproject.org/
+COMMENT= Xen 4.5.x Kernel
+
+LICENSE= gnu-gpl-v2
+
+ONLY_FOR_PLATFORM= Linux-2.6*-i386 Linux-2.6*-x86_64
+ONLY_FOR_PLATFORM+= NetBSD-[5-9].*-x86_64 NetBSD-[5-9].*-i386
+
+NO_CONFIGURE= yes
+USE_TOOLS+= gmake
+
+PYTHON_FOR_BUILD_ONLY= YES
+
+MAKE_ENV+= OCAML_TOOLS=no
+
+INSTALLATION_DIRS= xen45-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
+.endif
+
+MAKE_ENV+= EXTRA_CFLAGS=${EXTRA_CFLAGS:Q}
+
+do-build:
+ cd ${WRKSRC}/xen && ${BUILD_MAKE_CMD} debug=n build
+ ${CP} ${WRKSRC}/xen/xen.gz ${WRKDIR}/xen.gz
+ cd ${WRKSRC}/xen && ${MAKE_PROGRAM} clean
+ cd ${WRKSRC}/xen && ${BUILD_MAKE_CMD} debug=y build
+ ${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 cac522ec4909 -r a218d6e8fd9d sysutils/xenkernel45/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel45/PLIST Tue Jan 20 16:42:13 2015 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2015/01/20 16:42:13 bouyer Exp $
+xen45-kernel/xen-debug.gz
+xen45-kernel/xen.gz
diff -r cac522ec4909 -r a218d6e8fd9d sysutils/xenkernel45/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel45/distinfo Tue Jan 20 16:42:13 2015 +0000
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1 2015/01/20 16:42:13 bouyer Exp $
+
+SHA1 (xen-4.5.0.tar.gz) = c4aab5fb366496ad1edc7fe0a935a0d604335637
+RMD160 (xen-4.5.0.tar.gz) = e35ba0cb484492c1a289218eb9bf53b57dbd3a45
+Size (xen-4.5.0.tar.gz) = 18404933 bytes
+SHA1 (patch-Config.mk) = a2a104d023cea4e551a3ad40927d4884d6c610bf
+SHA1 (patch-xen_Makefile) = 750d0c8d4fea14d3ef3f872de5242a1f5104cbbe
+SHA1 (patch-xen_arch_x86_Rules.mk) = 7b0894ba7311edb02118a021671f304cf3872154
+SHA1 (patch-xen_include_xen_lib.h) = b9f5dff5b4cf11333d95d9835941c6bc19b776ad
diff -r cac522ec4909 -r a218d6e8fd9d sysutils/xenkernel45/patches/patch-Config.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel45/patches/patch-Config.mk Tue Jan 20 16:42:13 2015 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-Config.mk,v 1.1 2015/01/20 16:42:13 bouyer Exp $
+
+--- Config.mk.orig 2015-01-12 17:53:24.000000000 +0100
++++ Config.mk 2015-01-19 12:29:14.000000000 +0100
+@@ -39,6 +39,8 @@
+ HOSTCC = gcc
+ 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 cac522ec4909 -r a218d6e8fd9d sysutils/xenkernel45/patches/patch-xen_Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel45/patches/patch-xen_Makefile Tue Jan 20 16:42:13 2015 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-xen_Makefile,v 1.1 2015/01/20 16:42:13 bouyer Exp $
+
+--- xen/Makefile.orig 2015-01-12 17:53:24.000000000 +0100
++++ xen/Makefile 2015-01-19 12:29:14.000000000 +0100
+@@ -131,7 +131,7 @@
+ -e 's/@@whoami@@/$(XEN_WHOAMI)/g' \
+ -e 's/@@domain@@/$(XEN_DOMAIN)/g' \
+ -e 's/@@hostname@@/$(shell hostname)/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 cac522ec4909 -r a218d6e8fd9d sysutils/xenkernel45/patches/patch-xen_arch_x86_Rules.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel45/patches/patch-xen_arch_x86_Rules.mk Tue Jan 20 16:42:13 2015 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-xen_arch_x86_Rules.mk,v 1.1 2015/01/20 16:42:13 bouyer Exp $
+
+--- xen/arch/x86/Rules.mk.orig 2015-01-12 17:53:24.000000000 +0100
++++ xen/arch/x86/Rules.mk 2015-01-19 12:29:14.000000000 +0100
+@@ -24,6 +24,7 @@
+ CFLAGS += -I$(BASEDIR)/include
+ CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-generic
+ CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-default
++CFLAGS += $(EXTRA_CFLAGS)
+
+ # Prevent floating-point variables from creeping into Xen.
+ CFLAGS += -msoft-float
diff -r cac522ec4909 -r a218d6e8fd9d sysutils/xenkernel45/patches/patch-xen_include_xen_lib.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xenkernel45/patches/patch-xen_include_xen_lib.h Tue Jan 20 16:42:13 2015 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-xen_include_xen_lib.h,v 1.1 2015/01/20 16:42:13 bouyer Exp $
+
+--- xen/include/xen/lib.h.orig 2015-01-12 17:53:24.000000000 +0100
++++ xen/include/xen/lib.h 2015-01-19 12:30:35.000000000 +0100
+@@ -43,7 +43,7 @@
+ do { if ( unlikely(!(p)) ) assert_failed(#p); } while (0)
+ #define debug_build() 1
+ #else
+-#define ASSERT(p) do { if ( 0 && (p) ); } while (0)
++#define ASSERT(p) do { if ( 0 && (p) ) (void)0; } while (0)
+ #define debug_build() 0
+ #endif
+
diff -r cac522ec4909 -r a218d6e8fd9d sysutils/xentools45/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools45/DESCR Tue Jan 20 16:42:13 2015 +0000
@@ -0,0 +1,5 @@
+The Xen virtual machine monitor allows running several virtual machines
+on a single physical machine. The xentools45 package contains the
+tools to create, destroy and control the virtual machines.
+
+This package contains the tools for Xen 4.5.x
diff -r cac522ec4909 -r a218d6e8fd9d sysutils/xentools45/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools45/MESSAGE Tue Jan 20 16:42:13 2015 +0000
@@ -0,0 +1,11 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2015/01/20 16:42:13 bouyer Exp $
+
+Please note that the xm command has been removed.
+You have to switch to the xl command, which is now functional on NetBSD.
+
+Also note that the rc.d scripts have been updated in this version.
+If you don't use PKG_RCD_SCRIPTS=YES then it is very important for
+you to copy the new rc.d scripts to /etc/rc.d.
+
+===========================================================================
diff -r cac522ec4909 -r a218d6e8fd9d sysutils/xentools45/MESSAGE.NetBSD
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools45/MESSAGE.NetBSD Tue Jan 20 16:42:13 2015 +0000
@@ -0,0 +1,17 @@
+===========================================================================
+$NetBSD: MESSAGE.NetBSD,v 1.1 2015/01/20 16:42:13 bouyer Exp $
+
+Please ensure that the Xen-specific devices needed by xend(8) exist:
+
+ cd /dev && sh MAKEDEV xen
+
+There are example configuration files for setting up a guest domain in:
+
+ ${EGDIR}/
+
+Please also refer to the the "NetBSD/xen How-To" for more information on
+creating a Xen setup:
+
+ http://www.NetBSD.org/ports/xen/howto.html
+
+===========================================================================
diff -r cac522ec4909 -r a218d6e8fd9d sysutils/xentools45/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools45/Makefile Tue Jan 20 16:42:13 2015 +0000
@@ -0,0 +1,219 @@
+# $NetBSD: Makefile,v 1.1 2015/01/20 16:42:13 bouyer Exp $
+
+VERSION= 4.5.0
+VERSION_IPXE= 9a93db3f0947484e30e753bbd61a10b17336e20e
+
+DISTNAME= xen-${VERSION}
+PKGNAME= xentools45-${VERSION}
+#PKGREVISION= 1
+CATEGORIES= sysutils
+MASTER_SITES= http://bits.xensource.com/oss-xen/release/${VERSION}/
+
+DISTFILES= ${DISTNAME}.tar.gz
+DISTFILES+= ipxe-git-${VERSION_IPXE}.tar.gz
+SITES.ipxe-git-${VERSION_IPXE}.tar.gz += http://xenbits.xensource.com/xen-extfiles/
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://xen.org/
+COMMENT= Userland Tools for Xen 4.5.x
+LICENSE= gnu-gpl-v2
+
+# XXX add version check: Xen requires dev86 >= 0.16.14
+BUILD_DEPENDS+= dev86-[0-9]*:../../devel/dev86 # needed to build firmware
+.if !exists(/usr/bin/iasl)
+BUILD_DEPENDS+= acpica-utils-[0-9]*:../../sysutils/acpica-utils
+.endif
+DEPENDS+= ${PYPKGPREFIX}-curses>=0nb4:../../devel/py-curses
+DEPENDS+= ${PYPKGPREFIX}-lxml-[0-9]*:../../textproc/py-lxml
+
+PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # py-xml
+
+PKG_SYSCONFSUBDIR= xen
+
+ONLY_FOR_PLATFORM= Linux-2.6*-i386 Linux-2.6*-x86_64
+ONLY_FOR_PLATFORM+= NetBSD-[5-9].*-x86_64 NetBSD-[5-9].*-i386
+
+CONFLICTS+= libxen-[0-9]*
+CONFLICTS+= xentools20-[0-9]*
+CONFLICTS+= xentools3-[0-9]*
+CONFLICTS+= xenstoretools-[0-9]*
+
+XENTOP= ${WRKDIR}/xen-${VERSION}
+WRKSRC= ${XENTOP}/tools
+CHECK_PORTABILITY_SKIP= examples/*
+
+EGDIR= ${PREFIX}/share/examples/xen
+MESSAGE_SUBST+= EGDIR=${EGDIR}
+
+USE_TOOLS+= pod2man gmake pkg-config makeinfo perl bash
+
+GNU_CONFIGURE= YES
+#CONFIGURE_ARGS+= --enable-xenapi
+CONFIGURE_ARGS+= --disable-seabios
+
+MAKE_ENV+= PREFIX=${prefix:Q} WRKSRC=${WRKSRC}
+MAKE_ENV+= EGDIR=${EGDIR}
+MAKE_ENV+= XEN_EXAMPLES_DIR=${EGDIR}
+MAKE_ENV+= BASH_COMPLETION_DIR=${EGDIR}
+MAKE_ENV+= MV=${MV:Q} PYTHON=${PYTHONBIN:Q} SED=${SED:Q}
+MAKE_ENV+= VARBASE=${VARBASE}
+MAKE_ENV+= XEN_CONFIG_DIR=${PKG_SYSCONFDIR}
+MAKE_ENV+= V=YES
+MAKE_ENV+= NO_WERROR=1
+
+#MAKE_ENV+= INSTALL_DIR=${BSD_INSTALL_DATA_DIR}
+#MAKE_ENV+= INSTALL_DATA=${BSD_INSTALL_DATA}
+#MAKE_ENV+= INSTALL_PROG=${BSD_INSTALL_PROGRAM}
+
+PY_PATCHPLIST= yes
+REPLACE_PYTHON+= misc/sbdf2devicepath misc/xen-bugtool
+REPLACE_PYTHON+= misc/xen-ringwatch misc/xencons
+REPLACE_PYTHON+= misc/xenpvnetboot misc/xensymoops
+REPLACE_PYTHON+= xenmon/xenmon.py
+
+SUBST_CLASSES+= perlpath
+SUBST_STAGE.perlpath= pre-configure
+SUBST_FILES.perlpath= ../tools/misc/xencov_split
+SUBST_FILES.perlpath+= ../tools/firmware/rombios/makesym.perl
+SUBST_FILES.perlpath+= ../tools/qemu-xen-traditional/texi2pod.pl
+SUBST_FILES.perlpath+= ../tools/examples/xeninfo.pl
Home |
Main Index |
Thread Index |
Old Index