Commit Graph

14542 Commits

Author SHA1 Message Date
se
3d900a4d5b MFC r270931: Fix typo ("by" -> "be"). 2014-09-04 13:47:55 +00:00
se
395db98c3c MFC r270647: Add references to vt(4) and the configuration files in /usr/sha
MFC r270653: Update man-pages to correctly refer to changed pathes and namin
MFC r270657: More man pages that need to know about vt in addition to syscon
MFC r270659: (by pluknet@) Missed comma.
MFC r270660: Back-out the references to vt(4) from this man-page. It appears
MFC r270933: Add references to vt(4) to further man-pages.
MFC r270934: Final patches to the tools used to convert syscons keymaps for
MFC r270935: Add vt(4) support to the console initialisation script, specifi

Second batch of MFCs to add support for Unicode keymaps for use with vt(4).

It contains the following changes:

- Add references to vt(4) to relevant man-pages.
- Update comment in defaults/rc.conf to mention vt
- Update rc.d/syscons to warn about syscons keymaps used under vt.
  An attempt is made to identify the vt keymap to load instead.
- Minor changes to the conversion tool based on mail comments on keymaps.

Relnotes:	yes
2014-09-04 13:45:16 +00:00
neel
e7f9a84216 MFC r270289:
Change file permissions for some setuid executables so they are "o+r".
The executable itself doesn't contain any privileged information.

An example of where this is useful is when makefs(8) is creating an image
that includes /sbin/shutdown. This can now be done without root privileges.
2014-09-04 01:38:31 +00:00
ngie
b13059ee32 MFC r270179:
Add missing libraries to DPADD; sort DPADD so DPADD and LDADD match up

  This fixes "make checkdpadd"

  Approved by: jmmv (mentor)
  Phabric: D630
  PR: 192765
2014-09-02 16:14:16 +00:00
ngie
07418221f6 MFC r270146:
Add LIBCRYPTO and LIBSSL to DPADD

  This fixes "make checkdpadd"

  Phabric: D621
  PR: 192761
  Approved by: rpaulo (mentor)
2014-09-01 03:04:59 +00:00
trasz
c9c191f6b0 MFC r270454:
Fix handling of keys in executable maps.  Previously it was broken for keys
containing whitespace.

PR:		192947
Sponsored by:	The FreeBSD Foundation
2014-08-31 21:56:42 +00:00
trasz
7b5c207075 MFC r270406:
Add "nobrowse" option.  Previously automountd(8) always behaved as if
it was set, now it's conditional.

PR:		192862
Sponsored by:	The FreeBSD Foundation
2014-08-31 21:55:08 +00:00
trasz
ea9facf035 MFC r270405:
Don't fail on executable maps that return no entries.  This turns useless
error message into useful one.

Sponsored by:	The FreeBSD Foundation
2014-08-31 21:53:42 +00:00
trasz
ab3fae8a9e MFC r270276:
Use __FBSDID() properly.

Suggested by:	pluknet@
Sponsored by:	The FreeBSD Foundation
2014-08-31 21:48:12 +00:00
trasz
ee274d2353 MFC r270210:
Remove useless - and buggy, it resulted in spurious warnings in logs - code.

Sponsored by:	The FreeBSD Foundation
2014-08-31 21:46:32 +00:00
trasz
e8d76f86d2 MFC r270096:
Bring in the new automounter, similar to what's provided in most other
UNIX systems, eg. MacOS X and Solaris.  It uses Sun-compatible map format,
has proper kernel support, and LDAP integration.

There are still a few outstanding problems; they will be fixed shortly.

Reviewed by:	allanjude@, emaste@, kib@, wblock@ (earlier versions)
Phabric:	D523
Relnotes:	yes
Sponsored by:	The FreeBSD Foundation
2014-08-31 21:18:23 +00:00
trasz
bd6edcc077 MFC r270279:
Make the iSCSI stack use __FBSDID() properly.

Sponsored by:	The FreeBSD Foundation
2014-08-31 20:21:08 +00:00
ae
e15e639ea8 MFC r265778 (by melifaro):
Fix ndp(8) -f flag parsing

  PR:		bin/136661

MFC r268827 (by peter):
  Fix "ndp -d hostname".
2014-08-26 10:32:08 +00:00
thompsa
a0e779b258 MFH (r269653): Give a brief error message 2014-08-26 02:31:37 +00:00
ngie
06c16a3704 MFC r270180:
Add LIBMD and LIBUTIL to DPADD to fix "make checkdpadd"

 Approved by: jmmv (mentor)
 Phabric: D633
 PR: 192763
