Repository navigation
doc/riscv: detail PV console input path - #37
Merged
Merged
Conversation
Contributor
Author
The input section of the console sequence diagram modeled the keystroke flow as a direct user -> xenconsoled step, which skipped how a character actually reaches the guest ring. Expand it to show the whole path. Signed-off-by: Baptiste Le Duc <baptiste.le-duc@vates.tech>
baptleduc
force-pushed
the
docs/update-pv-console
branch
from
June 25, 2026 08:42
1e65a5e to
bc8366f
Compare
dinhngtu
approved these changes
Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Expands the input section of the RISC-V PV console sequence diagram
(
doc/riscv/xen-console.puml). The previous version modeled a keystroke as asingle
user -> xenconsoledhop, which hid how a character actually travelsfrom the physical UART to the guest input ring.
Changes
dom0 hvc0 ttyanddom0 xl consoleparticipants to the diagram.serial_rx()→__serial_rx(), ring buffer write,VIRQ_CONSOLEVIRQ_CONSOLEevent channel notifies the hardware domainHYPERVISOR_console_io(CONSOLEIO_read)drainsserial_rx_ring/dev/hvc0, read byxl consolestdinxl consolewrites char to the pty slave (/dev/pts/N)xenconsoledpoll()→handle_tty_read()→in[]ringhandle_tty_read(), nothandle_tty_write().xen_wmb()+ explicitin_prodpublish.Testing
Render the diagram to confirm it is valid PlantUML:
Inspect the generated image; verify the input sequence reads end-to-end with
no syntax errors.
PRs dependencies
Depends of #35 which should resolved zizmor fail. Must be merge after it and after the according rebase.
Checklist