arch: Enable build with kvm feature

Currently `arch` crate cannot be built, by specifying `hypervisor/kvm`
to turn on the features required for its dependency - `hypervisor` crate
to build. Thus enabling `arch` crate to be built with command:

```sh
cargo build -p arch --features kvm
```

Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
This commit is contained in:
Ruoqing He 2024-10-12 22:11:23 +08:00 committed by Rob Bradford
parent ac97690848
commit 79ccb25f78

View File

@ -6,7 +6,7 @@ version = "0.1.0"
[features]
default = []
kvm = []
kvm = ["hypervisor/kvm"]
sev_snp = []
tdx = []