mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
On KVM, an SEV-SNP guest opens /dev/sev at VM creation and passes its fd as kvm_sev_cmd.sev_fd. KVM uses it to issue the SNP_LAUNCH_* commands. The open happens after the landlock ruleset is applied, so grant rw access to /dev/sev when the sev_snp platform feature is enabled. Assisted-by: Claude:Opus-4.8 Signed-off-by: Ruben Hakobyan <hruben@meta.com>