Repository navigation
Conversation
The cocoonstack Cloud Hypervisor dev build lets the guest assign PCI BAR addresses. rust-hypervisor-firmware allocates virtio-blk BARs before it reads the disk, has no allocation window on x86_64 PVH, and panics on the zero BAR, so every firmware boot hangs after "booted". EDK2 boots Windows and Linux cloud images under both the old and the new build. cocoon-check now installs and pins EDK2 ch-1e1b96f126 CLOUDHV.fd on x86_64 and reports any other CLOUDHV.fd as FAIL on both architectures. x86_64 OCI direct boot uses no firmware and is unaffected.
This branch has not been deployed
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.
Why
The cocoonstack Cloud Hypervisor
devbuild now carries upstream #9529, which lets the guest assign PCI BAR addresses. rust-hypervisor-firmware allocates the virtio-blk BARs before it reads the disk (src/main.rsallocate_bars), has no allocation window on x86_64 PVH (pci_bar_memory()isNoneoutside the FDT path), and panics on the zero BAR (src/pci.rs: "Zero BAR address and no allocation available to allocate from"). Every firmware boot on x86_64 then hangs right afterevent = booted, whatever the guest OS. Until this lands,cocoon-check --upgradeon x86_64 installs the new CH next to that firmware.x86_64 OCI images use direct kernel boot without firmware and are not affected; neither is Firecracker.
What
doctor/check.sh: x86_64 installs EDK2ch-1e1b96f126CLOUDHV.fd(sha2569fb511fc…60218, pinned like the aarch64 build);FW_REFand the rust-hypervisor-firmware download are gone; any otherCLOUDHV.fdis FAIL on both architectures (aarch64 already did this).known-issues.md: the x86_64 cloud image UEFI compatibility entry (Ubuntu 24.04+, Debian 13+) and the Windows ACPI power-button entry are marked fixed by EDK2.Evidence
CLOUDHV.fddownloaded from thech-1e1b96f126release hashes to the pinned value.shellcheck -S warning doctor/check.sh: clean.doctor/check.shinubuntu:24.04containers, linux/amd64 and linux/arm64, with a fresh root:[FAIL] CLOUDHV.fd (140616 bytes) … is not EDK2 ch-1e1b96f126 — run --upgrade(aarch64:… is not EDK2 ch-97eeb7b09)--upgrade:[FIXED] EDK2 ch-1e1b96f126 CLOUDHV.fd -> …/firmware/CLOUDHV.fd, then[PASS] CLOUDHV.fd (4194304 bytes); aarch64 unchanged (CLOUDHV_EFI.fd, 3145728 bytes, PASS)Pending, will be added here: a hardware round through the cocoon CLI on this branch (Windows and Linux cloud images, Windows cold-boot ACPI stop, watchdog device, nested virtualization), and one Linux cloud image boot with rust-hypervisor-firmware on the new CH.
Rollout
Every
<root>/firmware/CLOUDHV.fdthat Cloud Hypervisor can read must be EDK2 before a node takes the new CH. Running VMs and existing snapshots need no change: the firmware is read again only on a guest reboot or a cold boot.