From 57ea412c64336f2ad4392a4efbc324b251f5b154 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 4 Apr 2023 15:11:19 +0000 Subject: [PATCH] hypervisor: make buildable independently It was not possible to build just hypervisor with Cargo's -p flag, because it was not properly specifying the features it requires from vfio-ioctls. Signed-off-by: Alyssa Ross --- hypervisor/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hypervisor/Cargo.toml b/hypervisor/Cargo.toml index 689f11879..c40b73f4f 100644 --- a/hypervisor/Cargo.toml +++ b/hypervisor/Cargo.toml @@ -6,8 +6,8 @@ edition = "2021" license = "Apache-2.0 OR BSD-3-Clause" [features] -kvm = ["kvm-ioctls", "kvm-bindings"] -mshv = ["mshv-ioctls", "mshv-bindings"] +kvm = ["kvm-ioctls", "kvm-bindings", "vfio-ioctls/kvm"] +mshv = ["mshv-ioctls", "mshv-bindings", "vfio-ioctls/mshv"] tdx = [] [dependencies]