Bug 200468 - emulators/virtualbox-ose: hangs when using nmdm as serial device
Summary: emulators/virtualbox-ose: hangs when using nmdm as serial device
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Virtualbox Team (Nobody)
URL:
Keywords: patch, patch-ready
Depends on:
Blocks:
 
Reported: 2015-05-26 18:38 UTC by Jimmy Olgeni
Modified: 2016-09-12 08:08 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (vbox)


Attachments
Serial device fix (1.46 KB, patch)
2015-05-26 18:38 UTC, Jimmy Olgeni
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jimmy Olgeni freebsd_committer freebsd_triage 2015-05-26 18:38:57 UTC
Created attachment 157176 [details]
Serial device fix

When using nmdm(4) as a serial device, a VirtualBox VM will not start until the corresponding nmdm(4) peer device is open.

For example, if you configure a test_vm like this:

  VBoxManage modifyvm test_vm --uart1 0x3F8 4 --uartmode1 /dev/nmdm0A

it will hang at boot forever until /dev/nmdm0B is accessed.

It possibly happens on actual serial devices too, but I don't have one to test.

This case is already handled for Linux so we just have to expand the check to cover FreeBSD too.
Comment 1 Jimmy Olgeni freebsd_committer freebsd_triage 2015-07-01 21:08:43 UTC
Ping?