runtime-rs: CH guest memory is shared unconditionally, unlike the Go runtime
Description of problem
convert.rs (src/runtime-rs/crates/hypervisor/ch-config/src/) hardcodes shared: true on MemoryConfig for every non-template VM, under a comment reading // Required. The Go runtime does not: clh.go:641 (src/runtime/virtcontainers/) sets it false when SharedFS == NoSharedFS && !HugePages.
Start a sandbox with shared_fs = "none" and no hugepages under runtime-rs with Cloud Hypervisor.
Expected result
shared is false, as the Go runtime asks for the same sandbox.
Actual result
shared is true, so the VMM backs the whole guest RAM with a memfd mapping nothing uses. On a nested-virtualization host the sandbox stalls at its first virtio-blk transfer.
Further information
4.1.0 and main, read 2026-09-21. Cloud Hypervisor v51.1.
Fix: set shared from shared_fs.is_some() || enable_hugepages, the Go predicate. The template path keeps its own shared: true.
Source: kata-containers/kata-containers