pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/xentools3-hvm Rename xentools30-hvm to xentoo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c79f143fa770
branches:  trunk
changeset: 529993:c79f143fa770
user:      bouyer <bouyer%pkgsrc.org@localhost>
date:      Thu Jun 14 19:42:12 2007 +0000

description:
Rename xentools30-hvm to xentools3-hvm to acknowledge that Xen dropped one
digit in version numbers, and upgrade to 3.1.0.
Changes since 3.0.4:
    *   XenAPI 1.0 support
          o XML configuration files for virtual machines;
          o VM life-cycle management operations; and
          o Secure on- or off-box XML-RPC with bindings for many languages
    * Basic save/restore/migrate support for HVM (e.g. Windows) VMs;
    * Dynamic memory control for HVM guests;
    * 32-on-64 PV guest support (run PAE PV VMs on a 64-bit Xen!); and
    * Blktap copy-on-write disk support.

It also fixes some HVM bugs.
Note that this package contains a backport of the pcnet emulation from
xen-unstable, to make it useable. It gives better performances than the
default realtek emulation.

diffstat:

 sysutils/xentools3-hvm/DESCR                |    4 +
 sysutils/xentools3-hvm/Makefile             |   95 +++
 sysutils/xentools3-hvm/PLIST                |   43 +
 sysutils/xentools3-hvm/distinfo             |   25 +
 sysutils/xentools3-hvm/files/NetBSD.mk      |    2 +
 sysutils/xentools3-hvm/files/hvm-nbsd       |   68 ++
 sysutils/xentools3-hvm/files/qemu-ifup-nbsd |    3 +
 sysutils/xentools3-hvm/files/xenio.h        |  105 +++
 sysutils/xentools3-hvm/files/xenio3.h       |   89 +++
 sysutils/xentools3-hvm/patches/patch-aa     |   61 ++
 sysutils/xentools3-hvm/patches/patch-an     |   24 +
 sysutils/xentools3-hvm/patches/patch-ao     |   23 +
 sysutils/xentools3-hvm/patches/patch-ap     |   12 +
 sysutils/xentools3-hvm/patches/patch-ar     |  165 ++++++
 sysutils/xentools3-hvm/patches/patch-as     |   26 +
 sysutils/xentools3-hvm/patches/patch-at     |   13 +
 sysutils/xentools3-hvm/patches/patch-au     |   16 +
 sysutils/xentools3-hvm/patches/patch-av     |   12 +
 sysutils/xentools3-hvm/patches/patch-aw     |   32 +
 sysutils/xentools3-hvm/patches/patch-ax     |   14 +
 sysutils/xentools3-hvm/patches/patch-ay     |   25 +
 sysutils/xentools3-hvm/patches/patch-ba     |   15 +
 sysutils/xentools3-hvm/patches/patch-bb     |   19 +
 sysutils/xentools3-hvm/patches/patch-bv     |   14 +
 sysutils/xentools3-hvm/patches/patch-ci     |   16 +
 sysutils/xentools3-hvm/patches/patch-ck     |    9 +
 sysutils/xentools3-hvm/patches/patch-cl     |   12 +
 sysutils/xentools3-hvm/patches/patch-cp     |   14 +
 sysutils/xentools3-hvm/patches/patch-cq     |  757 ++++++++++++++++++++++++++++
 29 files changed, 1713 insertions(+), 0 deletions(-)

diffs (truncated from 1829 to 300 lines):

