Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Feb 2014 20:53:41 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r261607 - head/usr.sbin/bhyve
Message-ID:  <201402072053.s17KrfBm007968@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Fri Feb  7 20:53:41 2014
New Revision: 261607
URL: http://svnweb.freebsd.org/changeset/base/261607

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

Modified:
  head/usr.sbin/bhyve/consport.c
  head/usr.sbin/bhyve/dbgport.c

Modified: head/usr.sbin/bhyve/consport.c
==============================================================================
--- head/usr.sbin/bhyve/consport.c	Fri Feb  7 19:15:25 2014	(r261606)
+++ head/usr.sbin/bhyve/consport.c	Fri Feb  7 20:53:41 2014	(r261607)
@@ -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: head/usr.sbin/bhyve/dbgport.c
==============================================================================
--- head/usr.sbin/bhyve/dbgport.c	Fri Feb  7 19:15:25 2014	(r261606)
+++ head/usr.sbin/bhyve/dbgport.c	Fri Feb  7 20:53:41 2014	(r261607)
@@ -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)
 {



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