summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Retire struct sockaddr_inarp.glebius2013-01-315-70/+43
| | | | | | | | | | | | | | | Since ARP and routing are separated, "proxy only" entries don't have any meaning, thus we don't need additional field in sockaddr to pass SIN_PROXY flag. New kernel is binary compatible with old tools, since sizes of sockaddr_inarp and sockaddr_in match, and sa_family are filled with same value. The structure declaration is left for compatibility with third party software, but in tree code no longer use it. Reviewed by: ru, andre, net@
* Allow the address and ports to be separated by a colon or period ratherjhb2013-01-302-4/+39
| | | | | | | | than a space to permit directly pasting the output of commands such as netstat and sockstat on the command line. Reviewed by: net MFC after: 1 week
* Add support for MSI-X interrupts in the virtio network device and make thatneel2013-01-304-30/+348
| | | | | | | | | | | | the default. The current behavior of advertising a single MSI vector can be requested by setting the environment variable "BHYVE_USE_MSI" to "true". The use of MSI is not compliant with the virtio specification and will be eventually phased out. Submitted by: Gopakumar T Obtained from: NetApp
* If no resolv.conf has been made for the new system already and the installnwhitehorn2013-01-271-0/+5
| | | | | | media has one already, copy it in lieu of leaving things blank. This reduces the foot-shooting potential for PXE installs that immediately add packages.
* Properly quote argument.nwhitehorn2013-01-271-1/+1
| | | | MFC after: 3 days
* Rename the run_cmd field to sw_runcmd to make it consistent with themarkj2013-01-271-7/+7
| | | | | | | other fields in struct sigwork_entry. Approved by: rstone (co-mentor) MFC after: 1 week
* Ensure that newsyslog -n prints the correct message for a rotation rulemarkj2013-01-271-4/+9
| | | | | | | | that uses the 'R' flag. Reviewed by: gad Approved by: rstone (co-mentor) MFC after: 1 week
* When the 'R' flag is used with a newsyslog.conf entry, some fields ofmarkj2013-01-271-1/+3
| | | | | | | | | | | | the corresponding struct sigwork_entry were left uninitialized, potentially causing an early return from do_sigwork(). Ensure that these fields are initialized, and handle the 'R' flag properly in do_sigwork(). PR: bin/175330 Reviewed by: gad Approved by: rstone (co-mentor) MFC after: 1 week
* Clean some 'svn:executable' properties in the tree.pfg2013-01-264-0/+0
| | | | | Submitted by: Christoph Mallon MFC after: 3 days
* Revert accidental regression to previous misspelling.ian2013-01-261-1/+1
| | | | Approved by: cognet (mentor)
* Reduce watchdogd's memory footprint when running daemonized.ian2013-01-261-1/+9
| | | | | | | | | | | This uses the recently-added jemalloc(3) feature of setting the lg_chunk tuning option to zero to request that memory be allocated in the smallest chunks possible. Without this option, the default is to initally map 8MB, and then the mlockall() call wires that entire allocation even though the program only uses a few Kbytes of it at runtime. PR: bin/173332 Approved by: cognet (mentor)
* Improve correctness of rtc register implementation.grehan2013-01-251-5/+15
| | | | Submitted by: tycho nightingale at pluribusnetworks com
* Use the correct type (uint64_t) to retrieve sysctl machdep.tsc_freq.neel2013-01-251-5/+2
| | | | | | | | Simplify the function a bit by falling through after initialization and return via the normal code path. Reviewed by: grehan Obtained from: NetApp
* manctl is conditionally added to SUBDIRS later on. Don't unconditionallybrooks2013-01-231-1/+0
| | | | include in the main list.
* Fix compilation errors.jasone2013-01-231-2/+2
|
* Use snprintf instead of strc* functions and add bounds checking when creatingbapt2013-01-222-4/+9
| | | | | | pkgngpath Submitted by: sbz, gahr
* Improve error handling and remove an unnecessary check on geom providernwhitehorn2013-01-223-17/+17
| | | | | | | type. GEOM provider names can't duplicate (or shouldn't -- devfs will either break or only use the first one if they do) so using the first provider by that name is a sufficient check. This also lets the scripted partitioner install onto gmirror and geli and such things.
* Improve documentation of BSDINSTALL_DISTSITE and mdoc.nwhitehorn2013-01-221-5/+24
|
* Clarify that the setup script is optional.nwhitehorn2013-01-221-2/+4
|
* Update change date.nwhitehorn2013-01-221-2/+2
|
* Document bsdinstall scripting as it currently operates. It may change innwhitehorn2013-01-221-4/+118
| | | | | the future depending on feedback from people using it to do unattended system setup.
* Allocate the memory for the MSI-X table dynamically instead of allocating 32KBneel2013-01-212-15/+32
| | | | | | | | | | statically. In most cases the number of table entries will be far less than the maximum of 2048 allowed by the PCI specification. Reuse macros from pcireg.h to interpret the MSI-X capability instead of rolling our own. Obtained from: NetApp
* Get rid of redundant 'table_size' field in struct pi_msix. If needed it canneel2013-01-212-3/+1
| | | | | | always be calculated from the number of entries in the MSI-X table. Obtained from: NetApp
* Remove some debugging code that snuck in.nwhitehorn2013-01-211-3/+1
|
* Add a scripting frontend. Documentation and release(7) support coming later.nwhitehorn2013-01-212-1/+88
| | | | | | | | | | | | | | | | | | Scripts take the form: ------------------------------------ PARTITIONS=ada0 DISTRIBUTIONS="kernel.txz base.txz ports.txz" #!/bin/sh echo "sshd_enable=YES" >> /etc/rc.conf pkg add puppet echo "System setup complete" ------------------------------------ The second part of the script (beginning with #!) is run in the newly installed system after the installation onto ada0 (with default partitioning, see scriptedpart for more complicated scenarios) is complete.
* If no partition configuration is specified in {}, use the automatic setupnwhitehorn2013-01-203-5/+11
| | | | | | | the interactive installer uses. Example: bsdinstall scriptedpart ada0 Result: Use entire disk for a FreeBSD system with default partition layout
* Add a simple scripted partitioner. Documentation and more scripting supportnwhitehorn2013-01-204-3/+222
| | | | | | | | | | | | will come soon. This lets the install process have a line like: bsdinstall scriptedpart 'ada0 GPT {1.5G freebsd-ufs /, 10G freebsd-swap, auto freebsd-ufs /usr}' to set up a system with a 1.5GB /, some swap space, and a /usr using the rest of ada0. MFC after: 1 month
* - Force inetd to have listen queue size to be set to the value ofzont2013-01-201-1/+1
| | | | | | | kern.ipc.somaxconn instead of hardcoded value 64. Submitted by: Andrey Ignatov <rdna@rdna.ru> MFC after: 2 weeks
* Backward compatibility fix: treat cmds loaded as a script as nonInteractivedteske2013-01-201-2/+17
|
* Fix minor nit in usage output.joel2013-01-201-1/+1
| | | | Reviewed by: neel
* Make "Finish" the default choice in the partition editor. This lets younwhitehorn2013-01-201-1/+1
| | | | | | | successfully complete an installation with all defaults by pressing Enter repeatedly until your machine reboots. MFC after: 3 weeks
* Use <vmname> in a consistent manner in usage messages output by 'bhyve',neel2013-01-202-2/+3
| | | | | | 'bhyveload' and 'bhyvectl'. Pointed out by: joel@
* Remove EOL whitespace.joel2013-01-191-2/+2
|
* Minor mdoc fixes.joel2013-01-191-10/+7
|
* Merge projects/bhyve to head.neel2013-01-1945-0/+11588
|\ | | | | | | | | | | | | | | | | 'bhyve' was developed by grehan@ and myself at NetApp (thanks!). Special thanks to Peter Snyder, Joe Caradonna and Michael Dexter for their support and encouragement. Obtained from: NetApp
| * IFC @ r245509neel2013-01-1731-80/+159
| |\
| * | Get rid of 'sample.sh' from here - it belongs in the /usr/share/examplesneel2013-01-091-75/+0
| | | | | | | | | | | | | | | | | | directory. Obtained from: NetApp
| * | Sort the 'bhyvectl' subdir alphabetically.neel2013-01-091-1/+1
| | | | | | | | | | | | Obtained from: NetApp
| * | IFC @ r245178neel2013-01-0917-33/+474
| |\ \
| * | | Add the 'bhyveload(8)' man page.neel2013-01-082-1/+131
| | | | | | | | | | | | | | | | | | | | Obtained from: NetApp Reviewed by: grehan
| * | | Reduce the default memory allocation for a VM from 768MB to 128MB.neel2013-01-081-1/+1
| | | | | | | | | | | | | | | | Obtained from: NetApp
| * | | Don't completely drain the read file descriptor. Instead, onlygrehan2013-01-071-10/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fill up to the uart's rx fifo size, and leave any remaining input for when the rx fifo is read. This allows cut'n'paste of long lines to be done into the bhyve console without truncation. Also, introduce a mutex since the file input will run in the mevent thread context and may corrupt state accessed by a vCPU thread. Reviewed by: neel Approved by: NetApp
| * | | Use 64-bit arithmetic throughout, and lock accesses to globals.grehan2013-01-071-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this change, dbench with >= 4 processes runs without getting weird jumps forward in time when the APCI pmtimer is the default timecounter. Obtained from: NetApp
| * | | IFC @ r244983.neel2013-01-04136-7487/+1744
| |\ \ \
| * | | | The "unrestricted guest" capability is a feature of Intel VT-x that allowsneel2013-01-042-80/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the guest to execute real or unpaged protected mode code - bhyve relies on this feature to execute the AP bootstrap code. Get rid of the hack that allowed bhyve to support SMP guests on processors that do not have the "unrestricted guest" capability. This hack was entirely FreeBSD-specific and would not work with any other guest OS. Instead, limit the number of vcpus to 1 when executing on processors without "unrestricted guest" capability. Suggested by: grehan Obtained from: NetApp
| * | | | Change thread name for the main kqueue event loop to "<vmname> mevent" sogrehan2012-12-201-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it can be easily distinguished from other non-vCPU threads in forthcoming changes. Obtained from: NetApp
| * | | | Rename fbsdrun.* -> bhyverun.*grehan2012-12-1312-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bhyve is intended to be a generic hypervisor, and not FreeBSD-specific. (renaming internal routines will come later) Reviewed by: neel Obtained from: NetApp
| * | | | Properly reset the tx/rx rings when a guest requests a device reset.grehan2012-12-121-0/+19
| | | | | | | | | | | | | | | | | | | | Obtained from: NetApp
| * | | | Create unique MAC addresses for virtio devices that aregrehan2012-12-121-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | created with non-zero PCI function numbers. Remove obsolete reference to CFE. Obtained from: NetApp
| * | | | Determine the correct length and sector size for raw devices.grehan2012-12-081-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | Obtained from: NetApp Tested by: Michael Dexter with iscsi LUNs
OpenPOWER on IntegriCloud