[Differential] D7185: Add virtio-console support to bhyve

jceel (Jakub Klama) phabric-noreply at FreeBSD.org
Mon Jul 11 13:19:23 UTC 2016


jceel created this revision.
jceel added reviewers: grehan, trasz.
jceel added a subscriber: freebsd-virtualization-list.
jceel set the repository for this revision to rS FreeBSD src repository.
Herald added a subscriber: imp.

REVISION SUMMARY
  Adds virtio-console device support to bhyve, allowing to create bidirectional character streams between host and guest.
  
  Syntax:
  `-s <slotnum>,virtio-console,port1=/path/to/port1.sock,port2=/path/to/port2.sock,...`
  
  Maximum of 16 ports per device can be created. Every port is named and corresponds to an Unix domain socket created by bhyve. bhyve accepts at most one unix domain socket connection per port at a time.
  
  Limitations:
  
  - due to lack of destructors of in bhyve, sockets on the filesystem must be cleaned up manually after bhyve exits
  - there's no way to use "console port" feature, nor the console port resize as of yet
  - emergency write is advertised, but no-op as of yet

TEST PLAN
  Start FreeBSD guest in bhyve with `-s 9,virtio-console,testport=/tmp/testport.sock`. Type `kldload virtio_console` in the guest, then `cu -l /dev/ttyV0.0` in the guest and `socat - /tmp/testport.sock` in the host.

REPOSITORY
  rS FreeBSD src repository

REVISION DETAIL
  https://reviews.freebsd.org/D7185

AFFECTED FILES
  usr.sbin/bhyve/Makefile
  usr.sbin/bhyve/pci_virtio_console.c
  usr.sbin/bhyve/virtio.h

EMAIL PREFERENCES
  https://reviews.freebsd.org/settings/panel/emailpreferences/

To: jceel, grehan, trasz
Cc: imp, freebsd-virtualization-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7185.18284.patch
Type: text/x-patch
Size: 16664 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-virtualization/attachments/20160711/2071e3ee/attachment.bin>


More information about the freebsd-virtualization mailing list