From afce21ba59b30059b5222a1622655a8efd310ede Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Mon, 22 Feb 2021 15:45:23 +0000 Subject: [PATCH] arch: Run interrupt tests The interrupt tests were not being run as they were erroneously under a feature guard that does not exist in arch. Signed-off-by: Rob Bradford --- arch/src/x86_64/interrupts.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/src/x86_64/interrupts.rs b/arch/src/x86_64/interrupts.rs index 73a00f3f5..44c2ccfc3 100644 --- a/arch/src/x86_64/interrupts.rs +++ b/arch/src/x86_64/interrupts.rs @@ -5,15 +5,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE-BSD-3-Clause file. +use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt}; +use hypervisor::x86_64::LapicState; use std::io::Cursor; use std::mem; use std::result; use std::sync::Arc; -use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt}; - -use hypervisor::x86_64::LapicState; - #[derive(Debug)] pub enum Error { GetLapic(anyhow::Error), @@ -82,7 +80,6 @@ pub fn set_lint(vcpu: &Arc) -> Result<()> { } #[cfg(test)] -#[cfg(feature = "kvm")] mod tests { use super::*;