diff options
author | Daniel Verkamp <dverkamp@chromium.org> | 2018-10-05 11:40:59 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-10-12 23:07:16 -0700 |
commit | 56f283b297013a44e2f7d12c7a75e2267615c7f5 (patch) | |
tree | 57e35ee28119d718bb7b7c41f853d235b1ddcb96 /arch | |
parent | ed31137fd027dcc53321fd946c6ead5a1726cf05 (diff) | |
download | crosvm-56f283b297013a44e2f7d12c7a75e2267615c7f5.tar crosvm-56f283b297013a44e2f7d12c7a75e2267615c7f5.tar.gz crosvm-56f283b297013a44e2f7d12c7a75e2267615c7f5.tar.bz2 crosvm-56f283b297013a44e2f7d12c7a75e2267615c7f5.tar.lz crosvm-56f283b297013a44e2f7d12c7a75e2267615c7f5.tar.xz crosvm-56f283b297013a44e2f7d12c7a75e2267615c7f5.tar.zst crosvm-56f283b297013a44e2f7d12c7a75e2267615c7f5.zip |
Revert "Revert "linux: Convert all virtio devices to PCI""
This reverts commit c8986f14a8dd9f256d6faed55996d955b50ff923. Re-land the virtio PCI conversion after the preceding fixes. BUG=chromium:854766 TEST=Boot crosvm on nami and kevin Change-Id: I3699e3ed1a45cecc99c51e352d0cf0c32bc4116f Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1265862 Reviewed-by: Dylan Reid <dgreid@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/src/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/src/lib.rs b/arch/src/lib.rs index 3ee805e..c56b6f0 100644 --- a/arch/src/lib.rs +++ b/arch/src/lib.rs @@ -30,7 +30,6 @@ pub type Result<T> = result::Result<T, Box<std::error::Error>>; /// Holds the pieces needed to build a VM. Passed to `build_vm` in the `LinuxArch` trait below to /// create a `RunnableLinuxVm`. pub struct VmComponents { - pub pci_devices: Vec<(Box<PciDevice + 'static>, Minijail)>, pub memory_mb: u64, pub vcpu_count: u32, pub kernel_image: File, @@ -68,7 +67,7 @@ pub trait LinuxArch { /// * `virtio_devs` - Function to generate a list of virtio devices. fn build_vm<F>(components: VmComponents, virtio_devs: F) -> Result<RunnableLinuxVm> where - F: FnOnce(&GuestMemory, &EventFd) -> Result<Vec<VirtioDeviceStub>>; + F: FnOnce(&GuestMemory, &EventFd) -> Result<Vec<(Box<PciDevice + 'static>, Minijail)>>; } /// Errors for device manager. |