[Qemu-devel] [PATCH 6/7] scenario engine: provide a scenario file template

2015-09-11 Thread Victor CLEMENT
This template implements the mandatory functions of the main scenario source file and provides an example use case. Signed-off-by: Victor CLEMENT --- Makefile.objs | 1 + include/scenario/scenario.h | 5 ++ scenario/scenario.c | 168

[Qemu-devel] [PATCH 5/7] scenario-engine: add a time based event scheduler

2015-09-11 Thread Victor CLEMENT
The scheduler reads an event description file containing timestamps and parameters then schedules those events. A user defined function is called when those events expire. It is used for precise time simulations. Signed-off-by: Victor CLEMENT --- Makefile.objs| 1 + include

[Qemu-devel] [PATCH 7/7] scenario engine: add a Qemu option to start it

2015-09-11 Thread Victor CLEMENT
Add an option to Qemu in order to start the scenario engine at the end of Qemu initialization. Signed-off-by: Victor CLEMENT --- qemu-options.hx | 12 vl.c| 45 - 2 files changed, 56 insertions(+), 1 deletion(-) diff --git a

[Qemu-devel] [PATCH 0/7] Qemu scenario engine

2015-09-11 Thread Victor CLEMENT
Ingenierie/qemu-scenario-engine-demo Victor CLEMENT (7): configure: add --enable-scenario-engine option gpio-pl061: add a scenario engine interaction API chardev: add a scenario engine backend scenario-engine: add utilities scenario-engine: add a time based event scheduler scenario engin

[Qemu-devel] [PATCH 2/7] gpio-pl061: add a scenario engine interaction API

2015-09-11 Thread Victor CLEMENT
"pl061_update". Signed-off-by: Victor CLEMENT --- hw/gpio/pl061.c | 38 ++ include/hw/gpio/pl061_simu.h | 20 2 files changed, 58 insertions(+) create mode 100644 include/hw/gpio/pl061_simu.h diff --git a/hw/gpio/pl061.c

[Qemu-devel] [PATCH 3/7] chardev: add a scenario engine backend

2015-09-11 Thread Victor CLEMENT
used. Signed-off-by: Victor CLEMENT --- backends/Makefile.objs | 1 + backends/scenario.c| 107 + include/sysemu/char.h | 13 ++ qapi-schema.json | 3 +- qemu-char.c| 5 +++ 5 files changed, 128 insertions(+), 1

[Qemu-devel] [PATCH 4/7] scenario-engine: add utilities

2015-09-11 Thread Victor CLEMENT
This scenario utilities file currently implements one function. This function is the event callback registration function which walks through all guest devices to find those of a given type then registers their event callback. Signed-off-by: Victor CLEMENT --- Makefile.objs| 6

[Qemu-devel] [PATCH 1/7] configure: add --enable-scenario-engine option

2015-09-11 Thread Victor CLEMENT
Add an option to ./configure script to enable the scenario engine. It defines the CONFIG_SCENARIO constant. Signed-off-by: Victor CLEMENT --- configure | 8 1 file changed, 8 insertions(+) diff --git a/configure b/configure index cd219d8..466a71f 100755 --- a/configure +++ b/configure

[Qemu-devel] [PATCH 1/1] pl061: fix wrong calculation of GPIOMIS register

2015-06-01 Thread Victor CLEMENT
The masked interrupt status register should be the state of the interrupt after masking. There should be a logical AND instead of a logical OR between the interrupt status and the interrupt mask. Signed-off-by: Victor CLEMENT --- See ARM PrimeCell GPIO manual below http://infocenter.arm.com

[Qemu-devel] [PATCH v2 2/3] icount: add sleep parameter to the icount option to set icount_sleep mode

2015-05-29 Thread Victor CLEMENT
The 'sleep' parameter sets the icount_sleep mode, which is enabled by default. To disable it, add the 'sleep=no' parameter (or 'nosleep') to the qemu -icount option. Signed-off-by: Victor CLEMENT --- cpus.c | 9 + qemu-options.hx | 12 ++-

[Qemu-devel] [PATCH v2 3/3] icount: print a warning if there is no more deadline in sleep=no mode

2015-05-29 Thread Victor CLEMENT
While qemu is running in sleep=no mode, a warning will be printed when no timer deadline is set. As this mode is intended for getting deterministic virtual time, if no timer is set on the virtual clock this determinism is broken. Signed-off-by: Victor CLEMENT --- cpus.c | 6 ++ 1 file

