Skip to content

Commit e1e2ed8

Browse files
committed
doc: update release_3.0 with changes from master
Signed-off-by: David B. Kinder <[email protected]>
1 parent cfeb7b7 commit e1e2ed8

File tree

61 files changed

+1694
-1816
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1694
-1816
lines changed

doc/develop.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ User VM Tutorials
2323
.. toctree::
2424
:maxdepth: 1
2525

26+
tutorials/user_vm_guide
27+
tutorials/using_ubuntu_as_user_vm
2628
tutorials/using_windows_as_user_vm
2729
tutorials/using_xenomai_as_user_vm
2830
tutorials/using_vxworks_as_user_vm
@@ -59,15 +61,13 @@ Advanced Features
5961

6062
tutorials/vuart_configuration
6163
tutorials/rdt_configuration
62-
tutorials/vcat_configuration
6364
tutorials/waag-secure-boot
6465
tutorials/enable_s5
6566
tutorials/cpu_sharing
6667
tutorials/sriov_virtualization
6768
tutorials/gpu-passthru
6869
tutorials/run_kata_containers
6970
tutorials/rtvm_workload_design_guideline
70-
tutorials/setup_openstack_libvirt
7171
tutorials/acrn_on_qemu
7272
tutorials/using_grub
7373
tutorials/acrn-secure-boot-with-grub

doc/developer-guides/hld/hv-vcat.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _hv_vcat:
22

3-
Enable vCAT
4-
###########
3+
Virtual Cache Allocation Technology (vCAT)
4+
###########################################
55

66
vCAT refers to the virtualization of Cache Allocation Technology (CAT), one of the
77
RDT (Resource Director Technology) technologies.
@@ -26,7 +26,7 @@ When assigning cache ways, however, the VM can be given exclusive, shared, or mi
2626
ways depending on particular performance needs. For example, use dedicated cache ways for RTVM, and use
2727
shared cache ways between low priority VMs.
2828

29-
In ACRN, the CAT resources allocated for vCAT VMs are determined in :ref:`vcat_configuration`.
29+
In ACRN, the CAT resources allocated for vCAT VMs are determined in :ref:`rdt_configuration`.
3030

3131
For further details on the RDT, refer to the ACRN RDT high-level design :ref:`hv_rdt`.
3232

doc/getting-started/getting-started.rst

Lines changed: 52 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ To set up the ACRN build environment on the development computer:
135135

136136
.. code-block:: bash
137137
138-
sudo pip3 install lxml xmlschema defusedxml tqdm
138+
sudo pip3 install "elementpath<=2.5.0" lxml xmlschema defusedxml tqdm
139139
140140
#. Create a working directory:
141141

@@ -155,19 +155,19 @@ To set up the ACRN build environment on the development computer:
155155
make clean && make iasl
156156
sudo cp ./generate/unix/bin/iasl /usr/sbin
157157
158-
#. Get the ACRN hypervisor and kernel source code. (Because the ``acrn-kernel`` repo
159-
has a lot of Linux kernel history, you can clone the relevant release branch
160-
with minimal history, as shown here.)
158+
#. Get the ACRN hypervisor and kernel source code.
161159

162160
.. code-block:: bash
163161
164162
cd ~/acrn-work
165163
git clone https://github.com/projectacrn/acrn-hypervisor.git
166164
cd acrn-hypervisor
167-
git checkout release_3.0
165+
git checkout v3.0
168166
169167
cd ..
170-
git clone --depth 1 --branch release_3.0 https://github.com/projectacrn/acrn-kernel.git
168+
git clone https://github.com/projectacrn/acrn-kernel.git
169+
cd acrn-kernel
170+
git checkout acrn-v3.0
171171
172172
.. _gsg-board-setup:
173173

@@ -207,8 +207,8 @@ To set up the target hardware environment:
207207

208208
Example of a target system with cables connected:
209209

210-
.. image:: ./images/gsg_nuc.png
211-
:scale: 25%
210+
.. image:: ./images/gsg_vecow.png
211+
:align: center
212212

213213
Install OS on the Target
214214
============================
@@ -231,12 +231,14 @@ To install Ubuntu 20.04:
231231
updates requires the target to have an Internet connection).
232232

233233
.. image:: ./images/gsg_ubuntu_install_01.png
234+
:align: center
234235

235236
#. Use the check boxes to choose whether you'd like to install Ubuntu alongside
236237
another operating system, or delete your existing operating system and
237238
replace it with Ubuntu:
238239

239240
.. image:: ./images/gsg_ubuntu_install_02.png
241+
:align: center
240242

241243
#. Complete the Ubuntu installation and create a new user account ``acrn`` and
242244
set a password.
@@ -382,8 +384,9 @@ Generate a Board Configuration File
382384
Generate a Scenario Configuration File and Launch Script
383385
********************************************************
384386

