Peter Grehan
2838f343c8
Improve correctness of rtc register implementation.
...
Submitted by: tycho nightingale at pluribusnetworks com
2013-01-25 22:43:20 +00:00
Neel Natu
1caafc47a3
Use the correct type (uint64_t) to retrieve sysctl machdep.tsc_freq.
...
Simplify the function a bit by falling through after initialization and
return via the normal code path.
Reviewed by: grehan
Obtained from: NetApp
2013-01-25 06:27:03 +00:00
Brooks Davis
0ebbdcbea4
manctl is conditionally added to SUBDIRS later on. Don't unconditionally
...
include in the main list.
2013-01-23 23:51:44 +00:00
Jason Evans
44728051fd
Fix compilation errors.
2013-01-23 07:22:33 +00:00
Baptiste Daroussin
5771a68296
Use snprintf instead of strc* functions and add bounds checking when creating
...
pkgngpath
Submitted by: sbz, gahr
2013-01-22 22:41:12 +00:00
Nathan Whitehorn
f0ddc92d27
Improve error handling and remove an unnecessary check on geom provider
...
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.
2013-01-22 17:06:28 +00:00
Nathan Whitehorn
aeff2fb371
Improve documentation of BSDINSTALL_DISTSITE and mdoc.
2013-01-22 15:26:19 +00:00
Nathan Whitehorn
3193ad883a
Clarify that the setup script is optional.
2013-01-22 02:57:53 +00:00
Nathan Whitehorn
790f1bb70c
Update change date.
2013-01-22 02:47:08 +00:00
Nathan Whitehorn
53f01f3a8a
Document bsdinstall scripting as it currently operates. It may change in
...
the future depending on feedback from people using it to do unattended
system setup.
2013-01-22 02:40:06 +00:00
Neel Natu
2e81a7e8ab
Allocate the memory for the MSI-X table dynamically instead of allocating 32KB
...
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
2013-01-21 22:07:05 +00:00
Neel Natu
c3cbaac942
Get rid of redundant 'table_size' field in struct pi_msix. If needed it can
...
always be calculated from the number of entries in the MSI-X table.
Obtained from: NetApp
2013-01-21 08:12:59 +00:00
Nathan Whitehorn
bd67b82b61
Remove some debugging code that snuck in.
2013-01-21 02:47:14 +00:00
Nathan Whitehorn
2ffbec1872
Add a scripting frontend. Documentation and release(7) support coming later.
...
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.
2013-01-21 01:01:32 +00:00
Nathan Whitehorn
a6b612e920
If no partition configuration is specified in {}, use the automatic setup
...
the interactive installer uses.
Example: bsdinstall scriptedpart ada0
Result: Use entire disk for a FreeBSD system with default partition layout
2013-01-20 23:04:21 +00:00
Nathan Whitehorn
5eca7e06a1
Add a simple scripted partitioner. Documentation and more scripting support
...
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
2013-01-20 22:25:58 +00:00
Andrey Zonov
ec89b1f97c
- Force inetd to have listen queue size to be set to the value of
...
kern.ipc.somaxconn instead of hardcoded value 64.
Submitted by: Andrey Ignatov <rdna@rdna.ru>
MFC after: 2 weeks
2013-01-20 19:44:33 +00:00
Devin Teske
8ff9900c28
Backward compatibility fix: treat cmds loaded as a script as nonInteractive
2013-01-20 17:48:56 +00:00
Joel Dahl
9c17a1c7fe
Fix minor nit in usage output.
...
Reviewed by: neel
2013-01-20 08:18:56 +00:00
Nathan Whitehorn
c4bd43b00b
Make "Finish" the default choice in the partition editor. This lets you
...
successfully complete an installation with all defaults by pressing
Enter repeatedly until your machine reboots.
MFC after: 3 weeks
2013-01-20 03:55:08 +00:00
Neel Natu
24be8623c6
Use <vmname> in a consistent manner in usage messages output by 'bhyve',
...
'bhyveload' and 'bhyvectl'.
Pointed out by: joel@
2013-01-20 03:47:13 +00:00
Joel Dahl
bf77e2dbfc
Remove EOL whitespace.
2013-01-19 07:07:05 +00:00
Joel Dahl
edccda4d08
Minor mdoc fixes.
2013-01-19 07:04:30 +00:00
Neel Natu
c458fc1ed4
Merge projects/bhyve to head.
...
'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
2013-01-19 04:18:52 +00:00
Eitan Adler
38d90616e6
Add option to make pc-sysinstall optional
...
Approved by: cperciva
2013-01-18 15:57:09 +00:00
Alfred Perlstein
b647367061
Spelling: exitting -> exiting
...
MFC after: 2 weeks
2013-01-18 02:36:06 +00:00
Jung-uk Kim
efcc2a3054
Merge ACPICA 20130117.
2013-01-17 23:56:43 +00:00
Neel Natu
c2217b9848
IFC @ r245509
2013-01-17 07:04:37 +00:00
Eitan Adler
535460c7dc
Remove unused variables
...
Approved by: cperciva
MFC After: 3 days
2013-01-16 05:03:49 +00:00
Eitan Adler
bab89cefc7
Avoid clobbering errno with a call to fprintf
...
PR: bin/173923
Submitted by: Garrett Cooper <yanegomi@gmail.com>
Approved by: cperciva
MFC After: 3 days
2013-01-16 05:00:51 +00:00
Devin Teske
db7b0ba78f
Don't use f_show_msg() unless printf(1) syntax is required (this reduces the
...
number of unnecessary forks).
2013-01-14 21:03:34 +00:00
Baptiste Daroussin
8cc0ef19d2
Directly uses calloc(3) instread of malloc(3) + memset(3)
...
Reported by: Jeremy Chadwick <jdc@koitsu.org>
MFC after: 3 days
2013-01-14 07:17:38 +00:00
Devin Teske
27ff90aa87
Add new f_yesno/f_noyes wrapper functions (which take printf(1) syntax).
2013-01-14 01:15:25 +00:00
Devin Teske
3c91c65a2b
Add missing dialog(1) arguments to internationalize "Help"-button label.
2013-01-14 01:09:23 +00:00
Nathan Whitehorn
aa333a1880
Note that cpufreq(4) is not available on all hardware.
...
PR: bin/175139
MFC after: 2 weeks
2013-01-12 16:01:58 +00:00
Joel Dahl
0510534298
Remove EOL whitespace.
2013-01-12 08:44:54 +00:00
Brooks Davis
624c4889c7
Always install our mtree as /usr/sbin/fmtree and link it as
...
/usr/sbin/mtree by default.
Add a src.conf option WITH_NMTREE that causes NetBSD's mtree to be linked
as /usr/sbin/mtree as well as /usr/sbin/nmtree.
2013-01-09 21:07:08 +00:00
Hajimu UMEMOTO
164051cea5
Add no_prefer_iface option.
...
It stops treating the address on the interface as special by source
address selection rule even when the interface is outgoing interface.
This is desired in some situation.
Requested by: hrs
Reviewed by: IHANet folks including hrs
MFC after: 1 week
2013-01-09 18:18:08 +00:00
Neel Natu
c83f77500c
Get rid of 'sample.sh' from here - it belongs in the /usr/share/examples
...
directory.
Obtained from: NetApp
2013-01-09 04:04:30 +00:00
Neel Natu
0ff4c70271
Sort the 'bhyvectl' subdir alphabetically.
...
Obtained from: NetApp
2013-01-09 04:02:23 +00:00
Neel Natu
1b54fbe69d
IFC @ r245178
2013-01-09 02:26:50 +00:00
Neel Natu
83994ddc7c
Add the 'bhyveload(8)' man page.
...
Obtained from: NetApp
Reviewed by: grehan
2013-01-08 06:00:32 +00:00
Neel Natu
e37bc32183
Reduce the default memory allocation for a VM from 768MB to 128MB.
...
Obtained from: NetApp
2013-01-08 01:56:05 +00:00
Peter Grehan
70d980fc34
Don't completely drain the read file descriptor. Instead, only
...
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
2013-01-07 07:33:48 +00:00
Peter Grehan
5fdfc2b893
Use 64-bit arithmetic throughout, and lock accesses to globals.
...
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
2013-01-07 04:51:43 +00:00
Devin Teske
1d70f5f445
Update copyright following last commit.
2013-01-07 00:18:03 +00:00
Devin Teske
3da75d2e7b
Add nonInteractive support to f_dialog_yesno/noyes().
2013-01-07 00:15:52 +00:00
Mateusz Guzik
1f09eec3f8
pw: free group returned by gr_add
2013-01-06 21:56:58 +00:00
Devin Teske
31a41563c0
Update copyrights and dates following last commit.
2013-01-06 18:18:09 +00:00
Devin Teske
99bc932ec2
Add support for scripting (sysinstall style).
...
Reviewed by: jilles
2013-01-05 02:08:47 +00:00