From owner-svn-soc-all@FreeBSD.ORG Thu Jun 19 16:34:13 2014 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CE9593C4 for ; Thu, 19 Jun 2014 16:34:13 +0000 (UTC) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A1A1F2249 for ; Thu, 19 Jun 2014 16:34:13 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.8/8.14.8) with ESMTP id s5JGYDoC058926 for ; Thu, 19 Jun 2014 16:34:13 GMT (envelope-from op@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.8/8.14.8/Submit) id s5JGYCqA058733 for svn-soc-all@FreeBSD.org; Thu, 19 Jun 2014 16:34:12 GMT (envelope-from op@FreeBSD.org) Date: Thu, 19 Jun 2014 16:34:12 GMT Message-Id: <201406191634.s5JGYCqA058733@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to op@FreeBSD.org using -f From: op@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r269763 - soc2014/op/tools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2014 16:34:13 -0000 Author: op Date: Thu Jun 19 16:34:12 2014 New Revision: 269763 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=269763 Log: added tools/run_smap_test_vm_{32,64}bit.csh Signed-off-by: Oliver Pinter Added: soc2014/op/tools/run_smap_test_vm_32bit.csh (contents, props changed) soc2014/op/tools/run_smap_test_vm_64bit.csh (contents, props changed) Deleted: soc2014/op/tools/run_smap_test_vm.csh Added: soc2014/op/tools/run_smap_test_vm_32bit.csh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2014/op/tools/run_smap_test_vm_32bit.csh Thu Jun 19 16:34:12 2014 (r269763) @@ -0,0 +1,21 @@ +#!/bin/csh + +set TARGET=i386 + +if ( ${TARGET} == "amd64" ) then + set QTARGET="x86_64" + set QCPU="qemu64" +else + set QTARGET=${TARGET} + set QCPU="qemu32" +endif +set FREEBSD_PREFIX="/usr/data/sys/freebsd/" +set QEMU_PREFIX="/usr/local" + +set QEMU="${QEMU_PREFIX}/bin/qemu" +set QEMU_BIN="${QEMU_PREFIX}/bin/qemu-system-${QTARGET}" +set QEMU_OPTIONS="-cpu ${QCPU},enforce,+smap,+smep,-hypervisor -m 1024M" + +set FREEBSD_VMIMAGE="freebsd-${TARGET}.raw" + +${QEMU_BIN} ${QEMU_OPTIONS} -hda ${FREEBSD_PREFIX}/${FREEBSD_VMIMAGE} Added: soc2014/op/tools/run_smap_test_vm_64bit.csh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ soc2014/op/tools/run_smap_test_vm_64bit.csh Thu Jun 19 16:34:12 2014 (r269763) @@ -0,0 +1,21 @@ +#!/bin/csh + +set TARGET="amd64" + +if ( ${TARGET} == "amd64" ) then + set QTARGET="x86_64" + set QCPU="qemu64" +else + set QTARGET=${TARGET} + set QCPU="qemu32" +endif +set FREEBSD_PREFIX="/usr/data/sys/freebsd/" +set QEMU_PREFIX="/usr/local" + +set QEMU="${QEMU_PREFIX}/bin/qemu" +set QEMU_BIN="${QEMU_PREFIX}/bin/qemu-system-${QTARGET}" +set QEMU_OPTIONS="-cpu ${QCPU},enforce,+smap,+smep,-hypervisor -m 1024M" + +set FREEBSD_VMIMAGE="freebsd-${TARGET}.raw" + +${QEMU_BIN} ${QEMU_OPTIONS} -hda ${FREEBSD_PREFIX}/${FREEBSD_VMIMAGE}