mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-02 11:35:46 +00:00
vmm: Don't use kvm_ioctls directly
The IoEventAddress is re-exported through the crate at the top-level. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
3c0817a1b7
commit
c2c813599d
@ -56,11 +56,7 @@ use devices::legacy::Serial;
|
|||||||
use devices::{
|
use devices::{
|
||||||
interrupt_controller, interrupt_controller::InterruptController, AcpiNotificationFlags,
|
interrupt_controller, interrupt_controller::InterruptController, AcpiNotificationFlags,
|
||||||
};
|
};
|
||||||
#[cfg(feature = "kvm")]
|
use hypervisor::{DeviceFd, IoEventAddress};
|
||||||
use hypervisor::kvm_ioctls::*;
|
|
||||||
use hypervisor::DeviceFd;
|
|
||||||
#[cfg(feature = "mshv")]
|
|
||||||
use hypervisor::IoEventAddress;
|
|
||||||
use libc::{
|
use libc::{
|
||||||
cfmakeraw, isatty, tcgetattr, tcsetattr, termios, MAP_NORESERVE, MAP_PRIVATE, MAP_SHARED,
|
cfmakeraw, isatty, tcgetattr, tcsetattr, termios, MAP_NORESERVE, MAP_PRIVATE, MAP_SHARED,
|
||||||
O_TMPFILE, PROT_READ, PROT_WRITE, TCSANOW,
|
O_TMPFILE, PROT_READ, PROT_WRITE, TCSANOW,
|
||||||
|
Loading…
Reference in New Issue
Block a user