From owner-p4-projects@FreeBSD.ORG Sat Aug 16 18:27:32 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8D7C9106567D; Sat, 16 Aug 2008 18:27:32 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 390481065674 for ; Sat, 16 Aug 2008 18:27:32 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1CC4A8FC2B for ; Sat, 16 Aug 2008 18:27:32 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m7GIRWhY055975 for ; Sat, 16 Aug 2008 18:27:32 GMT (envelope-from sam@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m7GIRWrH055973 for perforce@freebsd.org; Sat, 16 Aug 2008 18:27:32 GMT (envelope-from sam@freebsd.org) Date: Sat, 16 Aug 2008 18:27:32 GMT Message-Id: <200808161827.m7GIRWrH055973@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to sam@freebsd.org using -f From: Sam Leffler To: Perforce Change Reviews Cc: Subject: PERFORCE change 147579 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 18:27:32 -0000 http://perforce.freebsd.org/chv.cgi?CH=147579 Change 147579 by sam@sam_ebb on 2008/08/16 18:27:16 IFC @ 147578 Affected files ... .. //depot/projects/vap/etc/defaults/rc.conf#18 integrate .. //depot/projects/vap/etc/rc.firewall#8 integrate .. //depot/projects/vap/lib/libc/stdlib/malloc.c#13 integrate .. //depot/projects/vap/lib/libc/uuid/Makefile.inc#3 integrate .. //depot/projects/vap/lib/libc/uuid/uuid.3#3 integrate .. //depot/projects/vap/lib/libc/uuid/uuid_stream.c#1 branch .. //depot/projects/vap/lib/librt/sigev_thread.c#3 integrate .. //depot/projects/vap/share/man/man4/snp.4#3 integrate .. //depot/projects/vap/sys/Makefile#11 integrate .. //depot/projects/vap/sys/conf/files#48 integrate .. //depot/projects/vap/sys/conf/files.i386#16 integrate .. //depot/projects/vap/sys/conf/options.i386#9 integrate .. //depot/projects/vap/sys/dev/ata/ata-all.c#12 integrate .. //depot/projects/vap/sys/dev/ata/ata-all.h#11 integrate .. //depot/projects/vap/sys/dev/ata/ata-chipset.c#14 integrate .. //depot/projects/vap/sys/dev/pcn/if_pcn.c#1 branch .. //depot/projects/vap/sys/dev/pcn/if_pcnreg.h#1 branch .. //depot/projects/vap/sys/dev/snp/snp.c#8 integrate .. //depot/projects/vap/sys/dev/ste/if_ste.c#1 branch .. //depot/projects/vap/sys/dev/ste/if_stereg.h#1 branch .. //depot/projects/vap/sys/dev/tl/if_tl.c#1 branch .. //depot/projects/vap/sys/dev/tl/if_tlreg.h#1 branch .. //depot/projects/vap/sys/dev/wb/if_wb.c#1 branch .. //depot/projects/vap/sys/dev/wb/if_wbreg.h#1 branch .. //depot/projects/vap/sys/dev/xen/console/console.c#2 integrate .. //depot/projects/vap/sys/dev/xen/console/xencons_ring.c#2 integrate .. //depot/projects/vap/sys/i386/conf/DEFAULTS#4 integrate .. //depot/projects/vap/sys/i386/conf/XEN#1 branch .. //depot/projects/vap/sys/i386/i386/busdma_machdep.c#9 integrate .. //depot/projects/vap/sys/i386/i386/genassym.c#7 integrate .. //depot/projects/vap/sys/i386/i386/machdep.c#10 integrate .. //depot/projects/vap/sys/i386/i386/support.s#7 integrate .. //depot/projects/vap/sys/i386/i386/sys_machdep.c#7 integrate .. //depot/projects/vap/sys/i386/i386/trap.c#11 integrate .. //depot/projects/vap/sys/i386/i386/vm_machdep.c#8 integrate .. //depot/projects/vap/sys/i386/include/asmacros.h#5 integrate .. //depot/projects/vap/sys/i386/include/cpufunc.h#8 integrate .. //depot/projects/vap/sys/i386/include/pcpu.h#7 integrate .. //depot/projects/vap/sys/i386/include/pmap.h#8 integrate .. //depot/projects/vap/sys/i386/include/segments.h#4 integrate .. //depot/projects/vap/sys/i386/include/trap.h#5 integrate .. //depot/projects/vap/sys/i386/include/vmparam.h#7 integrate .. //depot/projects/vap/sys/i386/include/xen/xen-os.h#2 integrate .. //depot/projects/vap/sys/i386/include/xen/xenpmap.h#2 integrate .. //depot/projects/vap/sys/i386/isa/npx.c#6 integrate .. //depot/projects/vap/sys/i386/pci/pci_cfgreg.c#5 integrate .. //depot/projects/vap/sys/i386/pci/pci_pir.c#7 integrate .. //depot/projects/vap/sys/i386/xen/clock.c#2 integrate .. //depot/projects/vap/sys/i386/xen/locore.s#2 integrate .. //depot/projects/vap/sys/i386/xen/pmap.c#2 integrate .. //depot/projects/vap/sys/i386/xen/xen_machdep.c#2 integrate .. //depot/projects/vap/sys/kern/init_main.c#9 integrate .. //depot/projects/vap/sys/libkern/strcspn.c#1 branch .. //depot/projects/vap/sys/modules/pcn/Makefile#5 integrate .. //depot/projects/vap/sys/modules/ste/Makefile#5 integrate .. //depot/projects/vap/sys/modules/tl/Makefile#5 integrate .. //depot/projects/vap/sys/modules/wb/Makefile#5 integrate .. //depot/projects/vap/sys/netinet/udp_usrreq.c#12 integrate .. //depot/projects/vap/sys/netinet6/ip6_input.c#9 integrate .. //depot/projects/vap/sys/netinet6/ip6_var.h#9 integrate .. //depot/projects/vap/sys/pci/if_pcn.c#6 delete .. //depot/projects/vap/sys/pci/if_pcnreg.h#5 delete .. //depot/projects/vap/sys/pci/if_ste.c#6 delete .. //depot/projects/vap/sys/pci/if_stereg.h#5 delete .. //depot/projects/vap/sys/pci/if_tl.c#6 delete .. //depot/projects/vap/sys/pci/if_tlreg.h#5 delete .. //depot/projects/vap/sys/pci/if_wb.c#7 delete .. //depot/projects/vap/sys/pci/if_wbreg.h#5 delete .. //depot/projects/vap/sys/sys/libkern.h#7 integrate .. //depot/projects/vap/sys/xen/evtchn/evtchn.c#2 integrate .. //depot/projects/vap/sys/xen/features.c#1 branch .. //depot/projects/vap/sys/xen/xenbus/xenbus_client.c#2 integrate .. //depot/projects/vap/sys/xen/xenbus/xenbus_comms.c#2 integrate .. //depot/projects/vap/sys/xen/xenbus/xenbus_dev.c#2 integrate .. //depot/projects/vap/sys/xen/xenbus/xenbus_probe.c#2 integrate .. //depot/projects/vap/sys/xen/xenbus/xenbus_probe_backend.c#2 integrate .. //depot/projects/vap/sys/xen/xenbus/xenbus_xs.c#2 integrate .. //depot/projects/vap/tools/tools/nanobsd/nanobsd.sh#6 integrate .. //depot/projects/vap/usr.bin/tar/test/test_copy.c#3 integrate .. //depot/projects/vap/usr.bin/tar/test/test_option_T.c#3 integrate .. //depot/projects/vap/usr.bin/tar/test/test_patterns.c#2 integrate .. //depot/projects/vap/usr.bin/tar/test/test_patterns.tgz.err.uu#1 branch .. //depot/projects/vap/usr.bin/tar/test/test_patterns.tgz.out.uu#1 branch .. //depot/projects/vap/usr.bin/tar/test/test_patterns.tgz.uu#1 branch .. //depot/projects/vap/usr.bin/units/units.c#3 integrate .. //depot/projects/vap/usr.bin/units/units.lib#4 integrate .. //depot/projects/vap/usr.sbin/pw/pw_user.c#4 integrate .. //depot/projects/vap/usr.sbin/watch/watch.c#4 integrate Differences ... ==== //depot/projects/vap/etc/defaults/rc.conf#18 (text+ko) ==== @@ -15,7 +15,7 @@ # For a more detailed explanation of all the rc.conf variables, please # refer to the rc.conf(5) manual page. # -# $FreeBSD: src/etc/defaults/rc.conf,v 1.339 2008/08/09 01:19:00 obrien Exp $ +# $FreeBSD: src/etc/defaults/rc.conf,v 1.341 2008/08/15 19:20:59 jhb Exp $ ############################################################## ### Important initial Boot-time options #################### @@ -115,16 +115,27 @@ firewall_quiet="NO" # Set to YES to suppress rule display firewall_logging="NO" # Set to YES to enable events logging firewall_flags="" # Flags passed to ipfw when type is a file +firewall_client_net="192.0.2.0/24" # Network address for "client" firewall. +firewall_simple_iif="ed1" # Inside network interface for "simple" + # firewall. +firewall_simple_inet="192.0.2.16/28" # Inside network address for "simple" + # firewall. +firewall_simple_oif="ed0" # Outside network interface for "simple" + # firewall. +firewall_simple_onet="192.0.2.0/28" # Outside network address for "simple" + # firewall. firewall_myservices="" # List of TCP ports on which this host - # offers services -firewall_allowservices="" # List of IPs which has access to - # $firewall_myservices -firewall_trusted="" # List of IPs which has full access to this host + # offers services for "workstation" firewall. +firewall_allowservices="" # List of IPs which have access to + # $firewall_myservices for "workstation" + # firewall. +firewall_trusted="" # List of IPs which have full access to this + # host for "workstation" firewall. firewall_logdeny="NO" # Set to YES to log default denied incoming - # packets. + # packets for "workstation" firewall. firewall_nologports="135-139,445 1026,1027 1433,1434" # List of TCP/UDP ports - # for which denied incoming packets are not - # logged. + # for which denied incoming packets are not + # logged for "workstation" firewall. firewall_nat_enable="NO" # Enable kernel NAT (if firewall_enable == YES) firewall_nat_interface="" # Public interface or IPaddress to use firewall_nat_flags="" # Additional configuration parameters ==== //depot/projects/vap/etc/rc.firewall#8 (text+ko) ==== @@ -23,7 +23,7 @@ # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # -# $FreeBSD: src/etc/rc.firewall,v 1.57 2008/08/03 19:01:07 danger Exp $ +# $FreeBSD: src/etc/rc.firewall,v 1.60 2008/08/15 19:20:59 jhb Exp $ # # @@ -164,19 +164,20 @@ ############ # This is a prototype setup that will protect your system somewhat # against people from outside your own network. + # + # Configuration: + # firewall_client_net: Network address of local network. ############ - # set these to your network and netmask and ip - net="192.0.2.0" - mask="255.255.255.0" - ip="192.0.2.1" + # set this to your local network + net="$firewall_client_net" # Allow limited broadcast traffic from my own net. - ${fwcmd} add pass all from ${net}:${mask} to 255.255.255.255 + ${fwcmd} add pass all from ${net} to 255.255.255.255 # Allow any traffic to or from my own net. - ${fwcmd} add pass all from ${ip} to ${net}:${mask} - ${fwcmd} add pass all from ${net}:${mask} to ${ip} + ${fwcmd} add pass all from me to ${net} + ${fwcmd} add pass all from ${net} to me # Allow TCP through if setup succeeded ${fwcmd} add pass tcp from any to any established @@ -209,23 +210,25 @@ # This is a prototype setup for a simple firewall. Configure this # machine as a DNS and NTP server, and point all the machines # on the inside at this machine for those services. + # + # Configuration: + # firewall_simple_iif: Inside network interface. + # firewall_simple_inet: Inside network address. + # firewall_simple_oif: Outside network interface. + # firewall_simple_onet: Outside network address. ############ - # set these to your outside interface network and netmask and ip - oif="ed0" - onet="192.0.2.0" - omask="255.255.255.240" - oip="192.0.2.1" + # set these to your outside interface network + oif="$firewall_simple_oif" + onet="$firewall_simple_onet" - # set these to your inside interface network and netmask and ip - iif="ed1" - inet="192.0.2.16" - imask="255.255.255.240" - iip="192.0.2.17" + # set these to your inside interface network + iif="$firewall_simple_iif" + inet="$firewall_simple_inet" # Stop spoofing - ${fwcmd} add deny all from ${inet}:${imask} to any in via ${oif} - ${fwcmd} add deny all from ${onet}:${omask} to any in via ${iif} + ${fwcmd} add deny all from ${inet} to any in via ${oif} + ${fwcmd} add deny all from ${onet} to any in via ${iif} # Stop RFC1918 nets on the outside interface ${fwcmd} add deny all from any to 10.0.0.0/8 via ${oif} @@ -277,15 +280,15 @@ ${fwcmd} add pass all from any to any frag # Allow setup of incoming email - ${fwcmd} add pass tcp from any to ${oip} 25 setup + ${fwcmd} add pass tcp from any to me 25 setup # Allow access to our DNS - ${fwcmd} add pass tcp from any to ${oip} 53 setup - ${fwcmd} add pass udp from any to ${oip} 53 - ${fwcmd} add pass udp from ${oip} 53 to any + ${fwcmd} add pass tcp from any to me 53 setup + ${fwcmd} add pass udp from any to me 53 + ${fwcmd} add pass udp from me 53 to any # Allow access to our WWW - ${fwcmd} add pass tcp from any to ${oip} 80 setup + ${fwcmd} add pass tcp from any to me 80 setup # Reject&Log all setup of incoming connections from the outside ${fwcmd} add deny log tcp from any to any in via ${oif} setup @@ -294,10 +297,10 @@ ${fwcmd} add pass tcp from any to any setup # Allow DNS queries out in the world - ${fwcmd} add pass udp from ${oip} to any 53 keep-state + ${fwcmd} add pass udp from me to any 53 keep-state # Allow NTP queries out in the world - ${fwcmd} add pass udp from ${oip} to any 123 keep-state + ${fwcmd} add pass udp from me to any 123 keep-state # Everything else is denied by default, unless the # IPFIREWALL_DEFAULT_TO_ACCEPT option is set in your kernel ==== //depot/projects/vap/lib/libc/stdlib/malloc.c#13 (text+ko) ==== @@ -128,7 +128,7 @@ #define MALLOC_DSS #include -__FBSDID("$FreeBSD: src/lib/libc/stdlib/malloc.c,v 1.174 2008/08/08 20:42:42 cperciva Exp $"); +__FBSDID("$FreeBSD: src/lib/libc/stdlib/malloc.c,v 1.176 2008/08/14 17:31:42 jasone Exp $"); #include "libc_private.h" #ifdef MALLOC_DEBUG @@ -1012,10 +1012,11 @@ /* Exponentially back off. */ for (i = 1; i <= SPIN_LIMIT_2POW; i++) { - for (j = 0; j < (1U << i); j++) + for (j = 0; j < (1U << i); j++) { ret++; + CPU_SPINWAIT; + } - CPU_SPINWAIT; if (_pthread_mutex_trylock(lock) == 0) return (ret); } @@ -2209,8 +2210,8 @@ */ regind = diff / size; } - } else if (size <= ((sizeof(size_invs) / sizeof(unsigned)) - << QUANTUM_2POW_MIN) + 2) { + } else if (size <= (((sizeof(size_invs) / sizeof(unsigned)) + 2) + << QUANTUM_2POW_MIN)) { regind = size_invs[(size >> QUANTUM_2POW_MIN) - 3] * diff; regind >>= SIZE_INV_SHIFT; } else { ==== //depot/projects/vap/lib/libc/uuid/Makefile.inc#3 (text+ko) ==== @@ -1,11 +1,12 @@ -# $FreeBSD: src/lib/libc/uuid/Makefile.inc,v 1.4 2006/03/13 01:15:01 deischen Exp $ +# $FreeBSD: src/lib/libc/uuid/Makefile.inc,v 1.5 2008/08/14 22:23:16 emax Exp $ # DCE 1.1 UUID implementation sources .PATH: ${.CURDIR}/uuid SRCS+= uuid_compare.c uuid_create.c uuid_create_nil.c uuid_equal.c \ - uuid_from_string.c uuid_hash.c uuid_is_nil.c uuid_to_string.c + uuid_from_string.c uuid_hash.c uuid_is_nil.c uuid_stream.c \ + uuid_to_string.c SYM_MAPS+= ${.CURDIR}/uuid/Symbol.map MAN+= uuid.3 @@ -16,4 +17,8 @@ MLINKS+=uuid.3 uuid_from_string.3 MLINKS+=uuid.3 uuid_hash.3 MLINKS+=uuid.3 uuid_is_nil.3 +MLINKS+=uuid.3 uuid_enc_le.3 +MLINKS+=uuid.3 uuid_dec_le.3 +MLINKS+=uuid.3 uuid_enc_be.3 +MLINKS+=uuid.3 uuid_dec_be.3 MLINKS+=uuid.3 uuid_to_string.3 ==== //depot/projects/vap/lib/libc/uuid/uuid.3#3 (text+ko) ==== @@ -23,9 +23,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $FreeBSD: src/lib/libc/uuid/uuid.3,v 1.6 2005/11/24 07:04:20 ru Exp $ +.\" $FreeBSD: src/lib/libc/uuid/uuid.3,v 1.7 2008/08/14 22:23:16 emax Exp $ .\" -.Dd January 3, 2005 +.Dd August 13, 2008 .Dt UUID 3 .Os .Sh NAME @@ -52,6 +52,14 @@ .Fn uuid_is_nil "const uuid_t *uuid" "uint32_t *status" .Ft void .Fn uuid_to_string "const uuid_t *uuid" "char **str" "uint32_t *status" +.Ft void +.Fn uuid_enc_le "void *buf" "const uuid_t *uuid" +.Ft void +.Fn uuid_dec_le "const void *buf" "uuid_t *" +.Ft void +.Fn uuid_enc_be "void *buf" "const uuid_t *uuid" +.Ft void +.Fn uuid_dec_be "const void *buf" "uuid_t *" .Sh DESCRIPTION The family of DCE 1.1 compliant UUID functions allow applications to operate on universally unique identifiers, or UUIDs. @@ -74,6 +82,26 @@ respectively. A 16-bit hash value can be obtained by calling .Fn uuid_hash . +.Pp +The +.Fn uuid_enc_le +and +.Fn uuid_enc_be +functions encode a binary representation of a UUID into an octet stream +in little-endian and big-endian byte-order, respectively. +The destination buffer must be pre-allocated by the caller, and must be +large enough to hold the 16-octet binary UUID. +These routines are not part of the DCE RPC API. +They are provided for convenience. +.Pp +The +.Fn uuid_dec_le +and +.Fn uuid_dec_be +functions decode a UUID from an octet stream in little-endian and +big-endian byte-order, respectively. +These routines are not part of the DCE RPC API. +They are provided for convenience. .Sh RETURN VALUES The successful or unsuccessful completion of the function is returned in the ==== //depot/projects/vap/lib/librt/sigev_thread.c#3 (text) ==== @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $FreeBSD: src/lib/librt/sigev_thread.c,v 1.8 2006/03/29 04:20:53 deischen Exp $ + * $FreeBSD: src/lib/librt/sigev_thread.c,v 1.9 2008/08/15 21:08:48 kmacy Exp $ * */ @@ -51,7 +51,7 @@ static struct sigev_list_head sigev_hash[HASH_QUEUES]; static struct sigev_list_head sigev_all; static LIST_HEAD(,sigev_thread) sigev_threads; -static int sigev_generation; +static unsigned int sigev_generation; static pthread_mutex_t *sigev_list_mtx; static pthread_once_t sigev_once = PTHREAD_ONCE_INIT; static pthread_once_t sigev_once_default = PTHREAD_ONCE_INIT; ==== //depot/projects/vap/share/man/man4/snp.4#3 (text+ko) ==== @@ -1,5 +1,5 @@ .\" -.\" $FreeBSD: src/share/man/man4/snp.4,v 1.27 2005/09/19 13:48:45 ru Exp $ +.\" $FreeBSD: src/share/man/man4/snp.4,v 1.28 2008/08/15 13:07:07 ed Exp $ .\" .Dd September 18, 2005 .Dt SNP 4 @@ -16,8 +16,8 @@ .Ft int .Fn ioctl fd FIONREAD &result .Sh DESCRIPTION -.Pa /dev/snp? -are snoop devices which allow users to attach to any tty +.Pa /dev/snp +is a snoop device which allows users to attach to any tty and watch activities on it. The kernel must be compiled with .Cd "device snp" , ==== //depot/projects/vap/sys/Makefile#11 (text+ko) ==== @@ -1,4 +1,4 @@ -# $FreeBSD: src/sys/Makefile,v 1.52 2008/08/08 18:00:33 philip Exp $ +# $FreeBSD: src/sys/Makefile,v 1.53 2008/08/15 14:11:30 philip Exp $ .include @@ -46,6 +46,10 @@ # You need the textproc/glimpse ports for this. glimpse: +.if !exists(${.CURDIR}/.glimpse_exclude) + echo .svn > ${.CURDIR}/.glimpse_exclude + echo /compile/ >> ${.CURDIR}/.glimpse_exclude +.endif cd ${.CURDIR}; glimpseindex -H . -B -f -o . glimpse-clean: ==== //depot/projects/vap/sys/conf/files#48 (text+ko) ==== @@ -1,4 +1,4 @@ -# $FreeBSD: src/sys/conf/files,v 1.1325 2008/08/12 00:27:32 kmacy Exp $ +# $FreeBSD: src/sys/conf/files,v 1.1330 2008/08/15 20:58:57 kmacy Exp $ # # The long compile-with and dependency lines are required because of # limitations in config: backslash-newline doesn't work in strings, and @@ -986,6 +986,7 @@ dev/pci/pci_user.c optional pci dev/pci/pcib_if.m standard dev/pci/vga_pci.c optional pci +dev/pcn/if_pcn.c optional pcn pci dev/pdq/if_fea.c optional fea eisa dev/pdq/if_fpa.c optional fpa pci dev/pdq/pdq.c optional nowerror fea eisa | fpa pci @@ -1202,6 +1203,7 @@ dev/spibus/spibus_if.m optional spibus dev/sr/if_sr.c optional sr dev/sr/if_sr_pci.c optional sr pci +dev/ste/if_ste.c optional ste pci dev/stg/tmc18c30.c optional stg dev/stg/tmc18c30_isa.c optional stg isa dev/stg/tmc18c30_pccard.c optional stg pccard @@ -1233,6 +1235,7 @@ dev/tdfx/tdfx_linux.c optional tdfx_linux tdfx compat_linux dev/tdfx/tdfx_pci.c optional tdfx pci dev/ti/if_ti.c optional ti pci +dev/tl/if_tl.c optional tl pci dev/trm/trm.c optional trm dev/twa/tw_cl_init.c optional twa \ compile-with "${NORMAL_C} -I$S/dev/twa" @@ -1335,6 +1338,7 @@ dev/vx/if_vx_eisa.c optional vx eisa dev/vx/if_vx_pci.c optional vx pci dev/watchdog/watchdog.c standard +dev/wb/if_wb.c optional wb pci dev/wds/wd7000.c optional wds isa dev/wi/if_wi.c optional wi dev/wi/if_wi_pccard.c optional wi pccard @@ -1731,6 +1735,7 @@ libkern/strcat.c standard libkern/strcmp.c standard libkern/strcpy.c standard +libkern/strcspn.c standard libkern/strdup.c standard libkern/strlcat.c standard libkern/strlcpy.c standard @@ -2093,11 +2098,7 @@ pci/amdpm.c optional amdpm pci | nfpm pci pci/amdsmb.c optional amdsmb pci pci/if_mn.c optional mn pci -pci/if_pcn.c optional pcn pci pci/if_rl.c optional rl pci -pci/if_ste.c optional ste pci -pci/if_tl.c optional tl pci -pci/if_wb.c optional wb pci pci/intpm.c optional intpm pci pci/ncr.c optional ncr pci pci/nfsmb.c optional nfsmb pci @@ -2349,3 +2350,18 @@ compile-with "${NORMAL_C} -I$S/gnu/fs/xfs/FreeBSD -I$S/gnu/fs/xfs/FreeBSD/support -I$S/gnu/fs/xfs" gnu/fs/xfs/xfs_behavior.c optional xfs \ compile-with "${NORMAL_C} -I$S/gnu/fs/xfs/FreeBSD -I$S/gnu/fs/xfs/FreeBSD/support -I$S/gnu/fs/xfs" + +xen/gnttab.c optional xen +xen/features.c optional xen +xen/evtchn/evtchn.c optional xen +xen/evtchn/evtchn_dev.c optional xen +xen/xenbus/xenbus_client.c optional xen +xen/xenbus/xenbus_comms.c optional xen +xen/xenbus/xenbus_dev.c optional xen +xen/xenbus/xenbus_probe.c optional xen +xen/xenbus/xenbus_probe_backend.c optional xen +xen/xenbus/xenbus_xs.c optional xen +dev/xen/console/console.c optional xen +dev/xen/console/xencons_ring.c optional xen +dev/xen/blkfront/blkfront.c optional xen +dev/xen/netfront/netfront.c optional xen ==== //depot/projects/vap/sys/conf/files.i386#16 (text+ko) ==== @@ -1,7 +1,7 @@ # This file tells config what files go into building a kernel, # files marked standard are always included. # -# $FreeBSD: src/sys/conf/files.i386,v 1.602 2008/08/09 14:52:31 philip Exp $ +# $FreeBSD: src/sys/conf/files.i386,v 1.603 2008/08/15 20:58:57 kmacy Exp $ # # The long compile-with and dependency lines are required because of # limitations in config: backslash-newline doesn't work in strings, and @@ -254,8 +254,8 @@ i386/i386/atomic.c standard \ compile-with "${CC} -c ${CFLAGS} ${DEFINED_PROF:S/^$/-fomit-frame-pointer/} ${.IMPSRC}" i386/i386/autoconf.c standard -i386/i386/bios.c standard -i386/i386/bioscall.s standard +i386/i386/bios.c optional native +i386/i386/bioscall.s optional native i386/i386/bpf_jit_machdep.c optional bpf_jitter i386/i386/busdma_machdep.c standard i386/i386/db_disasm.c optional ddb @@ -264,7 +264,8 @@ i386/i386/dump_machdep.c standard i386/i386/elan-mmcr.c optional cpu_elan | cpu_soekris i386/i386/elf_machdep.c standard -i386/i386/exception.s standard +i386/i386/exception.s optional native +i386/xen/exception.s optional xen i386/i386/gdb_machdep.c optional gdb i386/i386/geode.c optional cpu_geode i386/i386/i686_mem.c optional mem @@ -277,9 +278,11 @@ i386/i386/k6_mem.c optional mem i386/i386/legacy.c standard i386/i386/local_apic.c optional apic -i386/i386/locore.s standard no-obj +i386/i386/locore.s optional native no-obj +i386/xen/locore.s optional xen no-obj i386/i386/longrun.c optional cpu_enable_longrun i386/i386/machdep.c standard +i386/xen/xen_machdep.c optional xen i386/i386/mem.c optional mem i386/i386/minidump_machdep.c standard i386/i386/mp_clock.c optional smp @@ -291,7 +294,8 @@ i386/i386/msi.c optional apic pci i386/i386/nexus.c standard i386/i386/perfmon.c optional perfmon -i386/i386/pmap.c standard +i386/i386/pmap.c optional native +i386/xen/pmap.c optional xen i386/i386/ptrace_machdep.c standard i386/i386/stack_machdep.c optional ddb | stack i386/i386/support.s standard @@ -321,9 +325,10 @@ i386/ibcs2/ibcs2_xenix.c optional ibcs2 i386/ibcs2/ibcs2_xenix_sysent.c optional ibcs2 i386/ibcs2/imgact_coff.c optional ibcs2 -i386/isa/atpic.c standard +i386/isa/atpic.c optional atpic #i386/isa/atpic_vector.s standard -i386/isa/clock.c standard +i386/isa/clock.c optional native +i386/xen/clock.c optional xen i386/isa/elcr.c standard i386/isa/elink.c optional ep | ie i386/isa/isa.c optional isa @@ -346,13 +351,13 @@ i386/linux/linux_sysvec.c optional compat_linux i386/pci/pci_bus.c optional pci i386/pci/pci_cfgreg.c optional pci -i386/pci/pci_pir.c optional pci +i386/pci/pci_pir.c optional pci i386/svr4/svr4_locore.s optional compat_svr4 \ dependency "svr4_assym.h" \ warning "COMPAT_SVR4 is broken and should be avoided" i386/svr4/svr4_machdep.c optional compat_svr4 # -isa/atrtc.c standard +isa/atrtc.c optional atpic isa/syscons_isa.c optional sc isa/vga_isa.c optional vga kern/imgact_aout.c optional compat_aout ==== //depot/projects/vap/sys/conf/options.i386#9 (text+ko) ==== @@ -1,4 +1,4 @@ -# $FreeBSD: src/sys/conf/options.i386,v 1.242 2008/06/14 12:51:44 wkoszek Exp $ +# $FreeBSD: src/sys/conf/options.i386,v 1.243 2008/08/15 20:58:57 kmacy Exp $ # Options specific to the i386 platform kernels AUTO_EOI_1 opt_auto_eoi.h @@ -111,3 +111,6 @@ # BPF just-in-time compiler BPF_JITTER opt_bpf.h + +NATIVE opt_global.h +XEN opt_global.h ==== //depot/projects/vap/sys/dev/ata/ata-all.c#12 (text+ko) ==== @@ -25,7 +25,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/dev/ata/ata-all.c,v 1.289 2008/06/11 06:44:58 sos Exp $"); +__FBSDID("$FreeBSD: src/sys/dev/ata/ata-all.c,v 1.290 2008/08/15 10:55:11 philip Exp $"); #include "opt_ata.h" #include @@ -75,6 +75,7 @@ uma_zone_t ata_composite_zone; int ata_wc = 1; int ata_setmax = 0; +int ata_dma_check_80pin = 1; /* local vars */ static int ata_dma = 1; @@ -85,6 +86,10 @@ TUNABLE_INT("hw.ata.ata_dma", &ata_dma); SYSCTL_INT(_hw_ata, OID_AUTO, ata_dma, CTLFLAG_RDTUN, &ata_dma, 0, "ATA disk DMA mode control"); +TUNABLE_INT("hw.ata.ata_dma_check_80pin", &ata_dma_check_80pin); +SYSCTL_INT(_hw_ata, OID_AUTO, ata_dma_check_80pin, + CTLFLAG_RDTUN, &ata_dma_check_80pin, 1, + "Check for 80pin cable before setting ATA DMA mode"); TUNABLE_INT("hw.ata.atapi_dma", &atapi_dma); SYSCTL_INT(_hw_ata, OID_AUTO, atapi_dma, CTLFLAG_RDTUN, &atapi_dma, 0, "ATAPI device DMA mode control"); ==== //depot/projects/vap/sys/dev/ata/ata-all.h#11 (text+ko) ==== @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $FreeBSD: src/sys/dev/ata/ata-all.h,v 1.133 2008/04/17 12:29:35 sos Exp $ + * $FreeBSD: src/sys/dev/ata/ata-all.h,v 1.134 2008/08/15 10:55:11 philip Exp $ */ /* ATA register defines */ @@ -544,7 +544,8 @@ extern devclass_t ata_devclass; extern int ata_wc; extern int ata_setmax; - +extern int ata_dma_check_80pin; + /* public prototypes */ /* ata-all.c: */ int ata_probe(device_t dev); ==== //depot/projects/vap/sys/dev/ata/ata-chipset.c#14 (text+ko) ==== @@ -25,7 +25,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/dev/ata/ata-chipset.c,v 1.224 2008/07/10 21:36:53 remko Exp $"); +__FBSDID("$FreeBSD: src/sys/dev/ata/ata-chipset.c,v 1.225 2008/08/15 10:55:11 philip Exp $"); #include "opt_ata.h" #include @@ -6392,6 +6392,12 @@ { struct ata_device *atadev = device_get_softc(dev); + if (!ata_dma_check_80pin) { + if (bootverbose) + device_printf(dev, "Skipping 80pin cable check\n"); + return mode; + } + if (mode > ATA_UDMA2 && !(atadev->param.hwres & ATA_CABLE_ID)) { ata_print_cable(dev, "device"); mode = ATA_UDMA2; ==== //depot/projects/vap/sys/dev/snp/snp.c#8 (text+ko) ==== @@ -15,7 +15,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/dev/snp/snp.c,v 1.108 2008/06/11 18:55:19 ed Exp $"); +__FBSDID("$FreeBSD: src/sys/dev/snp/snp.c,v 1.109 2008/08/15 13:07:07 ed Exp $"); #include #include @@ -36,7 +36,6 @@ static l_close_t snplclose; static l_write_t snplwrite; static d_open_t snpopen; -static d_close_t snpclose; static d_read_t snpread; static d_write_t snpwrite; static d_ioctl_t snpioctl; @@ -46,7 +45,6 @@ .d_version = D_VERSION, .d_flags = D_PSEUDO | D_NEEDGIANT | D_NEEDMINOR, .d_open = snpopen, - .d_close = snpclose, .d_read = snpread, .d_write = snpwrite, .d_ioctl = snpioctl, @@ -70,7 +68,6 @@ */ struct snoop { LIST_ENTRY(snoop) snp_list; /* List glue. */ - int snp_unit; /* Device number. */ struct cdev *snp_target; /* Target tty device. */ struct tty *snp_tty; /* Target tty pointer. */ u_long snp_len; /* Possible length. */ @@ -111,13 +108,11 @@ * module load time. */ static int snooplinedisc; +static struct cdev *snoopdev; static LIST_HEAD(, snoop) snp_sclist = LIST_HEAD_INITIALIZER(&snp_sclist); -static struct clonedevs *snpclones; static struct tty *snpdevtotty(struct cdev *dev); -static void snp_clone(void *arg, struct ucred *cred, char *name, - int namelen, struct cdev **dev); static void snp_detach(void *arg); static int snp_down(struct snoop *snp); static int snp_in(struct snoop *snp, char *buf, int n); @@ -220,14 +215,17 @@ int error, i, len; unsigned char c[SNP_INPUT_BUF]; - snp = dev->si_drv1; + error = devfs_get_cdevpriv((void **)&snp); + if (error != 0) + return (error); + tp = snp->snp_tty; if (tp == NULL) return (EIO); if ((tp->t_state & TS_SNOOP) && tp->t_line == snooplinedisc) goto tty_input; - printf("snp%d: attempt to write to bad tty\n", snp->snp_unit); + printf("snp: attempt to write to bad tty\n"); return (EIO); tty_input: @@ -255,7 +253,10 @@ caddr_t from; char *nbuf; - snp = dev->si_drv1; + error = devfs_get_cdevpriv((void **)&snp); + if (error != 0) + return (error); + KASSERT(snp->snp_len + snp->snp_base <= snp->snp_blen, ("snoop buffer error")); @@ -324,12 +325,12 @@ return (0); if (snp->snp_flags & SNOOP_DOWN) { - printf("snp%d: more data to down interface\n", snp->snp_unit); + printf("snp: more data to down interface\n"); return (0); } if (snp->snp_flags & SNOOP_OFLOW) { - printf("snp%d: buffer overflow\n", snp->snp_unit); + printf("snp: buffer overflow\n"); /* * On overflow we just repeat the standart close * procedure...yes , this is waste of space but.. Then next @@ -387,18 +388,30 @@ return (n); } +static void +snp_dtor(void *data) +{ + struct snoop *snp = data; + + snp->snp_blen = 0; + LIST_REMOVE(snp, snp_list); + free(snp->snp_buf, M_SNP); + snp->snp_flags &= ~SNOOP_OPEN; + snp_detach(snp); +} + static int snpopen(struct cdev *dev, int flag, int mode, struct thread *td) { struct snoop *snp; + int error; - if (dev->si_drv1 == NULL) { - dev->si_flags &= ~SI_CHEAPCLONE; - dev->si_drv1 = snp = malloc(sizeof(*snp), M_SNP, - M_WAITOK | M_ZERO); - snp->snp_unit = dev2unit(dev); - } else - return (EBUSY); + snp = malloc(sizeof(*snp), M_SNP, M_WAITOK | M_ZERO); + error = devfs_set_cdevpriv(snp, snp_dtor); + if (error != 0) { + free(snp, M_SNP); + return (error); + } /* * We intentionally do not OR flags with SNOOP_OPEN, but set them so @@ -444,7 +457,7 @@ tp->t_state &= ~TS_SNOOP; tp->t_line = snp->snp_olddisc; } else - printf("snp%d: bad attached tty data\n", snp->snp_unit); + printf("snp: bad attached tty data\n"); snp->snp_tty = NULL; snp->snp_target = NULL; @@ -456,23 +469,6 @@ } static int -snpclose(struct cdev *dev, int flags, int fmt, struct thread *td) -{ - struct snoop *snp; - - snp = dev->si_drv1; - snp->snp_blen = 0; - LIST_REMOVE(snp, snp_list); - free(snp->snp_buf, M_SNP); - snp->snp_flags &= ~SNOOP_OPEN; - dev->si_drv1 = NULL; - snp_detach(snp); - destroy_dev_sched(dev); - - return (0); -} - -static int snp_down(struct snoop *snp) { @@ -495,9 +491,12 @@ struct tty *tp; struct cdev *tdev; struct file *fp; - int s; + int error, s; + + error = devfs_get_cdevpriv((void **)&snp); + if (error != 0) + return (error); - snp = dev->si_drv1; switch (cmd) { case SNPSTTY: s = *(int *)data; @@ -587,7 +586,10 @@ struct snoop *snp; int revents; - snp = dev->si_drv1; + if (devfs_get_cdevpriv((void **)&snp) != 0) + return (events & + (POLLHUP|POLLIN|POLLRDNORM|POLLOUT|POLLWRNORM)); + revents = 0; /* * If snoop is down, we don't want to poll() forever so we return 1. @@ -603,44 +605,22 @@ return (revents); } -static void -snp_clone(void *arg, struct ucred *cred, char *name, int namelen, - struct cdev **dev) -{ - int u, i; - - if (*dev != NULL) - return; - if (dev_stdclone(name, NULL, "snp", &u) != 1) - return; - i = clone_create(&snpclones, &snp_cdevsw, &u, dev, 0); - if (i) - *dev = make_dev_credf(MAKEDEV_REF, &snp_cdevsw, unit2minor(u), - NULL, UID_ROOT, GID_WHEEL, 0600, "snp%d", u); - if (*dev != NULL) { - (*dev)->si_flags |= SI_CHEAPCLONE; - } -} - static int snp_modevent(module_t mod, int type, void *data) { - static eventhandler_tag eh_tag; switch (type) { case MOD_LOAD: - /* XXX error checking. */ - clone_setup(&snpclones); - eh_tag = EVENTHANDLER_REGISTER(dev_clone, snp_clone, 0, 1000); snooplinedisc = ldisc_register(LDISC_LOAD, &snpdisc); + snoopdev = make_dev(&snp_cdevsw, 0, UID_ROOT, GID_WHEEL, + 0600, "snp"); + /* For compatibility */ + make_dev_alias(snoopdev, "snp0"); break; case MOD_UNLOAD: if (!LIST_EMPTY(&snp_sclist)) return (EBUSY); - EVENTHANDLER_DEREGISTER(dev_clone, eh_tag); - drain_dev_clone_events(); - clone_cleanup(&snpclones); - destroy_dev_drain(&snp_cdevsw); + destroy_dev(snoopdev); ldisc_deregister(snooplinedisc); break; default: ==== //depot/projects/vap/sys/dev/xen/console/console.c#2 (text+ko) ==== @@ -1,5 +1,5 @@ #include -__FBSDID("$FreeBSD: src/sys/dev/xen/console/console.c,v 1.1 2008/08/12 20:01:57 kmacy Exp $"); +__FBSDID("$FreeBSD: src/sys/dev/xen/console/console.c,v 1.2 2008/08/15 04:00:44 kmacy Exp $"); #include #include @@ -276,7 +276,6 @@ NULL, SHUTDOWN_PRI_DEFAULT)) == NULL) printf("xencons: shutdown event registration failed!\n"); - TRACE_EXIT; return (0); } @@ -368,7 +367,6 @@ if (sc == NULL) return (ENXIO); - TRACE_ENTER; tp = dev->si_tty; s = spltty(); if (!ISTTYOPEN(tp)) { @@ -390,7 +388,6 @@ xen_console_up = 1; error = (*linesw[tp->t_line]->l_open)(dev, tp); - TRACE_EXIT; return error; } ==== //depot/projects/vap/sys/dev/xen/console/xencons_ring.c#2 (text+ko) ==== @@ -1,5 +1,5 @@ #include -__FBSDID("$FreeBSD: src/sys/dev/xen/console/xencons_ring.c,v 1.1 2008/08/12 20:01:57 kmacy Exp $"); +__FBSDID("$FreeBSD: src/sys/dev/xen/console/xencons_ring.c,v 1.2 2008/08/15 04:00:44 kmacy Exp $"); #include #include @@ -119,7 +119,6 @@ "xencons", xencons_handle_input, NULL, INTR_TYPE_MISC | INTR_MPSAFE, NULL); if (err) { - XENPRINTF("XEN console request irq failed %i\n", err); return err; } ==== //depot/projects/vap/sys/i386/conf/DEFAULTS#4 (text+ko) ==== @@ -1,7 +1,7 @@ # # DEFAULTS -- Default kernel configuration file for FreeBSD/i386 >>> TRUNCATED FOR MAIL (1000 lines) <<<