2020-06-16 01:52:23 +08:00
|
|
|
.. _hv-parameters:
|
|
|
|
|
|
|
|
ACRN Hypervisor Parameters
|
|
|
|
##########################
|
|
|
|
|
2021-02-13 08:27:24 +08:00
|
|
|
Generic Hypervisor Parameters
|
2020-06-16 01:52:23 +08:00
|
|
|
*****************************
|
|
|
|
|
|
|
|
The ACRN hypervisor supports the following parameter:
|
|
|
|
|
|
|
|
+-----------------+-----------------------------+----------------------------------------------------------------------------------------+
|
|
|
|
| Parameter | Value | Description |
|
|
|
|
+=================+=============================+========================================================================================+
|
2022-02-24 08:07:02 +08:00
|
|
|
| | disabled | This value disables the serial port completely. |
|
2020-06-16 01:52:23 +08:00
|
|
|
| +-----------------------------+----------------------------------------------------------------------------------------+
|
2022-02-24 08:07:02 +08:00
|
|
|
| ``uart=`` | bdf@<BDF value> | This value sets the serial port PCI BDF (in HEX), for example, ``bdf@0xc1``. |
|
2021-03-12 20:25:16 +08:00
|
|
|
| | | |
|
|
|
|
| | | BDF: Bus, Device, and Function (in HEX) of the serial PCI device. The BDF is packed |
|
|
|
|
| | | into a 16-bit WORD with format (B:8, D:5, F:3). For example, PCI device ``0:18.1`` |
|
2022-02-24 08:07:02 +08:00
|
|
|
| | | becomes ``0xc1``. |
|
2020-06-16 01:52:23 +08:00
|
|
|
| +-----------------------------+----------------------------------------------------------------------------------------+
|
2022-02-24 08:07:02 +08:00
|
|
|
| | port@<port address> | This value sets the serial port PIO address, for example, ``uart=port@0x3F8``. |
|
2021-03-05 21:12:58 +08:00
|
|
|
| +-----------------------------+----------------------------------------------------------------------------------------+
|
2022-02-24 08:07:02 +08:00
|
|
|
| | mmio@<MMIO address> | This value sets the serial port MMIO address, for example, ``uart=mmio@0xfe040000``. |
|
2020-06-16 01:52:23 +08:00
|
|
|
+-----------------+-----------------------------+----------------------------------------------------------------------------------------+
|
|
|
|
|
|
|
|
The Generic hypervisor parameters are specified in the GRUB multiboot/multiboot2 command.
|
|
|
|
For example:
|
|
|
|
|
2020-09-26 07:24:35 +08:00
|
|
|
.. code-block:: none
|
|
|
|
:emphasize-lines: 5
|
2020-06-16 01:52:23 +08:00
|
|
|
|
2020-09-26 07:24:35 +08:00
|
|
|
menuentry 'Boot ACRN hypervisor from multiboot' {
|
|
|
|
insmod part_gpt
|
|
|
|
insmod ext2
|
|
|
|
echo 'Loading ACRN hypervisor ...'
|
2021-03-12 20:25:16 +08:00
|
|
|
multiboot --quirk-modules-after-kernel /boot/acrn.32.out uart=bdf@0xc1
|
2020-09-26 07:24:35 +08:00
|
|
|
module /boot/bzImage Linux_bzImage
|
|
|
|
module /boot/bzImage2 Linux_bzImage2
|
|
|
|
}
|