2014-08-24 08:03:59 +00:00
des
37f594fcd2 MFH (r269074): strip patch level from release name 2014-08-23 11:32:43 +00:00
se
eaf41dd313 MFC 269976.
Add support for NEWCONS to kbdmap and vidfont.
2014-08-21 21:57:18 +00:00
rmacklem
e390c0ba15 MFC: r270005
Try to clarify how file systems are exported for NFSv4.
This is a content change.
2014-08-21 01:07:27 +00:00
grehan
5d455a50f5 MFC r267921, r267934, r267949, r267959, r267966, r268202, r268276,
r268427, r268428, r268521, r268638,	r268639, r268701, r268777,
    r268889, r268922, r269008, r269042,	r269043, r269080, r269094,
    r269108, r269109, r269281, r269317,	r269700, r269896, r269962,
    r269989.

Catch bhyve up to CURRENT.

Lightly tested with FreeBSD i386/amd64,	Linux i386/amd64, and
OpenBSD/amd64. Still resolving an	issue with OpenBSD/i386.

Many thanks to jhb@ for	all the	hard work on the prior MFCs !

r267921 - support the "mov r/m8, imm8" instruction
r267934 - document options
r267949 - set DMI vers/date to fixed values
r267959 - doc: sort cmd flags
r267966 - EPT misconf post-mortem info
r268202 - use correct flag for event index
r268276 - 64-bit virtio capability api
r268427 - invalidate guest TLB when cr3 is updated, needed for TSS
r268428 - identify vcpu's operating mode
r268521 - use correct offset in guest logical-to-linear translation
r268638 - chs value
r268639 - chs fake values
r268701 - instr emul operand/address size override prefix support
r268777 - emulation for legacy x86 task switching
r268889 - nested exception support
r268922 - fix INVARIANTS build
r269008 - emulate instructions found in the OpenBSD/i386 5.5 kernel
r269042 - fix fault injection
r269043 - Reduce VMEXIT_RESTARTs in task_switch.c
r269080 - fix issues in PUSH emulation
r269094 - simplify return values from the inout handlers
r269108 - don't return -1 from the push emulation handler
r269109 - avoid permanent sleep in vm_handle_hlt()
r269281 - list VT-x features in base kernel dmesg
r269317 - Mark AHCI fatal errors as not completed
r269700 - Support PCI extended config space in bhyve
r269896 - Minor cleanup
r269962 - use max guest memory when creating IOMMU domain
r269989 - fix interrupt mode names
2014-08-19 01:20:24 +00:00
mav
f3589bc4f2 MFC r269183, r269191:
Add netmasks support to initiator-portal option.
2014-08-18 16:06:04 +00:00
rmacklem
cdfc4fb07a MFC: r269788
Document the use of the vfs.nfsd sysctls that control the size of
the NFS server's DRC for TCP.
This is a content change.
2014-08-17 19:24:26 +00:00
grehan
46d28d66fb MFC r267311, r267330, r267811, r267884
Turn on interrupt window exiting unconditionally when an ExtINT is being
injected into the guest.

Add helper functions to populate VM exit information for rendezvous and
astpending exits.

Provide APIs to directly get 'lowmem' and 'highmem' size directly.

