Skip to content

Doorbell - #42

Draft
yhdengh wants to merge 1 commit into
mainfrom
doorbell
Draft

yhdengh wants to merge 1 commit into
mainfrom
doorbell

Conversation

@yhdengh

@yhdengh yhdengh commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Add DoorBell/DoorBellWaiter for allowing one end of the bidirectional pipe to notify the other end on new readable content and new writable space in the pipe.

  • In the VM ==> Host direction, DoorBell::ring is a write to an MMIO address, and DoorBellWaiter is a wrapper around a KVM_IOEVENTFD.
  • In the Host ==> VM direction, DoorBell::ring is a write to a KVM_IRQFD. There is no DoorBellWaiter as the interrupts will be handled by kthread logic.
    * This PR also updates the github action to run with just

Comment thread .github/workflows/compile.yml Outdated
Comment thread kernel/src/interrupts.rs Outdated
@keithw
keithw force-pushed the doorbell branch 2 times, most recently from f8b67f0 to 8030493 Compare August 26, 2026 09:48
@keithw
keithw changed the base branch from main to fix-more-clippy August 26, 2026 09:49
Base automatically changed from fix-more-clippy to main August 27, 2026 01:51
@keithw
keithw removed this pull request from stack #62 September 15, 2026 00:48
@keithw

keithw commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Moving to a draft because I think this relies on the timer interrupt firing to "unstick" things. It would be good to make sure this is fully event-driven and that the tests succeed purely from the doorbell events.

@keithw
keithw marked this pull request as draft September 15, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants