mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
@@ -84,7 +84,8 @@ You can specify the following information in a scenario configuration:
|
||||
- Settings of virtual devices, such as virtual UARTs.
|
||||
|
||||
You need a scenario configuration file to build an ACRN hypervisor. The
|
||||
build process uses the file to build a hypervisor that can initialize its capabilities and set up the VMs at runtime.
|
||||
build process uses the file to build a hypervisor that can initialize its
|
||||
capabilities and set up the VMs at runtime.
|
||||
|
||||
The scenario configuration defines User VMs as follows:
|
||||
|
||||
@@ -106,7 +107,8 @@ post-launched User VMs. The file defines certain attributes and
|
||||
resources of the post-launched VMs specified in the scenario configuration
|
||||
file. We call these settings "dynamic" because they are used at runtime.
|
||||
|
||||
You need a launch configuration file to generate a launch script (shell script) for each post-launched User VM. The launch script invokes the
|
||||
You need a launch configuration file to generate a launch script (shell script)
|
||||
for each post-launched User VM. The launch script invokes the
|
||||
Service VM's :ref:`Device Model <hld-devicemodel>` ``acrn-dm`` to create
|
||||
the VM. Unlike board and scenario configurations used at build time or by
|
||||
ACRN hypervisor, launch configurations are used dynamically in the Service VM.
|
||||
@@ -122,18 +124,24 @@ and edit configuration data. The toolset consists of the following:
|
||||
* :ref:`Board inspector tool <board_inspector_tool>`
|
||||
* :ref:`ACRN configurator tool <acrn_configurator_tool>`
|
||||
|
||||
As introduced in :ref:`overview_dev`, configuration takes place at Steps 3 and 4 in the overall development process:
|
||||
As introduced in :ref:`overview_dev`, configuration takes place at
|
||||
:ref:`overview_dev_board_config` and :ref:`overview_dev_config_editor` in
|
||||
the overall development process:
|
||||
|
||||
.. image:: ../getting-started/images/overview_flow.png
|
||||
|
||||
ACRN source also includes makefile targets to aid customization. See :ref:`hypervisor-make-options`.
|
||||
ACRN source also includes makefile targets to aid customization. See
|
||||
:ref:`hypervisor-make-options`.
|
||||
|
||||
.. _acrn_config_data:
|
||||
|
||||
ACRN Configuration Data
|
||||
***********************
|
||||
|
||||
The following sections explain the format of the board, scenario, and launch configuration files. Although we recommend using the ACRN configuration toolset to create these files, this reference may be useful for advanced usage and troubleshooting.
|
||||
The following sections explain the format of the board, scenario, and launch
|
||||
configuration files. Although we recommend using the ACRN configuration toolset
|
||||
to create these files, this reference may be useful for advanced usage and
|
||||
troubleshooting.
|
||||
|
||||
ACRN source code offers predefined XMLs in the ``misc/config_tools/data/``
|
||||
directory of the ``acrn-hypervisor`` repo.
|
||||
@@ -153,7 +161,8 @@ The ``board`` attribute defines the board name and must match the
|
||||
configuration file. The file name of the board configuration file
|
||||
(example: ``my_board.xml``) doesn’t affect the board name.
|
||||
|
||||
Board XML files are input to the ACRN configurator tool and the build system, and are not intended for end users to modify.
|
||||
Board XML files are input to the ACRN configurator tool and the build system,
|
||||
and are not intended for end users to modify.
|
||||
|
||||
Scenario XML Format
|
||||
===================
|
||||
@@ -168,7 +177,8 @@ The scenario XML has an ``acrn-config`` root element as well as ``board`` and
|
||||
The ``board`` attribute specifies the board name and must match the ``board``
|
||||
attribute in the board configuration file.
|
||||
|
||||
The ``scenario`` attribute specifies the scenario name, followed by hypervisor and VM settings.
|
||||
The ``scenario`` attribute specifies the scenario name, followed by hypervisor
|
||||
and VM settings.
|
||||
|
||||
See :ref:`scenario-config-options` for a full explanation of available scenario
|
||||
XML elements.
|
||||
|
@@ -45,7 +45,8 @@ overview of what to expect:
|
||||
Generate a Scenario Configuration File and Launch Scripts
|
||||
*********************************************************
|
||||
|
||||
The following steps describe all options in the ACRN configurator for generating a custom scenario configuration file and launch scripts.
|
||||
The following steps describe all options in the ACRN configurator for generating
|
||||
a custom scenario configuration file and launch scripts.
|
||||
|
||||
#. Make sure the development computer is set up and ready to launch the ACRN
|
||||
configurator, according to :ref:`gsg-dev-setup` in the Getting Started Guide.
|
||||
@@ -68,7 +69,7 @@ The following steps describe all options in the ACRN configurator for generating
|
||||
|
||||
#. Start the scenario configuration process by selecting an option from the
|
||||
**Scenario Setting** menu on the top banner of the UI or by importing a
|
||||
scenario configuration file via the **Import XML** button. The 4 options
|
||||
scenario configuration file via the **Import XML** button. The four options
|
||||
are described below:
|
||||
|
||||
* Click **Create a new scenario** from the **Scenario Setting** menu to
|
||||
@@ -131,7 +132,8 @@ The following steps describe all options in the ACRN configurator for generating
|
||||
.. image:: images/err_acrn_configuration.png
|
||||
:align: center
|
||||
|
||||
After the scenario is saved, the page automatically displays the saved scenario configuration file.
|
||||
After the scenario is saved, the page automatically displays the saved
|
||||
scenario configuration file.
|
||||
|
||||
#. To delete a scenario configuration file, click **Export XML** > **Remove**.
|
||||
The configurator will delete the loaded file, even if you change the name of
|
||||
@@ -144,7 +146,7 @@ The following steps describe all options in the ACRN configurator for generating
|
||||
#. Start the launch script configuration process by
|
||||
selecting an option from the **Launch Setting** menu on the top banner of
|
||||
the UI or by importing a launch configuration file via the **Import XML**
|
||||
button. The 4 options are described below:
|
||||
button. The four options are described below:
|
||||
|
||||
* Click **Create a new launch script** from the **Launch Setting** menu to
|
||||
dynamically create a new launch configuration for the current board.
|
||||
|
Reference in New Issue
Block a user