Add comment which describes the exit status codes returned from
/usr/sbin/bhyve.  These are in src/usr.sbin/bhyve/bhyverun.c.

Reviewed by: neel


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270512 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
If the VM was reset via "/sbin/reboot" or "shutdown -r",
then it is no longer necessary to "bhyvectl --destroy" the VM when it reboots.
Move the "bhyvectl --destroy" outside of the while loop.

Reviewed by: neel


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270513 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
i915 driver - enable opregion handle; program CADL.

add opregion handling for drm2 - which exposes some ACPI video configuration
pieces that some Lenovo laptop models use to flesh out which video device
to speak to.  This enables the brightness control in ACPI to work these models.

The CADL bits are also important - it's used to figure out which ACPI
events to hook the brightness buttons into.  It doesn't yet seem to work
for me, but it does for the OP.

Tested:

* Lenovo X230 (mine)
* OP: ASUS UX51VZ

PR:	190186
Submitted by:	Henry Hu <henry.hu.sh@gmail.com>
Reviewed by:	dumbbell


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270516 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Allow it to compile again.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270517 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a typo to catch correct condition.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270518 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix "make checkdpadd" for lib/libc when MK_SSP != no

Add LIBSSP_NONSHARED to bsd.libnames.mk and append LIBSSP_NONSHARED to DPADD in
lib/libc when MK_SSP != no

Approved by: rpaulo (mentor)
MFC after: 3 days
Phabric: D675 (as part of a larger diff)
PR: 192728


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270519 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update these to make them actually compile!

Tested:

* cross compilation to MIPS


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270520 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Since the size of GPT entry may differ from the sizeof(struct gpt_ent),
use the size from GPT header to iterate entries.

Suggested by:	marcel@
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270521 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
The standard we compile libc++ with is called c++11 not c++0x.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270522 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
drm/i915: Add opt_acpi.h and acpi_if.h to the source files

While here, sort the list of generated source files.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270571 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
drm/i915: Disable the build of i915 on PC98

This module is of no use on this platform and now, i915 depends on ACPI
anyway.

Suggested by:	nyan@


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270572 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
vt(4): Take font offset into account in vt_is_cursor_in_area()

This fixes a "General protection fault" in vt_vga, where
vt_is_cursor_in_area() erroneously reported that the cursor was over the
text. This led to negative integers stored in "unsigned int" and chaos.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270587 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Rather than using an hardcoded reclaim age, rely on an LRU-like approach
for dirhash cache, setting a target percent to reclaim (exposed via
SYSCTL). This allows to always make some amount of progress keeping the maximum
reclaim age dynamic.

Tested by:      pho
Reviewed by:	jhb


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270588 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
vt(4): The cursor coordinates are relative to the drawn area

... not the whole screen. Don't use font offsets in
vt_mark_mouse_position_as_dirty().

This fixes a bug where the mouse position wasn't marked as dirty when
approaching the borders of the drawn area.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270589 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
vt(4): Store a rectangle for the drawable area, not just the top-left corner

This allows backends to verify they do not draw outside of this area.
This fixes a bug in vt_vga where the text was happily drawn over the
right and bottom margins, when using the Gallant font.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270613 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
vt(4): Intialize drawable area rectangle each time a font is loaded

This also fixes a problem where early in boot, the area was zero,
leading to nothing displayed for a few seconds.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270618 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
vt_vga: Use Write Mode 0 to draw group of 8 pixels using 3 or more colors

This replaces the method based on Write Mode 3, which required reads
from the video memory to load the latches.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270620 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix typo: s/mac_rev/mac_ver/

Submitted by:	Stefan Sperling <stsp at openbsd dot org>


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270643 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add references to vt(4) and the configuration files in /usr7share/vt where
appropriate (i.e. where syscons was already mentioned and vt supports the
feature). Comments in defaults/rc.conf are updated to match the contents
of the modified man-page rc.conf(5).

Reviewed by:	pluknet, emaste
MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270647 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix up races with f_seqcount handling.

It was possible that the kernel would overwrite user-supplied hint.

Abuse vnode lock for this purpose.

In collaboration with: kib
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@270648 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f