ACRN Kernel Parameters¶
Generic Kernel Parameters¶
A number of kernel parameters control the behavior of ACRN-based systems. Some are applicable to the Service VM kernel, others to the User VM kernel, and some are applicable to both.
This section focuses on generic parameters from the Linux kernel which are relevant for configuring or debugging ACRN-based systems.
Parameter |
Used in Service VM or User VM |
Description |
Usage example |
||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Service VM |
A comma-separated list of modules that should not be loaded. Useful to debug or work around issues related to specific modules. |
module_blacklist=dwc3_pci
|
||||||||||||||||||
|
Service VM,User VM |
Disables the code which tests for broken timer IRQ sources. |
no_timer_check
|
||||||||||||||||||
|
Service VM,User VM |
Output console device and options.
|
console=tty0
console=ttyS0
console=hvc0
|
||||||||||||||||||
|
Service VM |
All Kernel messages with a loglevel less than the console loglevel will
be printed to the console. The loglevel can also be changed with
|
loglevel=7
|
||||||||||||||||||
|
User VM |
Ignoring loglevel setting will print all
kernel messages to the console. Useful for debugging.
We also add it as printk module parameter, so users
could change it dynamically, usually by changing
|
ignore_loglevel
|
||||||||||||||||||
|
User VM |
Sets the size of the printk ring buffer, in bytes. n must be a power of two and greater than the minimal size. The minimal size is defined by LOG_BUF_SHIFT kernel config parameter. There is also CONFIG_LOG_CPU_MAX_BUF_SHIFT config parameter that allows to increase the default size depending on the number of CPUs. See init/Kconfig for more details.” |
log_buf_len=16M
|
||||||||||||||||||
|
Service VM,User VM |
The console blank (screen saver) timeout in seconds. Defaults to 600 (10 minutes). A value of 0 disables the blank timer. |
consoleblank=0
|
||||||||||||||||||
|
Service VM,User VM |
Wait (indefinitely) for root device to show up. Useful for devices that are detected asynchronously (e.g. USB and MMC devices). |
rootwait
|
||||||||||||||||||
|
Service VM,User VM |
Define the root filesystem
|
root=/dev/mmcblk0p1
root=/dev/vda2
root=PARTUUID=00112233-4455-6677-8899-AABBCCDDEEFF
|
||||||||||||||||||
|
Service VM,User VM |
Mount root device read/write on boot |
rw
|
||||||||||||||||||
|
User VM |
Disable clocksource stability checks for TSC. Format: <string>, where the only supported value is:
|
tsc=reliable
|
||||||||||||||||||
|
Service VM |
Sets the size of the kernel global memory area for
contiguous memory allocations, and optionally the
placement constraint by the physical address range of
memory allocations. A value of 0 disables CMA
altogether. For more information, see
|
cma=64M@0
|
||||||||||||||||||
|
Service VM |
Sets the guest physical address and size of the dedicated hypervisor
log ring buffer between the hypervisor and Service VM.
A If hypervisor relocation is disabled, verify that
If hypervisor relocation is enabled, reserve the memory below 256MB, since hypervisor could be relocated anywhere between 256MB and 4GB. You should enable ASLR on SOS. This ensures that when guest Linux is relocating kernel image, it will avoid this buffer address. |
hvlog=2M@0xe00000
|
||||||||||||||||||
|
Service VM |
Mark specific memory as reserved.
|
memmap=0x400000$0xa00000
|
||||||||||||||||||
|
Service VM |
Ramoops is an oops/panic logger that writes its logs to RAM before the system crashes. Ramoops uses a predefined memory area to store the dump. See Linux Kernel Ramoops oops/panic logger for details. This buffer should not overlap with hypervisor reserved memory and
guest kernel image. See |
ramoops.mem_address=0xa00000
ramoops.mem_size=0x400000
ramoops.console_size=0x200000
|
||||||||||||||||||
|
Service VM |
Reboot in case of panic The comma-delimited parameters are:
|
reboot_panic=p,w
|
||||||||||||||||||
|
User VM |
Maximum number of processors that an SMP kernel will bring up during boot.
After booting, you can bring up additional plugged CPUs by executing
|
maxcpus=1
|
||||||||||||||||||
nohpet |
User VM |
Don’t use the HPET timer |
nohpet
|
||||||||||||||||||
|
User VM |
Intel IOMMU driver (DMAR) option
|
intel_iommu=off
|
||||||||||||||||||
|
Service VM,User VM |
|
hugepages=10
hugepagesz=1G
|
Note
The hugepages
and hugepagesz
parameters are automatically
taken care of by ACRN config tool. In case user have customized hugepage
settings to satisfy their particular workloads in Service VM, the hugepages
and hugepagesz
parameters could be redefined in GRUB menu to override
the settings from ACRN config tool.