diff -r 0207a9b24d9d -r c79f143fa770 sysutils/xentools3-hvm/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools3-hvm/DESCR      Thu Jun 14 19:42:12 2007 +0000
@@ -0,0 +1,4 @@
+The Xen virtual machine monitor allows running several virtual machines
+on a single physical machine.  The xentools30-vmx package contains
+additionnal tools to xentools30 to run unmodified guests using the
+Intel VT or AMD VMX extentions.
diff -r 0207a9b24d9d -r c79f143fa770 sysutils/xentools3-hvm/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools3-hvm/Makefile   Thu Jun 14 19:42:12 2007 +0000
@@ -0,0 +1,95 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/06/14 19:42:12 bouyer Exp $
+#
+
+VERSION=               3.1.0
+DISTNAME=              xen-${VERSION}-src
+PKGNAME=               xentools3-hvm-${VERSION}
+CATEGORIES=            sysutils
+MASTER_SITES=          http://www.cl.cam.ac.uk/research/srg/netos/xen/downloads/ \
+                       http://bits.xensource.com/oss-xen/release/${VERSION}/src.tgz/
+EXTRACT_SUFX=          .tgz
+
+MAINTAINER=            bouyer%NetBSD.org@localhost
+HOMEPAGE=              http://www.cl.cam.ac.uk/research/srg/netos/xen/
+COMMENT=               Tools for Virtual Machine Extensions support in Xen
+
+BUILD_DEPENDS+=        dev86-[0-9]*:../../devel/dev86 # needed to build firmware
+
+PKG_SYSCONFSUBDIR=     xen
+
+ONLY_FOR_PLATFORM=     Linux-2.[46]*-i386 NetBSD-*-i386
+
+CONFLICTS=             xentools30-*
+
+WRKSRC=                        ${WRKDIR}/xen-${VERSION}-src/tools
+CHECK_PORTABILITY_SKIP+=       examples/* xm-test/ramdisk/make-release.sh
+
+EGDIR=                 ${PREFIX}/share/examples/xen
+MESSAGE_SUBST=         EGDIR=${EGDIR}
+
+USE_TOOLS+=            perl
+USE_TOOLS+=            gmake
+MAKE_ENV+=             EGDIR=${EGDIR:Q}
+MAKE_ENV+=             MV=${MV:Q} PYTHON=${PYTHONBIN:Q} SED=${SED:Q}
+MAKE_ENV+=             XEN_TARGET_ARCH="x86_32"
+PYTHON_VERSIONS_ACCEPTED= 24 23
+
+SUBST_CLASSES+=                paths
+SUBST_STAGE.paths=     pre-configure
+SUBST_FILES.paths=     ioemu/vl.c
+SUBST_SED.paths=       -e "s|/usr/sbin|${PREFIX}/sbin|g"
+SUBST_MESSAGE.paths=   Fixing hardcoded paths.
+
+SUBST_CLASSES+=                py
+SUBST_STAGE.py=                pre-configure
+SUBST_FILES.py=                ../xen/include/public/foreign/Makefile
+SUBST_SED.py=          -e "s,python,${PYTHONBIN},g"
+
+SUBST_CLASSES+=                conf
+SUBST_STAGE.conf=      pre-configure
+SUBST_FILES.conf=      ioemu/configure
+SUBST_FILES.conf+=     ioemu/vl.c
+SUBST_SED.conf=                -e "s,@XENDCONFDIR@,${PKG_SYSCONFDIR},g"
+
+SUBST_CLASSES+=                prefix
+SUBST_STAGE.prefix=    pre-configure
+SUBST_FILES.prefix=    python/xen/util/auxbin.py
+SUBST_FILES.prefix=    ioemu/vl.c
+SUBST_SED.prefix=      -e "s,@PREFIX@,${PREFIX},g"
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+PROCPATH=              /kern
+.else
+PROCPATH=              /proc
+.endif
+
+pre-build:
+       ${MKDIR} ${WRKSRC}/libxc/xen/NetBSD
+       ${TEST} -f ${WRKSRC}/libxc/xen/NetBSD/xenio.h || ${CP} ${FILESDIR}/xenio.h ${WRKSRC}/libxc/xen/NetBSD
+       ${TEST} -f ${WRKSRC}/libxc/xen/NetBSD/xenio3.h || ${CP} ${FILESDIR}/xenio3.h ${WRKSRC}/libxc/xen/NetBSD
+       ${CP} ${FILESDIR}/NetBSD.mk ${WRKSRC}/../config/
+
+.if ${OPSYS} == "NetBSD"
+post-build:
+       cd ${FILESDIR}; for src in *-nbsd; do                           \
+               dst="$${src%-nbsd}";                                    \
+               ${SED}  -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g"     \
+                       -e "s|@PREFIX@|${PREFIX}|g"                     \
+                       $$src > ${WRKSRC}/examples/$$dst;               \
+       done
+.endif
+
+post-install:
+       for f in hvm; do \
+               ${INSTALL_DATA} ${WRKSRC}/examples/$$f ${EGDIR}/$$f;    \
+       done
+
+.include "../../lang/python/application.mk"
+.include "../../lang/python/extension.mk"
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../devel/SDL/buildlink3.mk"
+.include "../../sysutils/xentools3/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff -r 0207a9b24d9d -r c79f143fa770 sysutils/xentools3-hvm/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools3-hvm/PLIST      Thu Jun 14 19:42:12 2007 +0000
@@ -0,0 +1,43 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/06/14 19:42:12 bouyer Exp $
+lib/xen/boot/hvmloader
+libexec/qemu-dm
+share/examples/xen/hvm
+share/xen/qemu/keymaps/ar
+share/xen/qemu/keymaps/common
+share/xen/qemu/keymaps/da
+share/xen/qemu/keymaps/de
+share/xen/qemu/keymaps/de-ch
+share/xen/qemu/keymaps/en-gb
+share/xen/qemu/keymaps/en-us
+share/xen/qemu/keymaps/es
+share/xen/qemu/keymaps/et
+share/xen/qemu/keymaps/fi
+share/xen/qemu/keymaps/fo
+share/xen/qemu/keymaps/fr
+share/xen/qemu/keymaps/fr-be
+share/xen/qemu/keymaps/fr-ca
+share/xen/qemu/keymaps/fr-ch
+share/xen/qemu/keymaps/hr
+share/xen/qemu/keymaps/hu
+share/xen/qemu/keymaps/is
+share/xen/qemu/keymaps/it
+share/xen/qemu/keymaps/ja
+share/xen/qemu/keymaps/lt
+share/xen/qemu/keymaps/lv
+share/xen/qemu/keymaps/mk
+share/xen/qemu/keymaps/modifiers
+share/xen/qemu/keymaps/nl
+share/xen/qemu/keymaps/nl-be
+share/xen/qemu/keymaps/no
+share/xen/qemu/keymaps/pl
+share/xen/qemu/keymaps/pt
+share/xen/qemu/keymaps/pt-br
+share/xen/qemu/keymaps/ru
+share/xen/qemu/keymaps/sl
+share/xen/qemu/keymaps/sv
+share/xen/qemu/keymaps/th
+share/xen/qemu/keymaps/tr
+@dirrm lib/xen/boot
+@dirrm lib/xen
+@dirrm share/xen/qemu/keymaps
+@dirrm share/xen/qemu
diff -r 0207a9b24d9d -r c79f143fa770 sysutils/xentools3-hvm/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools3-hvm/distinfo   Thu Jun 14 19:42:12 2007 +0000
@@ -0,0 +1,25 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/06/14 19:42:12 bouyer Exp $
+
+SHA1 (xen-3.1.0-src.tgz) = fa4b54c36626f2cce9b15dc99cafda0b42c54777
+RMD160 (xen-3.1.0-src.tgz) = 2fd65a3b81e522d0ed2d62fd11e5977167f1ceb3
+Size (xen-3.1.0-src.tgz) = 6831094 bytes
+SHA1 (patch-aa) = 663c798a472501d4c38add5049faded5b7e807aa
+SHA1 (patch-an) = cb6e3a7eac490851f2eacf557f05daf0d6966cce
+SHA1 (patch-ao) = d1250258d09cf9b330a4e9d52e85332a0eef7998
+SHA1 (patch-ap) = 33f2bdbef6df3f2105d4502b8066abb6c952fc6c
+SHA1 (patch-ar) = c8748761267dd82c75deab79d13b71d56bcf2223
+SHA1 (patch-as) = 8850108d0c8f101642f4855184253824f9c214b5
+SHA1 (patch-at) = 2311289176c83fcd3ff18b90bab9c2e5e05a52f1
+SHA1 (patch-au) = beb2eaa8bf832e179e69b1758cfe0fafafdc496b
+SHA1 (patch-av) = be2a1440126908996410f92a04ad479f8a2ca373
+SHA1 (patch-aw) = 2776799b391983ad79af0f28367287a4a865260a
+SHA1 (patch-ax) = 93411fbeff95f76d723fdda993d55a2740d3a713
+SHA1 (patch-ay) = 6c5b1e469d6dfd853f68a3151ee46e7c56d8247c
+SHA1 (patch-ba) = ee151472a9ec28301b67e696e81673c4bf753ed6
+SHA1 (patch-bb) = 19e3d323efab335a50f0410d1197ecbee5b7798b
+SHA1 (patch-bv) = 2ba938aef7a5c9eb417e443577b841bae0e0550a
+SHA1 (patch-ci) = 1338452d7994b3de40e80fb395175ddbe325b577
+SHA1 (patch-ck) = d085b0ced66544963441fff5231e06fd9ac03878
+SHA1 (patch-cl) = ad26eee7b315ec512453c73cdc29253e0fa6266f
+SHA1 (patch-cp) = 1f774a6636ce6646fc83bab304e84ce2d8886db5
+SHA1 (patch-cq) = b2fcddf97e92a49828504777232841c8d5e3df16
diff -r 0207a9b24d9d -r c79f143fa770 sysutils/xentools3-hvm/files/NetBSD.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools3-hvm/files/NetBSD.mk    Thu Jun 14 19:42:12 2007 +0000
@@ -0,0 +1,2 @@
+# $NetBSD: NetBSD.mk,v 1.1.1.1 2007/06/14 19:42:12 bouyer Exp $
+include $(XEN_ROOT)/config/StdGNU.mk
diff -r 0207a9b24d9d -r c79f143fa770 sysutils/xentools3-hvm/files/hvm-nbsd
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools3-hvm/files/hvm-nbsd     Thu Jun 14 19:42:12 2007 +0000
@@ -0,0 +1,68 @@
+#============================================================================
+# Python configuration setup for 'xm create'.
+# This script sets the parameters used when a domain is created using 'xm create'.
+# You use a separate script for each domain you want to create, or 
+# you can set the parameters for the domain on the xm command line.
+#============================================================================
+
+#----------------------------------------------------------------------------
+# Kernel image file.
+kernel = "@PREFIX@/lib/xen/boot/hvmloader"
+
+builder='hvm'
+
+# Initial memory allocation (in megabytes) for the new domain.
+memory = 256
+
+# A name for your domain. All domains must have different names.
+name = "hvm"
+
+#Network interface. By default emules a realtek 8139. For a NetBSD guest you
+# have to disable re(4) and let rtk attach to use it.
+# ne2k_pci emulates a pci ne2000 clone; this his cpu-hungry in dom0
+# pcnet emulates a AMD PCnet-PCI controller; but it corrupts packets with
+# pcn(4) under NetBSD.
+#vif = [ 'mac=00:16:3e:00:00:13, bridge=bridge0, type=ioemu, model=ne2k_pci' ]
+#vif = [ 'mac=00:16:3e:00:00:13, bridge=bridge0, type=ioemu, model=pcnet' ]
+vif = [ 'mac=00:16:3e:00:00:13, bridge=bridge0, type=ioemu' ]
+
+#----------------------------------------------------------------------------
+# device model to use: only qemu-dm available for now
+device_model = '/usr/pkg/libexec/qemu-dm'
+
+# Define the disk devices you want the domain to have access to, and
+# what you want them accessible as.
+# Each disk entry is of the form phy:UNAME,DEV,MODE
+# where UNAME is the device, DEV is the device name the domain will see,
+# and MODE is r for read-only, w for read-write.
+# For hvm domains you can only use hda to hdd. You can set extra types
+# (e.g. cdrom)
+
+disk = [ 'file:/home/domains/vmx,ioemu:hda,w', 'file:/home/domains/i386cd.iso,ioemu:hdc:cdrom,r' ]
+
+# floppy images; this doesn't seem to work currently. Use a iso image instead.
+#fda = '/home/domains/boot1.fs'
+
+# boot device: a = floppy, c= hard drive, d= cdrom (with the disk entry
+# before)
+boot='d'
+
+# By default, 'xm create' will try to open an X window on the current display
+# for the virtal framebuffer. You can have the virtal framebuffer in vnc
+# instead, and connect using a vnc client (using localhost:$vncdisplay)
+# If vncunused is set to 1 (this is the default value), vncdisplay
+# will be set to the first unused port; so it's recommended to
+#vnc = 1
+#vncdisplay = 0
+#vncunused = 0
+
+#Xen emulates a PS/2 mouse, but the pointer in the guest has difficulties
+# tracking the absolute position. Xen can emulate a USB tablet in addition
+# to the mouse which will report the absolute position of the pointer,
+# and make the mouse much easier to use. 
+# 
+usb=1
+usbdevice='tablet'
+#usbdevice='mouse'
+
+#============================================================================
diff -r 0207a9b24d9d -r c79f143fa770 sysutils/xentools3-hvm/files/qemu-ifup-nbsd
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools3-hvm/files/qemu-ifup-nbsd       Thu Jun 14 19:42:12 2007 +0000
@@ -0,0 +1,3 @@
+#!/bin/sh
+ifconfig $1 up
+exec /sbin/brconfig $2 add $1
diff -r 0207a9b24d9d -r c79f143fa770 sysutils/xentools3-hvm/files/xenio.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools3-hvm/files/xenio.h      Thu Jun 14 19:42:12 2007 +0000
@@ -0,0 +1,105 @@
+/*     NetBSD: xenio.h,v 1.3 2005/05/24 12:07:12 yamt Exp $    */
+
+/******************************************************************************
+ * privcmd.h
+ * 
+ * Copyright (c) 2003-2004, K A Fraser
+ * 
+ * This file may be distributed separately from the Linux kernel, or
+ * incorporated into other software packages, subject to the following license:
+ * 
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this source file (the "Software"), to deal in the Software without
+ * restriction, including without limitation the rights to use, copy, modify,
+ * merge, publish, distribute, sublicense, and/or sell copies of the Software,
+ * and to permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ * 
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ * 
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */



Home | Main Index | Thread Index | Old Index