[Qemu-devel] [PATCH v2 0/3] implement a new icount sleep=no mode

2015-05-29 Thread Victor CLEMENT
real-time software using this mode, one need to write some scenario which will simulate inputs on an emulated device then record traces from this inputs and the associated outputs from the tested software. Victor CLEMENT (3): icount: implement a new icount_sleep mode toggleing real-time cpu

[Qemu-devel] [PATCH v2 1/3] icount: implement a new icount_sleep mode toggleing real-time cpu sleep

2015-05-29 Thread Victor CLEMENT
When the icount_sleep mode is disabled, the QEMU_VIRTUAL_CLOCK runs at the maximum possible speed by warping the sleep times of the virtual cpu to the soonest clock deadline. The virtual clock will be updated only according the instruction counter. Signed-off-by: Victor CLEMENT --- cpus.c | 70

Re: [Qemu-devel] [PATCH 0/3] implement a new icount_no_rt mode

2015-05-29 Thread Victor Clement
- Mail original - > De: "Paolo Bonzini" > À: "Victor Clement" , qemu-devel@nongnu.org > Cc: "françois Guerret" , "Julien Viard de > Galbert" > Envoyé: Vendredi 29 Mai 2015 13:14:38 > Objet: Re: [Qemu-devel] [PATCH 0/3] implem

Re: [Qemu-devel] [PATCH 1/3] icount: implement a new icount_no_rt mode without real time cpu sleeping

2015-05-29 Thread Victor Clement
- Mail original - > De: "Paolo Bonzini" > À: "Victor CLEMENT" , qemu-devel@nongnu.org > Cc: "francois guerret" > Envoyé: Mercredi 27 Mai 2015 14:52:00 > Objet: Re: [Qemu-devel] [PATCH 1/3] icount: implement a new icount_no_rt mode > wi

Re: [Qemu-devel] [PATCH 0/3] implement a new icount_no_rt mode

2015-05-29 Thread Victor Clement
- Mail original - > De: "Paolo Bonzini" > À: "Victor CLEMENT" , qemu-devel@nongnu.org > Cc: "francois guerret" > Envoyé: Mercredi 27 Mai 2015 14:52:55 > Objet: Re: [Qemu-devel] [PATCH 0/3] implement a new icount_no_rt mode > >

[Qemu-devel] [PATCH 3/3] icount: print a warning if there is no more deadline in no_rt mode

2015-05-27 Thread Victor CLEMENT
While qemu is running in icount_no_rt mode, a warning will be printed when no timer deadline is set. As this mode is intended for getting deterministic virtual time, if no timer is set on the virtual clock this determinism is broken. Signed-off-by: Victor CLEMENT --- cpus.c | 6 ++ 1 file

[Qemu-devel] [PATCH 0/3] implement a new icount_no_rt mode

2015-05-27 Thread Victor CLEMENT
sing the virtual clock too. This kind of changes cannot be generic as the scenario will depend on the tested application, so modified emulators are not part of this patch set. Victor CLEMENT (3): icount: implement a new icount_no_rt mode without real time cpu sleeping icount: add rt p

[Qemu-devel] [PATCH 1/3] icount: implement a new icount_no_rt mode without real time cpu sleeping

2015-05-27 Thread Victor CLEMENT
In this new icount_no_rt mode, the QEMU_VIRTUAL_CLOCK runs at the maximum possible speed by warping the sleep times of the virtual cpu to the soonest clock deadline. The virtual clock will be updated only according the instruction counter. Signed-off-by: Victor CLEMENT --- cpus.c | 64

[Qemu-devel] [PATCH 2/3] icount: add rt parameter to the -icount option to toogle icount_no_rt mode

2015-05-27 Thread Victor CLEMENT
The 'rt' parameter sets the icount_no_rt mode, which is not enabled by default. To enable it, add the 'nort' parameter (or 'rt=off') to the qemu -icount option. Signed-off-by: Victor CLEMENT --- cpus.c | 15 +-- qemu-options.hx | 12 ++-

Re: [Qemu-devel] Newcomer -- clock issue

2015-05-19 Thread Victor Clement
Hello, Check the icount option, which uses the virtual cpu instrution counter to calculate the value of QEMU_CLOCK_VIRTUAL. This is not exactly what you want because the clock will still run when qemu is preempted by the host but this is the closest thing you have. I'm working on a patch that wi