From ea23c16c5a73cd253b5124c968cc02dac2607326 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 7 May 2024 11:32:46 +0100 Subject: [PATCH] build: Expose and use "sev_snp" feature on virtio-devices Code in this crate is conditional on this feature so it necessary to expose as a new feature and use that feature as a dependency when the feature is enabled on the vmm crate. Signed-off-by: Rob Bradford --- virtio-devices/Cargo.toml | 1 + vmm/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/virtio-devices/Cargo.toml b/virtio-devices/Cargo.toml index 2f0504b74..286835085 100644 --- a/virtio-devices/Cargo.toml +++ b/virtio-devices/Cargo.toml @@ -6,6 +6,7 @@ edition = "2021" [features] default = [] +sev_snp = [] [dependencies] anyhow = "1.0.81" diff --git a/vmm/Cargo.toml b/vmm/Cargo.toml index 118c446c2..f43c1ecb8 100644 --- a/vmm/Cargo.toml +++ b/vmm/Cargo.toml @@ -13,7 +13,7 @@ igvm = ["hex", "dep:igvm", "igvm_defs", "mshv-bindings", "range_map_vec"] io_uring = ["block/io_uring"] kvm = ["hypervisor/kvm", "vfio-ioctls/kvm", "vm-device/kvm", "pci/kvm"] mshv = ["hypervisor/mshv", "vfio-ioctls/mshv", "vm-device/mshv", "pci/mshv"] -sev_snp = ["arch/sev_snp", "hypervisor/sev_snp"] +sev_snp = ["arch/sev_snp", "hypervisor/sev_snp", "virtio-devices/sev_snp"] tdx = ["arch/tdx", "hypervisor/tdx"] tracing = ["tracer/tracing"]