From 6fe08fa36338ee6339dd4748173865763bfc7b31 Mon Sep 17 00:00:00 2001 From: Udam Saini Date: Thu, 30 Apr 2020 13:46:40 -0700 Subject: Adding hypervisor crate to abstract out Kvm implementation This is a separate hypervisor crate for interacting with Kvm in an abstract manner. The intention is to not leak the internals of kvm with its specific calls in various places in the codebase. Currently, this just creates an initial structure for adding various implementations over time. In addition, a SafeDescriptor class is added, that wraps a raw file descriptor safely, without needing to wrap it in the rust file class. The intention is to use this for non file raw descriptors. BUG=chromium:1077058 TEST=added a basic kvm test that creates a Kvm struct Change-Id: I4229203902e480b52435cde12bf0d25a322c71be Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2174756 Commit-Queue: Udam Saini Tested-by: kokoro Reviewed-by: Zach Reizner Reviewed-by: Dylan Reid --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 66a616a..3fdad6b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,6 +27,7 @@ exclude = [ "sys_util", "syscall_defines", "tempfile", + "hypervisor" ] [features] -- cgit 1.4.1