mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 10:10:41 +00:00
crosvm: Rename linux mod to platform.
Very small renaming to generify the mod. BUG=b:159741216 TEST=./build_test Change-Id: Iba156b36ba0a1b2da9518eae4af6cd9cb7ba71ab Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2477735 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Michael Hoyle <mikehoyle@google.com>
This commit is contained in:
parent
c7ae4b7890
commit
e47a500f52
3 changed files with 6 additions and 5 deletions
|
@ -6,7 +6,8 @@
|
|||
//! configs.
|
||||
|
||||
pub mod argument;
|
||||
pub mod linux;
|
||||
#[path = "linux.rs"]
|
||||
pub mod platform;
|
||||
#[cfg(feature = "plugin")]
|
||||
pub mod plugin;
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ use base::{
|
|||
};
|
||||
use crosvm::{
|
||||
argument::{self, print_help, set_arguments, Argument},
|
||||
linux, BindMount, Config, DiskOption, Executable, GidMap, SharedDir, TouchDeviceOption,
|
||||
platform, BindMount, Config, DiskOption, Executable, GidMap, SharedDir, TouchDeviceOption,
|
||||
};
|
||||
#[cfg(feature = "gpu")]
|
||||
use devices::virtio::gpu::{GpuMode, GpuParameters};
|
||||
|
@ -1604,7 +1604,7 @@ writeback=BOOL - Indicates whether the VM can use writeback caching (default: fa
|
|||
}
|
||||
}
|
||||
}
|
||||
Ok(()) => match linux::run_config(cfg) {
|
||||
Ok(()) => match platform::run_config(cfg) {
|
||||
Ok(_) => {
|
||||
info!("crosvm has exited normally");
|
||||
Ok(())
|
||||
|
|
|
@ -15,7 +15,7 @@ use libc::{cpu_set_t, sched_getaffinity};
|
|||
|
||||
use arch::{set_default_serial_parameters, SerialHardware, SerialParameters, SerialType};
|
||||
use base::syslog;
|
||||
use crosvm::{linux, Config, Executable};
|
||||
use crosvm::{platform, Config, Executable};
|
||||
|
||||
const CHROOT_KERNEL_PATH: &str = "/mnt/host/source/src/third_party/kernel/v4.19/";
|
||||
const CONTAINER_VM_DEFCONFIG: &str = "arch/x86/configs/chromiumos-container-vm-x86_64_defconfig";
|
||||
|
@ -243,6 +243,6 @@ fn boot() {
|
|||
set_default_serial_parameters(&mut c.serial_parameters);
|
||||
c.executable_path = Some(Executable::Kernel(kernel_path));
|
||||
|
||||
let r = linux::run_config(c);
|
||||
let r = platform::run_config(c);
|
||||
r.expect("failed to run linux");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue