[PATCH] Documentation: articles: LJ-article-04-2015.txt

12 views
Skip to first unread message

Jan Kiszka

unread,
Apr 24, 2016, 7:27:05 AM4/24/16
to Jim Huang, Jailhouse, Valentine Sinitsyn
From: Jim Huang <jser...@gmail.com>

Fix indentation of the commands

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>
---

Jim, please reply to this message with your signed-off-by line to
confirm the patch origin and license. Then we can finally close the
related pull request. Thanks in advance!

Documentation/articles/LJ-article-04-2015.txt | 23 +++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)

diff --git a/Documentation/articles/LJ-article-04-2015.txt b/Documentation/articles/LJ-article-04-2015.txt
index 0204fa1..075fedc 100644
--- a/Documentation/articles/LJ-article-04-2015.txt
+++ b/Documentation/articles/LJ-article-04-2015.txt
@@ -183,13 +183,15 @@ Note we enabled 9p (-virtfs) to access the host filesystem from QEMU
guest side; /path/to/jailhouse is where you are going to compile
Jailhouse now. Cd to this directory and run:

-git clone g...@github.com:siemens/jailhouse.git jailhouse cd jailhouse
+git clone g...@github.com:siemens/jailhouse.git jailhouse
+cd jailhouse
make

Now, switch to the guest and mount 9p filesystem (for example, with
'mount -t 9p host /mnt'). Cd to /mnt/jailhouse and execute:

-sudo make firmware_install sudo insmod jailhouse.ko
+sudo make firmware_install
+sudo insmod jailhouse.ko

This copies Jailhouse binary image you've built to /lib/firmware and
inserts Jailhouse driver module. You can now enable Jailhouse with:
@@ -250,8 +252,8 @@ command.

Now, the inmate image can be loaded into memory:

-sudo tools/jailhouse cell load apic-demo inmates/demos/x86/apic-demo.bin
--a 0xf0000
+sudo tools/jailhouse cell load apic-demo \
+ inmates/demos/x86/apic-demo.bin -a 0xf0000

Jailhouse treats all inmates as opaque binaries, and although it
provides a small framework to develop them faster, the only thing it
@@ -265,7 +267,7 @@ want.

Finally, start the cell with:

-tools/jailhouse cell start apic-demo
+sudo tools/jailhouse cell start apic-demo

Now, switch back to the terminal you run QEMU from. You'll see lines
like this one are being sent to the serial port:
@@ -307,8 +309,8 @@ Tearing down
Jailhouse comes with several demo inmates, not only apic-demo. Let's try
something different. Stop the inmate with:

-sudo tools/jailhouse cell destroy apic-demo JAILHOUSE_CELL_DESTROY:
-Operation not permitted
+sudo tools/jailhouse cell destroy apic-demo
+JAILHOUSE_CELL_DESTROY: Operation not permitted

What's the reason? Remember apic-demo cell had 'running/locked' state in
the cell list. Jailhouse introduces locked state to prevent changes to
@@ -324,9 +326,10 @@ Now, create tiny-demo cell (which is originally for tiny-demo.bin, also
from the Jailhouse demo inmates set) and load 32-bit-demo.bin into it
the usual way:

-sudo tools/jailhouse cell create configs/tiny-demo.cell sudo
-tools/jailhouse cell load tiny-demo inmates/demos/x86/32-bit-demo.bin -a
-0xf0000 sudo tools/jailhouse cell start tiny-demo
+sudo tools/jailhouse cell create configs/tiny-demo.cell
+sudo tools/jailhouse cell load tiny-demo \
+ inmates/demos/x86/32-bit-demo.bin -a 0xf0000
+sudo tools/jailhouse cell start tiny-demo

Look into com2.txt in the host (the same directory you started QEMU
from). Not only this shows that cells can be reused by the inmates
--
2.1.4

Jim Huang

unread,
Apr 27, 2016, 1:29:51 AM4/27/16
to jailho...@googlegroups.com, Jim Huang
Fix indentation of the commands

Signed-off-by: Jim Huang <jser...@gmail.com>
---
1.8.5.1

Jan Kiszka

unread,
Apr 27, 2016, 2:06:34 AM4/27/16
to Jim Huang, jailho...@googlegroups.com
Thanks a lot, queued.

Jan

--
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux
Reply all
Reply to author
Forward
0 new messages