385-
In this step, you will use the **ACRN Configurator** to generate a scenario
386-
configuration file and launch script.
387+
In this step, you will download, install, and use the `ACRN Configurator
388+
<https://github.com/projectacrn/acrn-hypervisor/releases/download/v3.0/acrn-configurator-3.0.deb>`__
389+
to generate a scenario configuration file and launch script.
387390

388391
A **scenario configuration file** is an XML file that holds the parameters of
389392
a specific ACRN configuration, such as the number of VMs that can be run,
@@ -392,11 +395,26 @@ their attributes, and the resources they have access to.
392395
A **launch script** is a shell script that is used to configure and create a
393396
post-launched User VM. Each User VM has its own launch script.
394397

395-
#. On the development computer, install the ACRN Configurator:
398+
#. On the development computer, download and install the ACRN Configurator
399+
Debian package:
400+
401+
.. code-block:: bash
402+
403+
cd ~/acrn-work
404+
wget https://github.com/projectacrn/acrn-hypervisor/releases/download/v3.0/acrn-configurator-3.0.deb
405+
406+
If you already have a previous version of the acrn-configurator installed,
407+
you should first remove it:
408+
409+
.. code-block:: bash
410+
411+
sudo apt purge acrn-configurator
412+
413+
Then you can install this new version:
396414

397415
.. code-block:: bash
398416
399-
sudo apt install -y ~/acrn-work/acrn-hypervisor/build/acrn-configurator_*_amd64.deb # TODO update file path
417+
sudo apt install -y ./acrn-configurator-3.0.deb
400418
401419
#. Launch the ACRN Configurator:
402420

@@ -475,7 +493,7 @@ post-launched User VM. Each User VM has its own launch script.
475493
#. Click the **VM1 Post-launched > Basic Parameters** tab and change the VM
476494
name to ``POST_STD_VM1`` for this example.
477495

478-
#. Confirm that the **OS type** is ``Standard``. In the previous step,
496+
#. Confirm that the **VM type** is ``Standard``. In the previous step,
479497
``STD`` in the VM name is short for Standard.
480498

481499
#. Scroll down to **Memory size (MB)** and change the value to ``1024``. For
@@ -485,6 +503,10 @@ post-launched User VM. Each User VM has its own launch script.
485503
#. For **Physical CPU affinity**, select pCPU ID ``0``, then click **+** and
486504
select pCPU ID ``1`` to affine the VM to CPU cores 0 and 1.
487505

506+
#. For **Virtio console device**, click **+** to add a device and keep the
507+
default options. This parameter specifies the console that you will use to
508+
log in to the User VM later in this guide.
509+
488510
#. For **Virtio block device**, click **+** and enter
489511
``~/acrn-work/ubuntu-20.04.4-desktop-amd64.iso``. This parameter
490512
specifies the VM's OS image and its location on the target system. Later
@@ -531,10 +553,11 @@ Build ACRN
531553
532554
cd ./build
533555
ls *.deb
534-
acrn-my_board-shared-2.7.deb # TODO update file name
556+
acrn-my_board-MyConfiguration*.deb
535557
536558
The Debian package contains the ACRN hypervisor and tools to ease installing
537-
ACRN on the target.
559+
ACRN on the target. The Debian file name contains the board name (``my_board``)
560+
and the working folder name (``MyConfiguration``).
538561

539562
#. Build the ACRN kernel for the Service VM:
540563

@@ -564,10 +587,10 @@ Build ACRN
564587
565588
cd ..
566589
ls *.deb
567-
linux-headers-5.10.78-acrn-service-vm_5.10.78-acrn-service-vm-1_amd64.deb
568-
linux-image-5.10.78-acrn-service-vm_5.10.78-acrn-service-vm-1_amd64.deb
569-
linux-image-5.10.78-acrn-service-vm-dbg_5.10.78-acrn-service-vm-1_amd64.deb
570-
linux-libc-dev_5.10.78-acrn-service-vm-1_amd64.deb
590+
linux-headers-5.10.115-acrn-service-vm_5.10.115-acrn-service-vm-1_amd64.deb
591+
linux-image-5.10.115-acrn-service-vm_5.10.115-acrn-service-vm-1_amd64.deb
592+
linux-image-5.10.115-acrn-service-vm-dbg_5.10.115-acrn-service-vm-1_amd64.deb
593+
linux-libc-dev_5.10.115-acrn-service-vm-1_amd64.deb
571594
572595
#. Copy all the necessary files generated on the development computer to the
573596
target system by USB disk as follows:
@@ -577,9 +600,9 @@ Build ACRN
577600
.. code-block:: bash
578601
579602
disk="/media/$USER/"$(ls /media/$USER)
580-
cp ~/acrn-work/acrn-hypervisor/build/acrn-my_board-shared-2.7.deb "$disk"/ # TODO update file name
603+
cp ~/acrn-work/acrn-hypervisor/build/acrn-my_board-MyConfiguration*.deb "$disk"/
581604
cp ~/acrn-work/*acrn-service-vm*.deb "$disk"/
582-
cp ~/acrn-work/my_board/output/launch_user_vm_id3.sh "$disk"/
605+
cp ~/acrn-work/MyConfiguration/launch_user_vm_id1.sh "$disk"/
583606
cp ~/acrn-work/acpica-unix-20210105/generate/unix/bin/iasl "$disk"/
584607
sync && sudo umount "$disk"
585608
@@ -592,9 +615,9 @@ Build ACRN
592615
.. code-block:: bash
593616
594617
disk="/media/$USER/"$(ls /media/$USER)
595-
cp "$disk"/acrn-my_board-shared-2.7.deb ~/acrn-work # TODO update file name
618+
cp "$disk"/acrn-my_board-MyConfiguration*.deb ~/acrn-work
596619
cp "$disk"/*acrn-service-vm*.deb ~/acrn-work
597-
cp "$disk"/launch_user_vm_id3.sh ~/acrn-work
620+
cp "$disk"/launch_user_vm_id1.sh ~/acrn-work
598621
sudo cp "$disk"/iasl /usr/sbin/
599622
sync && sudo umount "$disk"
600623
@@ -611,7 +634,7 @@ Install ACRN
611634
.. code-block:: bash
612635
613636
cd ~/acrn-work
614-
sudo apt install ./acrn-my_board-shared-2.7.deb # TODO update file name
637+
sudo apt install ./acrn-my_board-MyConfiguration*.deb
615638
sudo apt install ./*acrn-service-vm*.deb
616639
617640
#. Reboot the system:
@@ -685,8 +708,8 @@ Launch the User VM
685708

686709
.. code-block:: bash
687710
688-
sudo chmod +x ~/acrn-work/launch_user_vm_id3.sh # TODO update file name
689-
sudo ~/acrn-work/launch_user_vm_id3.sh # TODO update file name
711+
sudo chmod +x ~/acrn-work/launch_user_vm_id1.sh
712+
sudo ~/acrn-work/launch_user_vm_id1.sh
690713
691714
#. It may take about one minute for the User VM to boot and start running the
692715
Ubuntu image. You will see a lot of output, then the console of the User VM
@@ -705,7 +728,7 @@ Launch the User VM
705728

706729
.. code-block:: console
707730
708-
Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.11.0-27-generic x86_64)
731+
Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.13.0-30-generic x86_64)
709732
710733
* Documentation: https://help.ubuntu.com
711734
* Management: https://landscape.canonical.com
@@ -734,15 +757,15 @@ Launch the User VM
734757
.. code-block:: console
735758
736759
ubuntu@ubuntu:~$ uname -r
737-
5.11.0-27-generic
760+
5.13.0-30-generic
738761
739762
Then open a new terminal window and use the command to see that the Service
740763
VM is running the ``acrn-kernel`` Service VM image:
741764

742765
.. code-block:: console
743766
744767
acrn@vecow:~$ uname -r
745-
5.10.78-acrn-service-vm
768+
5.10.115-acrn-service-vm
746769
747770
The User VM has launched successfully. You have completed this ACRN setup.
748771

-3.46 KB
Loading
19.9 KB
Loading
-3.43 KB
Loading
-1.88 MB
Binary file not shown.
228 KB
Loading

doc/getting-started/overview_dev.rst

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,20 +101,21 @@ ACRN offers three types of VMs:
101101

102102
* **Post-launched User VMs**: These VMs typically share hardware resources via
103103
the Service VM and Device Model. They can also access hardware devices
104-
directly if they've been configured as passthrough devices. Unlike
105-
pre-launched VMs, you can change the configuration at runtime. They are
106-
well-suited for non-safety applications, including human machine interface
107-
(HMI), artificial intelligence (AI), computer vision, real-time, and others.
104+
directly if they've been configured as passthrough devices. The configuration
105+
of a post-launched VM can be static (defined at build time) or dynamic
106+
(defined at runtime without rebuilding ACRN). They are well-suited for
107+
non-safety applications, including human machine interface (HMI), artificial
108+
intelligence (AI), computer vision, real-time, and others.
108109

109110
The names "pre-launched" and "post-launched" refer to the boot order of these
110111
VMs. The ACRN hypervisor launches the pre-launched VMs first, then launches the
111112
Service VM. The Service VM launches the post-launched VMs.
112113

113-
Due to the static configuration of pre-launched VMs, they are recommended only
114-
if you need complete isolation from the rest of the system. Most use cases can
115-
meet their requirements without pre-launched VMs. Even if your application has
116-
stringent real-time requirements, start by testing the application on a
117-
post-launched VM before considering a pre-launched VM.
114+
Pre-launched VMs are recommended only if you need complete isolation from the
115+
rest of the system. Most use cases can meet their requirements without
116+
pre-launched VMs. Even if your application has stringent real-time requirements,
117+
start by testing the application on a post-launched VM before considering a
118+
pre-launched VM.
118119

119120
Scenario Types
120121
---------------
-2.51 KB
Loading

0 commit comments

Comments
 (0)