svn commit: r262227 - stable/10/usr.sbin/bhyve

John Baldwin jhb at FreeBSD.org
Wed Feb 19 18:36:54 UTC 2014


Author: jhb
Date: Wed Feb 19 18:36:53 2014
New Revision: 262227
URL: http://svnweb.freebsd.org/changeset/base/262227

Log:
  MFC 261607:
  Mark the I/O ports used by the bhyve console and debug devices as system
  resources.

Modified:
  stable/10/usr.sbin/bhyve/consport.c
  stable/10/usr.sbin/bhyve/dbgport.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/bhyve/consport.c
==============================================================================
--- stable/10/usr.sbin/bhyve/consport.c	Wed Feb 19 18:35:22 2014	(r262226)
+++ stable/10/usr.sbin/bhyve/consport.c	Wed Feb 19 18:36:53 2014	(r262227)
@@ -39,6 +39,7 @@ __FBSDID("$FreeBSD$");
 #include <stdbool.h>
 
 #include "inout.h"
+#include "pci_lpc.h"
 
 #define	BVM_CONSOLE_PORT	0x220
 #define	BVM_CONS_SIG		('b' << 8 | 'v')
@@ -125,6 +126,8 @@ console_handler(struct vmctx *ctx, int v
 	return (0);
 }
 
+SYSRES_IO(BVM_CONSOLE_PORT, 4);
+
 static struct inout_port consport = {
 	"bvmcons",
 	BVM_CONSOLE_PORT,

Modified: stable/10/usr.sbin/bhyve/dbgport.c
==============================================================================
--- stable/10/usr.sbin/bhyve/dbgport.c	Wed Feb 19 18:35:22 2014	(r262226)
+++ stable/10/usr.sbin/bhyve/dbgport.c	Wed Feb 19 18:36:53 2014	(r262227)
@@ -42,6 +42,7 @@ __FBSDID("$FreeBSD$");
 
 #include "inout.h"
 #include "dbgport.h"
+#include "pci_lpc.h"
 
 #define	BVM_DBG_PORT	0x224
 #define	BVM_DBG_SIG	('B' << 8 | 'V')
@@ -110,6 +111,8 @@ static struct inout_port dbgport = {
 	dbg_handler
 };
 
+SYSRES_IO(BVM_DBG_PORT, 4);
+
 void
 init_dbgport(int sport)
 {


More information about the svn-src-stable-10 mailing list