pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/xentools30-hvm Import a xentools30-hvm packag...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/80689f8a494e
branches:  trunk
changeset: 520354:80689f8a494e
user:      bouyer <bouyer%pkgsrc.org@localhost>
date:      Thu Oct 19 22:58:21 2006 +0000

description:
Import a xentools30-hvm package, version 3.0.3

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.

diffstat:

 sysutils/xentools30-hvm/DESCR            |    4 +
 sysutils/xentools30-hvm/Makefile         |   90 +++++++++++++++++++
 sysutils/xentools30-hvm/PLIST            |   44 +++++++++
 sysutils/xentools30-hvm/distinfo         |   20 ++++
 sysutils/xentools30-hvm/files/hvm-nbsd   |   54 +++++++++++
 sysutils/xentools30-hvm/files/xenio.h    |  105 ++++++++++++++++++++++
 sysutils/xentools30-hvm/files/xenio3.h   |   89 +++++++++++++++++++
 sysutils/xentools30-hvm/patches/patch-aa |   58 ++++++++++++
 sysutils/xentools30-hvm/patches/patch-an |   24 +++++
 sysutils/xentools30-hvm/patches/patch-ao |   23 +++++
 sysutils/xentools30-hvm/patches/patch-ap |   12 ++
 sysutils/xentools30-hvm/patches/patch-ar |  142 +++++++++++++++++++++++++++++++
 sysutils/xentools30-hvm/patches/patch-as |   26 +++++
 sysutils/xentools30-hvm/patches/patch-at |   13 ++
 sysutils/xentools30-hvm/patches/patch-au |   16 +++
 sysutils/xentools30-hvm/patches/patch-av |   12 ++
 sysutils/xentools30-hvm/patches/patch-aw |   32 ++++++
 sysutils/xentools30-hvm/patches/patch-ax |   14 +++
 sysutils/xentools30-hvm/patches/patch-ay |   28 ++++++
 sysutils/xentools30-hvm/patches/patch-ba |   15 +++
 sysutils/xentools30-hvm/patches/patch-bb |   19 ++++
 sysutils/xentools30-hvm/patches/patch-bv |   33 +++++++
 22 files changed, 873 insertions(+), 0 deletions(-)

diffs (truncated from 961 to 300 lines):

diff -r f2fd5176536d -r 80689f8a494e sysutils/xentools30-hvm/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools30-hvm/DESCR     Thu Oct 19 22:58:21 2006 +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 f2fd5176536d -r 80689f8a494e sysutils/xentools30-hvm/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools30-hvm/Makefile  Thu Oct 19 22:58:21 2006 +0000
@@ -0,0 +1,90 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/10/19 22:58:21 bouyer Exp $
+#
+
+DISTNAME=              xen-3.0.3_0-src
+PKGNAME=               xentools30-hvm-3.0.3
+CATEGORIES=            sysutils
+MASTER_SITES=          http://www.cl.cam.ac.uk/research/srg/netos/xen/downloads/ \
+                       http://bits.xensource.com/oss-xen/release/3.0.3-0/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+=            libxen-[0-9]*
+CONFLICTS+=            xentools20-[0-9]*
+
+WRKSRC=                        ${WRKDIR}/xen-3.0.3_0-src/tools
+
+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 22
+PY_PATCHPLIST=         yes
+PYTHON_PATCH_SCRIPTS=  ioemu/keymaps/convert-map
+
+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+=                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
+
+.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/xentools30/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff -r f2fd5176536d -r 80689f8a494e sysutils/xentools30-hvm/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools30-hvm/PLIST     Thu Oct 19 22:58:21 2006 +0000
@@ -0,0 +1,44 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/10/19 22:58:21 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
+@dirrm share/xen
diff -r f2fd5176536d -r 80689f8a494e sysutils/xentools30-hvm/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools30-hvm/distinfo  Thu Oct 19 22:58:21 2006 +0000
@@ -0,0 +1,20 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/10/19 22:58:21 bouyer Exp $
+
+SHA1 (xen-3.0.3_0-src.tgz) = 9505ae3a5a42bc969836de81f501341409291f78
+RMD160 (xen-3.0.3_0-src.tgz) = 528020035ee32144b52bcdfccc8c44708b0196ea
+Size (xen-3.0.3_0-src.tgz) = 5465968 bytes
+SHA1 (patch-aa) = 1da529f00c897ef39bad7d3816cd5df0a468c280
+SHA1 (patch-an) = eab8d3a62da0b13b89fa575d5c950b6d12a27758
+SHA1 (patch-ao) = d1250258d09cf9b330a4e9d52e85332a0eef7998
+SHA1 (patch-ap) = 33f2bdbef6df3f2105d4502b8066abb6c952fc6c
+SHA1 (patch-ar) = e29052024101975c2e77809cef27efa41e816a2b
+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) = 59d1f89972bfabeb27cb80b92710dafefe9e448e
+SHA1 (patch-ba) = ee151472a9ec28301b67e696e81673c4bf753ed6
+SHA1 (patch-bb) = 4bfe5b1dad33244b3be3359d37ad1054cd876e7c
+SHA1 (patch-bv) = 4f3e34d75a073e55711ebbf6ddd805d5db097e42
diff -r f2fd5176536d -r 80689f8a494e sysutils/xentools30-hvm/files/hvm-nbsd
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools30-hvm/files/hvm-nbsd    Thu Oct 19 22:58:21 2006 +0000
@@ -0,0 +1,54 @@
+#============================================================================
+# 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' ]
+
+#----------------------------------------------------------------------------
+# 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'
+
+device_model = '/usr/pkg/libexec/qemu-dm'
+
+# 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:<domain number>)
+#vnc = 1
+
+#============================================================================
diff -r f2fd5176536d -r 80689f8a494e sysutils/xentools30-hvm/files/xenio.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools30-hvm/files/xenio.h     Thu Oct 19 22:58:21 2006 +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.
+ */
+
+#ifndef __NetBSD_PRIVCMD_H__
+#define __NetBSD_PRIVCMD_H__
+
+/* Interface to /proc/xen/privcmd */
+
+typedef struct privcmd_hypercall
+{
+    unsigned long op;
+    unsigned long arg[5];
+} privcmd_hypercall_t;
+
+typedef struct privcmd_mmap_entry {
+    unsigned long va;
+    unsigned long mfn;
+    unsigned long npages;
+} privcmd_mmap_entry_t; 
+
+typedef struct privcmd_mmap {
+    int num;
+    domid_t dom; /* target domain */
+    privcmd_mmap_entry_t *entry;
+} privcmd_mmap_t; 
+
+typedef struct privcmd_mmapbatch {
+    int num;     /* number of pages to populate */
+    domid_t dom; /* target domain */
+    unsigned long addr;  /* virtual address */
+    unsigned long *arr; /* array of mfns - top nibble set on err */
+} privcmd_mmapbatch_t; 
+
+typedef struct privcmd_blkmsg
+{
+    unsigned long op;
+    void         *buf;
+    int           buf_size;



Home | Main Index | Thread Index | Old Index