message: Create function to detect virtio device
diff: @@ -15,6 +15,8 @@ use drivers::net::NetworkInterface;
  use synch;
  use syscalls::sys_sem_post;
  +#[cfg(target_arch = "x86_64")]
  +use arch::x86_64::kernel::pci;
  #[cfg(target_arch = "x86_64")]
  use arch::x86_64::kernel::apic;
  #[cfg(target_arch = "x86_64")]
  @@ -197,6 +199,17 @@ impl UhyveWrite {
  }
  }
  +fn detect_virtio_device() -> Option<pci::PciAdapter> {
  + for i in 0x100..0x103F {
  + let adapter = pci::get_adapter(0x1AF4, i);
  + match adapter {
  + Some(value) => return adapter,
  + None => {},
  + }
  + }
  + None
  +}
  +
  pub fn init() -> Result<Box<dyn NetworkInterface>, ()> {
  // does uhyve configure the network interface?
  let ip = get_ip();
  