On 09.01.20 20:28, Saroj Sapkota wrote:
*Yes, I tried after enabling jailhouse by first command I tried to open
jailhouse console by typing second command but it results same thing as
jailhouse enable command as shown below:*
root@demo:~# jailhouse enable /etc/jailhouse/qemu-arm64.cell
Initializing Jailhouse hypervisor v0.11 (0-g58052a7a-dirty) on CPU 0
Code location: 0x0000ffffc0200800
Page pool usage after early setup: mem 87/996, remap 0/131072
Initializing processors:
CPU 0... OK
CPU 12... OK
CPU 9... OK
CPU 6... OK
CPU 13... OK
CPU 15... OK
CPU 8... OK
CPU 14... OK
CPU 10... OK
CPU 11... OK
CPU 5... OK
CPU 2... OK
CPU 4... OK
CPU 3... OK
CPU 7... OK
CPU 1... OK
Initializing unit: irqchip
Initializing unit: PCI
Adding virtual PCI device 00:00.0 to cell "qemu-arm64"
Page pool usage after late setup: mem 143/996, remap 528/131072
Activating hypervisor
root@demo:~# jailhouse console
Initializing Jailhouse hypervisor v0.11 (0-g58052a7a-dirty) on CPU 0
Code location: 0x0000ffffc0200800
Page pool usage after early setup: mem 87/996, remap 0/131072
Initializing processors:
CPU 0... OK
CPU 12... OK
CPU 9... OK
CPU 6... OK
CPU 13... OK
CPU 15... OK
CPU 8... OK
CPU 14... OK
CPU 10... OK
CPU 11... OK
CPU 5... OK
CPU 2... OK
CPU 4... OK
CPU 3... OK
CPU 7... OK
CPU 1... OK
Initializing unit: irqchip
Initializing unit: PCI
Adding virtual PCI device 00:00.0 to cell "qemu-arm64"
Page pool usage after late setup: mem 143/996, remap 528/131072
Activating hypervisor
root@demo:~#
*why I don't get jailhouse console?*
"jailhouse console" does not provide an interactive console. It's just
an alternative ways to dump debug messages from Jailhouse to the root
cell, rather than just a physical UART (or the EFI framebuffer).
*other command goes well and I can create cell for apic demo and load it
and start it on the host terminal and it continuously run I can't
destroy the cell as it is running on the same terminal. So, Main problem
is i'm unable to get jailhouse console and control it from terminal. How
can I do that?*
You control Jailhouse from the root cell with commands like those
suggested by the demo image. Study the jailhouse man page for more
details, but it should be fairly intuitive once the basic concept is
clearer. See also the various presentations and tutorial on the
Jailhouse architecture.
*the sample output and command result is below: once cell is started
neither I can destroy it or terminate it.
*
*
*
root@demo:~# jailhouse cell create /etc/jailhouse/qemu-arm64-gic-
demo.cell
Created cell "gic-demo"
Page pool usage after cell creation: mem 154/996, remap 528/131072
root@demo:~# jailhouse cell load gic-demo
/usr/libexec/jailhouse/demos/gic-demo.bin
Cell "gic-demo" can be loaded
root@demo:~# jailhouse cell start gic-demo
Started cell "gic-demo"
Initializing the GIC...
Initializing the timer...
root@demo:~# Timer fired, jitter: 370435 ns, min: 370435 ns, max: 370435 ns
So, at this point you have a bare-metal demo running. If you destroy
that again and start the Linux demo, you will get a second instance of
it, and you can ssh to that from within the root cell.
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
--
You received this message because you are subscribed to the Google Groups
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jailhouse-dev/2bff0717-8e2a-d017-4a68-96c1d54547fd%40siemens.com.