build: add missing dependency features

This makes it possible to run cargo test just for the virtio-devices
crate (as long as either KVM or MSHV is specified).

Signed-off-by: Alyssa Ross <hi@alyssa.is>
This commit is contained in:
Alyssa Ross
2025-07-14 17:17:07 +02:00
committed by Rob Bradford
parent a5cd1b4fbe
commit 01aed9733c
3 changed files with 12 additions and 3 deletions

View File

@@ -16,9 +16,16 @@ kvm = [
"hypervisor/kvm",
"pci/kvm",
"vfio-ioctls/kvm",
"virtio-devices/kvm",
"vm-device/kvm",
]
mshv = ["hypervisor/mshv", "pci/mshv", "vfio-ioctls/mshv", "vm-device/mshv"]
mshv = [
"hypervisor/mshv",
"pci/mshv",
"vfio-ioctls/mshv",
"virtio-devices/mshv",
"vm-device/mshv",
]
pvmemcontrol = ["devices/pvmemcontrol"]
sev_snp = ["arch/sev_snp", "hypervisor/sev_snp", "virtio-devices/sev_snp"]
tdx = ["arch/tdx", "hypervisor/tdx"]