From 3937e03c023beaf5df24bad98af69212009560a3 Mon Sep 17 00:00:00 2001 From: Muminul Islam Date: Mon, 12 Jul 2021 14:40:50 -0700 Subject: [PATCH] vmm, virtio-devices: Extend mshv feature There are some seccomp rules needed for MSHV in virtio-devices but not for KVM. We only want to add those rules based on MSHV feature guard. Signed-off-by: Muminul Islam --- 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 2cec255b7..9d666687f 100644 --- a/virtio-devices/Cargo.toml +++ b/virtio-devices/Cargo.toml @@ -7,6 +7,7 @@ edition = "2018" [features] default = [] io_uring = ["block_util/io_uring"] +mshv = [] [dependencies] anyhow = "1.0" diff --git a/vmm/Cargo.toml b/vmm/Cargo.toml index a7b1f005b..8da92a3e2 100644 --- a/vmm/Cargo.toml +++ b/vmm/Cargo.toml @@ -10,7 +10,7 @@ acpi = ["acpi_tables","devices/acpi", "arch/acpi"] cmos = ["devices/cmos"] fwdebug = ["devices/fwdebug"] kvm = ["hypervisor/kvm", "vfio-ioctls/kvm", "vm-device/kvm"] -mshv = ["hypervisor/mshv"] +mshv = ["hypervisor/mshv", "virtio-devices/mshv"] io_uring = ["virtio-devices/io_uring"] tdx = ["arch/tdx", "hypervisor/tdx"]