|
3 | 3 |
|
4 | 4 | use std::fmt::{Display, Formatter, Result};
|
5 | 5 |
|
6 |
| -/// Default guest kernel command line: |
7 |
| -/// - `reboot=k` shut down the guest on reboot, instead of well... rebooting; |
8 |
| -/// - `panic=1` on panic, reboot after 1 second; |
9 |
| -/// - `pci=off` do not scan for PCI devices (save boot time); |
10 |
| -/// - `nomodule` disable loadable kernel module support; |
11 |
| -/// - `8250.nr_uarts=0` disable 8250 serial interface; |
12 |
| -/// - `i8042.noaux` do not probe the i8042 controller for an attached mouse (save boot time); |
13 |
| -/// - `i8042.nomux` do not probe i8042 for a multiplexing controller (save boot time); |
14 |
| -/// - `i8042.nopnp` do not use ACPIPnP to discover KBD/AUX controllers (save boot time); |
15 |
| -/// - `i8042.dumbkbd` do not attempt to control kbd state via the i8042 (save boot time). |
16 |
| -//pub const DEFAULT_KERNEL_CMDLINE: &str = "reboot=k panic=1 pci=off nomodule 8250.nr_uarts=0 \ |
17 |
| -// i8042.noaux i8042.nomux i8042.nopnp i8042.dumbkbd"; |
18 |
| - |
19 | 6 | #[cfg(all(target_os = "linux", not(feature = "tee")))]
|
20 | 7 | pub const DEFAULT_KERNEL_CMDLINE: &str = "reboot=k panic=-1 panic_print=0 nomodule console=hvc0 \
|
21 | 8 | rootfstype=virtiofs rw quiet no-kvmapf";
|
22 |
| - |
23 | 9 | #[cfg(feature = "amd-sev")]
|
24 | 10 | pub const DEFAULT_KERNEL_CMDLINE: &str = "reboot=k panic=-1 panic_print=0 nomodule console=hvc0 \
|
25 | 11 | root=/dev/vda rw quiet no-kvmapf";
|
26 | 12 | #[cfg(target_os = "macos")]
|
27 | 13 | pub const DEFAULT_KERNEL_CMDLINE: &str = "reboot=k panic=-1 panic_print=0 nomodule console=hvc0 \
|
28 | 14 | rootfstype=virtiofs rw quiet no-kvmapf";
|
29 | 15 |
|
30 |
| -//pub const DEFAULT_KERNEL_CMDLINE: &str = "reboot=k panic=1 pci=off nomodule earlyprintk=ttyS0 \ |
31 |
| -// console=ttyS0"; |
32 |
| - |
33 | 16 | /// Strongly typed data structure used to configure the boot source of the
|
34 | 17 | /// microvm.
|
35 | 18 | #[derive(Debug, Default, Eq, PartialEq)]
|
|
0 commit comments