Commit graph

4 commits

Author SHA1 Message Date
8bb35bfc0f vm-switch: Switch back to upstream vhost 2026-02-07 21:45:26 +00:00
32330ecd20 Fix vm-switch memory mapping bug causing TX timeouts
Two bugs were causing virtio_net TX timeouts in guest VMs:

1. inject_rx_frame used the source VM's memory mapping to access the
   destination VM's vring descriptors. Fixed by making inject_rx_frame
   a static method that uses the vring's own internal memory via a new
   memory() accessor in VringState.

2. handle_event called read_kick() redundantly after the event loop
   already consumed the eventfd, potentially blocking on a drained fd.

We temporarily use a local vnet library for debugging.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-07 21:25:33 +00:00
Thomas Leonard
9d3cdb3242 Convert to flake 2022-11-02 09:51:50 +00:00
Thomas Leonard
648956e393 Initial import 2022-05-23 12:26:58 +01:00