Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jul 2014 02:17:29 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r268934 - stable/10/usr.sbin/bhyve
Message-ID:  <201407210217.s6L2HTaK024769@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Mon Jul 21 02:17:28 2014
New Revision: 268934
URL: http://svnweb.freebsd.org/changeset/base/268934

Log:
  MFC 264916,267611:
  Provide a very basic stub for the 8042 PS/2 keyboard controller.

Added:
  stable/10/usr.sbin/bhyve/atkbdc.c
     - copied, changed from r264916, head/usr.sbin/bhyve/atkbdc.c
Modified:
  stable/10/usr.sbin/bhyve/Makefile
  stable/10/usr.sbin/bhyve/bhyverun.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/bhyve/Makefile
==============================================================================
--- stable/10/usr.sbin/bhyve/Makefile	Mon Jul 21 00:21:56 2014	(r268933)
+++ stable/10/usr.sbin/bhyve/Makefile	Mon Jul 21 02:17:28 2014	(r268934)
@@ -9,6 +9,7 @@ DEBUG_FLAGS= -g -O0 
 MAN=	bhyve.8
 
 SRCS=	\
+	atkbdc.c		\
 	acpi.c			\
 	bhyverun.c		\
 	block_if.c		\

Copied and modified: stable/10/usr.sbin/bhyve/atkbdc.c (from r264916, head/usr.sbin/bhyve/atkbdc.c)
==============================================================================
--- head/usr.sbin/bhyve/atkbdc.c	Fri Apr 25 13:38:18 2014	(r264916, copy source)
+++ stable/10/usr.sbin/bhyve/atkbdc.c	Mon Jul 21 02:17:28 2014	(r268934)
@@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$");
 #define	KBD_DATA_PORT		0x60
 
 #define	KBD_STS_CTL_PORT	0x64
-#define	 KDB_SYS_FLAG		0x4
+#define	 KBD_SYS_FLAG		0x4
 
 #define	KBDC_RESET		0xfe
 
@@ -66,7 +66,7 @@ atkbdc_sts_ctl_handler(struct vmctx *ctx
 
 	retval = INOUT_OK;
 	if (in) {
-		*eax = KDB_SYS_FLAG;	/* system passed POST */
+		*eax = KBD_SYS_FLAG;	/* system passed POST */
 	} else {
 		switch (*eax) {
 		case KBDC_RESET:	/* Pulse "reset" line. */

Modified: stable/10/usr.sbin/bhyve/bhyverun.c
==============================================================================
--- stable/10/usr.sbin/bhyve/bhyverun.c	Mon Jul 21 00:21:56 2014	(r268933)
+++ stable/10/usr.sbin/bhyve/bhyverun.c	Mon Jul 21 02:17:28 2014	(r268934)
@@ -315,10 +315,6 @@ vmexit_inout(struct vmctx *ctx, struct v
 	if (vme->u.inout.string || vme->u.inout.rep)
 		return (VMEXIT_ABORT);
 
-	/* Special case of guest reset */
-	if (out && port == 0x64 && (uint8_t)eax == 0xFE)
-		return (vmexit_catch_reset());
-
         /* Extra-special case of host notifications */
         if (out && port == GUEST_NIO_PORT)
                 return (vmexit_handle_notify(ctx, vme, pvcpu, eax));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407210217.s6L2HTaK024769>