From 43b1bc8f8ff7ff04b054374538ecad4a4525d283 Mon Sep 17 00:00:00 2001 From: Colin Downs-Razouk Date: Thu, 30 Apr 2020 15:48:47 -0700 Subject: devices: irqchip: new irqchip module This new module contains the irqchip trait and it's implementations. The irqchips will work with the new hypervisor crate to abstract the interaction between crosvm and kvm. This just defines the irqchip trait and an empty implementation of the KvmKernelIrqChip. BUG=chromium:1077058 TEST=added test for creating a KvmKernelIrqChip and adding a Vcpu to it Change-Id: Ic1609c965e0a057f5a9d4d74f1cae46edb46dcb4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2197398 Tested-by: kokoro Reviewed-by: Stephen Barber Commit-Queue: Colin Downs-Razouk --- Cargo.lock | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Cargo.lock') diff --git a/Cargo.lock b/Cargo.lock index 88a1881..46e186f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -177,6 +177,7 @@ dependencies = [ "gpu_buffer 0.1.0", "gpu_display 0.1.0", "gpu_renderer 0.1.0", + "hypervisor 0.1.0", "io_jail 0.1.0", "kvm 0.1.0", "kvm_sys 0.1.0", @@ -342,6 +343,15 @@ dependencies = [ "sys_util 0.1.0", ] +[[package]] +name = "hypervisor" +version = "0.1.0" +dependencies = [ + "kvm_sys 0.1.0", + "libc 0.2.44 (registry+https://github.com/rust-lang/crates.io-index)", + "sys_util 0.1.0", +] + [[package]] name = "io_jail" version = "0.1.0" -- cgit 1.4.1