Repository navigation
Conversation
Port the kernel and userspace backends into the monorepo while preserving the one-page bridge ABI. Coalesce repeated queue kicks, release the bridge lock while waiting, and deliver MSI-X when the matching request completes. Validated on AArch64 QEMU/GICv3 in kernel, userspace, and mixed backend modes.
Bind bridge requests to a zone instance and validate complete DMA ranges before either backend accesses guest RAM. Negotiate bridge protocol v2 before registration. Drain admitted backend requests before zone teardown, reclaim PCI device slots and block image handles, and ignore MSI-X completions on stopped or shutting-down vCPUs. Validated on AArch64 QEMU/GICv3 in kernel, userspace, and mixed modes with six lifecycle cycles per mode, RAM range checks, and a userspace guest power-off scenario.
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
Motivation
The existing VirtIO PCI frontend needs matching RNG and block backends in the monorepo. The frontend and monorepo import landed in #287 (#287) and #429 (#429).
During integration testing, sustained guest I/O filled the request ring. The frontend held the bridge lock while waiting for a free slot, and the backend needed that lock to report completions. The updated wait and completion paths let the backend make progress under queue pressure.
Compatibility and rollout
Verification
The following commands passed on the tested revision. AARCH64_CROSS is the Arm GNU 10.3.1 cross-compiler prefix and LINUX_54 points to the configured AArch64 Linux 5.4 source tree used to build the module.
cargo fmt --all -- --check
make BID=aarch64/qemu-gicv3 -j4
make BID=aarch64/qemu-gicv3 clippy
make -C hvisor-tool/tools ARCH=arm64 CROSS_COMPILE="$AARCH64_CROSS" LOG=LOG_INFO -j4 all
make -C hvisor-tool/driver ARCH=arm64 CROSS_COMPILE="$AARCH64_CROSS" KDIR="$LINUX_54" -j4 all
A local QEMU AArch64/GICv3 harness used one non-root Linux zone with two vCPUs, identity-mapped RAM, an MMIO console, and a VirtIO PCI block root disk. It loaded the module with virtio_pci_blk_image_path, started the daemon with hvisor virtio start virtio.json, and checked zone state with hvisor zone list before and after shutdown. The harness tested these module settings.
Risks and limitations