Page MenuHomeFreeBSD

add low level console support to virtio_console driver
AbandonedPublic

Authored by avg on Nov 30 2016, 2:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 29, 10:36 AM
Unknown Object (File)
Mar 6 2024, 8:43 PM
Unknown Object (File)
Dec 20 2023, 12:27 AM
Unknown Object (File)
Oct 25 2023, 4:50 PM
Unknown Object (File)
Jun 15 2023, 4:03 PM
Unknown Object (File)
Mar 6 2023, 1:34 PM
Unknown Object (File)
Feb 18 2023, 7:59 PM
Unknown Object (File)
Jan 13 2023, 8:03 AM
Subscribers

Details

Reviewers
bryanv
jceel
Summary

This is NOT finished code.
This is an invitation for a discussion and colaboration.
I am not even sure if this functionality is really useful given that virtio
device drivers are attached rather late during boot.
Anyway, the code mostly works, I was able to successfully interact with ddb
using cu.

There is a bug with vtcon_cnputc() getting stuck in virtio poll during shutdown
if a console port is active.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 6100
Build 6360: arc lint + arc unit

Event Timeline

avg retitled this revision from to add low level console support to virtio_console driver.
avg updated this object.
avg edited the test plan for this revision. (Show Details)
avg added reviewers: bryanv, jceel.

I'm not against this idea, but, yes, when I first wrote virtio_console I didn't implement this because I didn't consider it very useful.

There might be some merit in implementing guest side of emergency write feature - virtio spec says that emergency writes are possible even before device is initialized or even reset, and emergency write port resides inside PCI config space, making it easy to write to it from loader(8) or during kernel early initialization.

In D8680#179876, @jceel wrote:

emergency writes are possible even before device is initialized or even reset

That sounds compelling to me

This was just a toy project, not going to proceed further.
The emergency write feature does sound very interesting.