startstop test case of the NOVA-NUL microhypervisor

Mehdi AICHOUCH foxmehdi at gmail.com
Mon Dec 10 10:19:47 CET 2012


Thank you Alex,
It worked great!!
Mehdi

On Fri, Dec 7, 2012 at 8:03 PM, Alexander Boettcher <
alexander.boettcher at genode-labs.com> wrote:

> Hi,
>
> try to add "name::/s0/timer" to the hello config.
>
> Cheers,
>
> Alexander Böttcher.
>
> Mehdi AICHOUCH <foxmehdi at gmail.com> schrieb:
>
> Hello everyone,
>
> I am trying to test the NOVA+NUL microhypervisor.
> I played with the test application "nul/michal/apps/tests/startstop".
>
> So, I modified this test to try a new a new test case, by modifying the
> "hello" program that is
> started by the "startstop" program.
>
> I added to the Hello program the following code :
>
> ...
> TimerHelper * timer;
> timer = new TimerHelper(this);
>
> while(1) {
>  Logging::printf("Hello ... \n", now);
> timer->msleep(1000);
> }
> ...
>
> This simple code will print a message and suspend the Hello program for 1
> second.
>
> The problem is that when I tested this program alone, it worked perfectly
> but when this same program is started by the "startstop" program using
> start_config(), it does not suspend
> on the msleep(1000).
>
> Is my test correct or allowed by the NOVA-NUL microhypervisor?
> If it is the case, could anyone please help to debug this issue.
>
> Many thanks in advance.
> Mehdi
>
>
> PS: this is my configuration script.
>
> #!/usr/bin/env novaboot
> # -*-sh-*-
> HYPERVISOR_PARAMS=serial
> QEMU_FLAGS=-cpu phenom -smp 1 -serial stdio
> bin/apps/sigma0.nul tracebuffer_verbose S0_DEFAULT hostserial hostvga
> hostkeyb:0,0x60,1,12,2 \
>     script_start:1 script_waitchild service_config
> bin/apps/startstop.nul
> bin/apps/startstop.nulconfig <<EOF
> sigma0::cpu:1 sigma0::mem:16 name::/s0/log name::/s0/config
> name::/s0/timer name::/s0/fs/rom name::/s0/admission ||
> rom://bin/apps/startstop.nul rom://test.nulconfig
> EOF
> bin/apps/hello.nul
> test.nulconfig <<EOF
> sigma0::cpu:1 sigma0::mem:16 name::/s0/log name::/s0/admission ||
> rom://bin/apps/hello.nul
> EOF
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20121210/b76d7af6/attachment.htm>


More information about the l4-hackers mailing list