mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-02 11:35:46 +00:00
arch, vmm: Run KVM specific unit tests with kvm feature guard
Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
parent
b339aa6b88
commit
a194dad98c
@ -82,6 +82,7 @@ pub fn set_lint(vcpu: &Arc<dyn hypervisor::Vcpu>) -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
#[cfg(feature = "kvm")]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
|
||||||
extern crate rand;
|
extern crate rand;
|
||||||
|
@ -2222,7 +2222,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_arch = "x86_64")]
|
#[cfg(all(feature = "kvm", target_arch = "x86_64"))]
|
||||||
#[test]
|
#[test]
|
||||||
pub fn test_vm() {
|
pub fn test_vm() {
|
||||||
use hypervisor::VmExit;
|
use hypervisor::VmExit;
|
||||||
|
Loading…
Reference in New Issue
Block a user