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.
Intel GVT-g (AcrnGT) Parameters¶
This table gives an overview of all the Intel GVT-g parameters that are available to tweak the behavior of the graphics sharing (Intel GVT-g, aka AcrnGT) capabilities in ACRN. The GVT-g-kernel-options section below has more details on a few select parameters.
Parameter |
Used in Service VM or User VM |
Description |
Usage example |
---|---|---|---|
i915.enable_gvt |
Service VM |
Enable Intel GVT-g graphics virtualization support in the host |
i915.enable_gvt=1
|
i915.nuclear_pageflip |
Service VM,User VM |
Force enable atomic functionality on platforms that don’t have full support yet. |
i915.nuclear_pageflip=1
|
i915.enable_guc |
Service VM |
Enable GuC load for HuC load. |
i915.enable_guc=0x02
|
i915.enable_guc |
User VM |
Disable GuC |
i915.enable_guc=0
|
i915.enable_hangcheck |
User VM |
Disable check GPU activity for detecting hangs. |
i915.enable_hangcheck=0
|
i915.enable_fbc |
User VM |
Enable frame buffer compression for power savings |
i915.enable_fbc=1
|
GVT-g (AcrnGT) Kernel Options Details¶
This section provides additional information and details on the kernel command line options that are related to AcrnGT.
i915.enable_gvt¶
This option enables support for Intel GVT-g graphics virtualization
support in the host. By default, it’s not enabled, so we need to add
i915.enable_gvt=1
in the Service VM kernel command line. This is a Service
OS only parameter, and cannot be enabled in the User VM.
i915.enable_hangcheck¶
This parameter enable detection of a GPU hang. When enabled, the i915 will start a timer to check if the workload is completed in a specific time. If not, i915 will treat it as a GPU hang and trigger a GPU reset.
In AcrnGT, the workload in Service VM and User VM can be set to different
priorities. If Service VM is assigned a higher priority than the User VM, the User VM’s
workload might not be able to run on the HW on time. This may lead to
the guest i915 triggering a hangcheck and lead to a guest GPU reset.
This reset is unnecessary so we use i915.enable_hangcheck=0
to
disable this timeout check and prevent guest from triggering unnecessary
GPU resets.