]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 259826,259997,259998:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 23 Jan 2014 20:35:32 +0000 (20:35 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 23 Jan 2014 20:35:32 +0000 (20:35 +0000)
commit743816bccf8195c599e754f869f41a2b9ad4eb99
tree715799c63ee26e27fc184f5f2d222ea765d13418
parent84194d10d351e37b3ce36ab3a43b03ce883546d7
MFC 259826,259997,259998:
Support soft power-off via the ACPI S5 state for bhyve guests and wire
up a virtual power button to SIGTERM:
- Implement the PM1_EVT and PM1_CTL registers required by ACPI.
- Emulate the Reset Control register at I/O port 0xcf9.
- Advertise an _S5 package.
- Implement an SMI_CMD register with commands to enable and disable ACPI.
  Currently the only change when ACPI is enabled is to enable the virtual
  power button via SIGTERM.
- Implement a fixed-feature power button when ACPI is enabled by asserting
  PWRBTN_STS in PM1_EVT when SIGTERM is received.
- Add support for EVFILT_SIGNAL events to mevent.
- Implement support for the ACPI system command interrupt (SCI) and assert
  it when needed based on the values in PM1_EVT.  Mark the SCI as active-low
  and level triggered in the MADT and MP Table.

git-svn-id: svn://svn.freebsd.org/base/stable/10@261090 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/bhyve/Makefile
usr.sbin/bhyve/acpi.c
usr.sbin/bhyve/acpi.h
usr.sbin/bhyve/bhyverun.c
usr.sbin/bhyve/inout.h
usr.sbin/bhyve/mevent.c
usr.sbin/bhyve/mevent.h
usr.sbin/bhyve/mptbl.c
usr.sbin/bhyve/pm.c [new file with mode: 0644]
usr.sbin/bhyve/pmtmr.c