From ba78e331c6854b5f09b8f61aad94133080cb5f44 Mon Sep 17 00:00:00 2001 From: Ruoqing He Date: Wed, 4 Dec 2024 09:54:31 +0800 Subject: [PATCH] devices: Enable build with `kvm` feature Currently `devices` module cannot be solely built, by specifying `arch/kvm` to turn on the features required for its dependency - `arch` crate to build. Thus enabling `devices` crate to be built and tested with command: ```sh cargo build -p devices --features kvm ``` Signed-off-by: Ruoqing He --- devices/Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/devices/Cargo.toml b/devices/Cargo.toml index 650ff734e..bc8ab5039 100644 --- a/devices/Cargo.toml +++ b/devices/Cargo.toml @@ -34,4 +34,5 @@ arch = { path = "../arch" } [features] default = [] +kvm = ["arch/kvm"] pvmemcontrol = []