Expose the amount of resident and wired memory from the guest's vmspace
2014-08-17 01:23:52 +00:00
grehan
7a365d2c05 MFC r267216
Add ioctl(VM_REINIT) to reinitialize the virtual machine state maintained
by vmm.ko. This allows the virtual machine to be restarted without having
to destroy it first.
2014-08-17 01:00:42 +00:00
grehan
e83027edbb MFC r266933
Activate vcpus from bhyve(8) using the ioctl VM_ACTIVATE_CPU instead of doing
it implicitly in vmm.ko.
2014-08-17 00:52:07 +00:00
gavin
2ad4eee5a8 Merge r266206 from head (by bjk):
Review pass through jail.8

  Replace usage of "prison" with "jail", since that term has mostly dropped
  out of use.  Note once at the beginning that the "prison" term is equivalent,
  but do not use it otherwise. [1]

  Some grammar issues.

  Some mdoc formatting fixes.

  Consistently use \(em for em dashes, with spaces around it.

  Avoid contractions.

  Prefer ssh to telnet.

PR:		176832 [1]
2014-08-14 12:50:25 +00:00
gavin
9a525ec03f Merge r268728 from head:
When we fail to extract the pkg binaries (for example, / is read-only),
  give a more helpful error message.
2014-08-13 12:44:44 +00:00
gavin
60b4865344 Merge r268488 from head:
Reword an awkward option description

PR:		191726
Submitted by:	yaneurabeya gmail.com
2014-08-13 12:35:11 +00:00
imp
c7338ae617 MFC: Merge in the changes in -current:
Support ! operator in "files" files.
Improve error detection and reporting
Cleanup code to make it easier to maintain.
Remove mandatory keyword: it has been used for 17 years.
Bump version number (we should have bumped for -I too, but didn't)

	r261501 | imp | 2014-02-04 17:26:11 -0700 (Tue, 04 Feb 2014) | 5 lines
	Fix ! by not clearing not at the bottom of the loop.
	Add a blank line
	Submitted by:   bde (blank line)

	r261493 | imp | 2014-02-04 11:28:58 -0700 (Tue, 04 Feb 2014) | 5 lines
	Implement the '!' operator for files* files. It means 'include this
	only if the specified option is NOT specified.' Bump version because
	old config won't be able to cope with files* files that have this
	construct in them.

	r261446 | imp | 2014-02-03 12:14:36 -0700 (Mon, 03 Feb 2014) | 5 lines
	Convert the loop by gotos into a for loop to improve readability. I
	did this only with the inner loop for the token parsing, and not the
	outer loop which was understandable enough when the extra layers of
	looping went away...

	r261445 | imp | 2014-02-03 12:10:33 -0700 (Mon, 03 Feb 2014) | 4 lines
	Fix a bug introduced in r261437 that failed to honor "optional
	profiling-routine" to work, since profiling-routine is not really an
	option or a device, but a special case elsewhere in the code.

	r261444 | imp | 2014-02-03 11:56:41 -0700 (Mon, 03 Feb 2014) | 2 lines
	Slight cleanup to the error messaging to compress code vertically...

	r261442 | imp | 2014-02-03 11:31:51 -0700 (Mon, 03 Feb 2014) | 2 lines
	Better error messages when EOF is hit in the middle of a phrase.

	r261438 | imp | 2014-02-03 09:54:53 -0700 (Mon, 03 Feb 2014) | 5 lines
	Move the check for standard keyword + optional inclusion specifier to
	its proper location. Otherwise you could have 'file.c standard pci'
	without an error. This construct isn't in our tree, and has no well
	defined meaning.

	r261437 | imp | 2014-02-03 09:47:10 -0700 (Mon, 03 Feb 2014) | 4 lines
	Don't believe we have a requirement until after we've checked all the
	known key words. This will make error messages slightly better in
	weird corner cases, but should otherwise be a nop.

	r261436 | imp | 2014-02-03 09:46:01 -0700 (Mon, 03 Feb 2014) | 3 lines
	In the 17 years since r30796, the mandatory keyword has never been used
	in any files as far as I can tell, and is currently unused. Retire it.

	r261435 | imp | 2014-02-03 08:10:44 -0700 (Mon, 03 Feb 2014) | 6 lines
	Slightly deobfuscate read_file() and likely pessimize the runtime
	performance by epsilon.
	(Translation: elminate bogus macros that hid 'returns' making it hard
	 to read and moved a block of code inline rather than at the end of the
	 fuction where it was effectively a 'gosub' kind of goto).
2014-08-11 18:42:20 +00:00
smh
ffdde8cca2 MFC r269522
Added support for extra ifconfig args to jail ip4.addr & ip6.addr params

This allows for CARP interfaces to be  used in jails e.g.
ip4.addr = "em0|10.10.1.20/32 vhid 1 pass MyPass advskew 100"

r269340 will not be MFC'ed as mentioned due to the slim window and the
amount of additional commits required to support it.

Sponsored by:	Multiplay
2014-08-11 08:58:35 +00:00
rmacklem
647be50edb MFC: r268866
r243637 changed the default number of nfsd threads created,
but the man page did not reflect this.
This is a content change.
2014-08-02 20:06:36 +00:00
wblock
d357493f14 MFC 268931:
Correct spelling errors in ctld.8.  While here, correct similar errors
in ctl.conf.5 and fix a couple of contractions.
2014-07-31 14:53:07 +00:00
mav
dd34ac0859 MFC r268767:
Add support for VMWare dialect of EXTENDED COPY command, aka VAAI Clone.

This allows to clone VMs and move them between LUNs inside one storage
host without generating extra network traffic to the initiator and back,
and without being limited by network bandwidth.

LUNs participating in copy operation should have UNIQUE NAA or EUI IDs set.
For LUNs without these IDs VMWare will use traditional copy operations.

Beware: the above LUN IDs explicitly set to values non-unique from the VM
cluster point of view may cause data corruption if wrong LUN is addressed!

Sponsored by:	iXsystems, Inc.
2014-07-30 07:18:32 +00:00
des
fe6d937978 MFH (r266114, r266138): upgrade to latest ldns and unbound
MFH (r266139-r266143, r266145, r266149, r266150): fix props
MFH (r266179, r266180, r266193, r266238, r266777): misc cleanup
MFH (r266863): create and use /var/unbound/conf.d
MFH (r268839): import unblock-lan-zones patch from upstream
MFH (r268840): fix reverse lookups on private networks
MFH (r268883): avoid spamming source tree during build

PR:		190739 (for r268883)
2014-07-29 20:57:38 +00:00
mav
bc8d80ff4e MFC r268457 (by pluknet):
Fix typos.
2014-07-24 15:49:28 +00:00
mav
e65da97c90 MFC r268289:
Fix minor copy-paste bug in r268284.
2014-07-24 15:48:18 +00:00
mav
70c3d88292 MFC r267612 (by trasz):
Get rid of unneccessary argument.
2014-07-24 15:42:32 +00:00
mav
26b69cce3d MFC r267609 (by trasz):
Improve code a little; no functional changes.
2014-07-24 15:41:16 +00:00
mav
15ff7e1d3a MFC r267608 (by trasz):
Use proper term in debug messages.
2014-07-24 15:38:49 +00:00
mav
0a10281b81 MFC r266169 (by trasz):
Remove unused variable.
2014-07-24 15:37:31 +00:00
mav
65d6dfa894 MFC r267613 (by trasz):
Implement redirection handling in initiator.
2014-07-24 15:31:45 +00:00
emaste
35d9abcb8d MFC r265157: kldxref: Clean up error reporting
Omit "too many sections" warnings if the ELF file is not dynamically
  linked (and is therefore skipped anyway), and otherwise output it only
  once.  An errant core file would previously cause kldxref to output a
  number of warnings.

  Also introduce a MAXSEGS #define and replace literal 2 with it, to make
  comparisons clear.

Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation
2014-07-23 14:30:58 +00:00
jhb
ce450da430 MFC 266424,266476,266524,266573,266595,266626,266627,266633,266641,266642,
266708,266724,266934,266935,268521:
Emulation of the "ins" and "outs" instructions.

Various fixes for translating guest linear addresses to guest physical
addresses.
2014-07-22 04:39:16 +00:00
jhb
c1fe945ebd MFC 266125:
Implement a PCI interrupt router to route PCI legacy INTx interrupts to
the legacy 8259A PICs.
2014-07-22 03:14:37 +00:00
jhb
e6b48465b7 MFC 264353,264509,264768,264770,264825,264846,264988,265114,265165,265365,
265941,265951,266390,266550,266910:
Various bhyve fixes:
- Don't save host's return address in 'struct vmxctx'.
- Permit non-32-bit accesses to local APIC registers.
- Factor out common ioport handler code.
- Use calloc() in favor of malloc + memset.
- Change the vlapic timer frequency to be in the ballpark of contemporary
  hardware.
- Allow the guest to read the TSC via MSR 0x10.
- A VMCS is always inactive when it exits the vmx_run() loop.  Remove
  redundant code and the misleading comment that suggest otherwise.
- Ignore writes to microcode update MSR.  This MSR is accessed by RHEL7
  guest.
  Add KTR tracepoints to annotate wrmsr and rdmsr VM exits.
- Provide an alias for the userboot console and name it 'comconsole'.
- Use EV_ADD to create an mevent and EV_ENABLE to enable it.
- abort(3) the process in response to a VMEXIT_ABORT.
- Don't include the guest memory segments in the bhyve(8) process core dump.
- Make the vmx asm code dtrace-fbt-friendly.
- Allow vmx_getdesc() and vmx_setdesc() to be called for a vcpu that is in
  the VCPU_RUNNING state.
- Enable VMX in the IA32_FEATURE_CONTROL MSR if it not enabled and the MSR
  isn't locked.
2014-07-21 19:08:02 +00:00
jhb
044fcd5dc2 MFC 264275:
Explicitly initialize 'vmname' to NULL.
2014-07-21 18:23:48 +00:00
jhb
888f6511e3 MFC 263780,264516,265062,265101,265203,265364:
Add an ioctl to suspend a virtual machine (VM_SUSPEND).

Add logic in the HLT exit handler to detect if the guest has put all vcpus
to sleep permanently by executing a HLT with interrupts disabled.

When this condition is detected the guest with be suspended with a reason of
VM_SUSPEND_HALT and the bhyve(8) process will exit.

This logic can be disabled via the tunable 'hw.vmm.halt_detection'.
2014-07-21 02:39:17 +00:00
jhb
d034cf40e5 MFC 264916,267611:
Provide a very basic stub for the 8042 PS/2 keyboard controller.
2014-07-21 02:17:28 +00:00
jhb
cf1a222326 MFC 260847,264055,264867:
- Add a very simple virtio_random(4) driver for FreeBSD guests to harvest
  entropy from hypervisors.
- Add support to bhyve for the virtio RNG entropy-source device to provide
  entry to bhyve guests.
2014-07-21 00:21:56 +00:00
jhb
25b41d0882 MFC 262331,262487,262495,262523:
ZFS boot support for bhyveload.
2014-07-20 22:54:03 +00:00
bapt
9822066797 MFC: r263650, r263686
Add missing dependency on libm
2014-07-20 10:54:45 +00:00