From c2c813599df36bddd0837627c79606f9d737f28b Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 10 May 2022 14:35:21 +0100 Subject: [PATCH] vmm: Don't use kvm_ioctls directly The IoEventAddress is re-exported through the crate at the top-level. Signed-off-by: Rob Bradford --- vmm/src/device_manager.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/vmm/src/device_manager.rs b/vmm/src/device_manager.rs index 01eb7a21f..a05fc7b22 100644 --- a/vmm/src/device_manager.rs +++ b/vmm/src/device_manager.rs @@ -56,11 +56,7 @@ use devices::legacy::Serial; use devices::{ interrupt_controller, interrupt_controller::InterruptController, AcpiNotificationFlags, }; -#[cfg(feature = "kvm")] -use hypervisor::kvm_ioctls::*; -use hypervisor::DeviceFd; -#[cfg(feature = "mshv")] -use hypervisor::IoEventAddress; +use hypervisor::{DeviceFd, IoEventAddress}; use libc::{ cfmakeraw, isatty, tcgetattr, tcsetattr, termios, MAP_NORESERVE, MAP_PRIVATE, MAP_SHARED, O_TMPFILE, PROT_READ, PROT_WRITE, TCSANOW,