summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr/src/cmd/bhyve/bhyverun.c22
-rw-r--r--usr/src/cmd/bhyve/bhyverun.h6
2 files changed, 0 insertions, 28 deletions
diff --git a/usr/src/cmd/bhyve/bhyverun.c b/usr/src/cmd/bhyve/bhyverun.c
index 07489ad8d5..9a7fc859e4 100644
--- a/usr/src/cmd/bhyve/bhyverun.c
+++ b/usr/src/cmd/bhyve/bhyverun.c
@@ -200,13 +200,6 @@ static int acpi;
static char *progname;
static const int BSP = 0;
-#ifndef __FreeBSD__
-int bcons_wait = 0;
-int bcons_connected = 0;
-pthread_mutex_t bcons_wait_lock = PTHREAD_MUTEX_INITIALIZER;
-pthread_cond_t bcons_wait_done = PTHREAD_COND_INITIALIZER;
-#endif
-
static cpuset_t cpumask;
static void vm_loop(struct vmctx *ctx, int vcpu, uint64_t rip);
@@ -1334,21 +1327,6 @@ main(int argc, char *argv[])
errx(EX_OSERR, "cap_enter() failed");
#endif
-#ifndef __FreeBSD__
- /*
- * If applicable, wait for bhyveconsole
- */
- if (bcons_wait) {
- printf("Waiting for bhyveconsole connection...\n");
- (void) pthread_mutex_lock(&bcons_wait_lock);
- while (!bcons_connected) {
- (void) pthread_cond_wait(&bcons_wait_done,
- &bcons_wait_lock);
- }
- (void) pthread_mutex_unlock(&bcons_wait_lock);
- }
-#endif
-
/*
* Add CPU 0
*/
diff --git a/usr/src/cmd/bhyve/bhyverun.h b/usr/src/cmd/bhyve/bhyverun.h
index 8df8e01a73..99ce739f70 100644
--- a/usr/src/cmd/bhyve/bhyverun.h
+++ b/usr/src/cmd/bhyve/bhyverun.h
@@ -51,12 +51,6 @@ extern int guest_ncpus;
extern uint16_t cores, sockets, threads;
extern char *guest_uuid_str;
extern char *vmname;
-#ifndef __FreeBSD__
-extern int bcons_wait;
-extern int bcons_connected;
-extern pthread_mutex_t bcons_wait_lock;
-extern pthread_cond_t bcons_wait_done;
-#endif
void *paddr_guest2host(struct vmctx *ctx, uintptr_t addr, size_t len);