qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/3] implement a new icount sleep=no mode
@ 2015-05-29 15:14 Victor CLEMENT
  2015-05-29 15:14 ` [Qemu-devel] [PATCH v2 1/3] icount: implement a new icount_sleep mode toggleing real-time cpu sleep Victor CLEMENT
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Victor CLEMENT @ 2015-05-29 15:14 UTC (permalink / raw)
  To: qemu-devel
  Cc: francois.guerret, pbonzini, Victor CLEMENT, julien.viarddegalbert

This patch adds a new icount_sleep mode set by the new 'sleep' parameter
of the icount option.
When using sleep=no mode, the QEMU_VIRTUAL_CLOCK will be running at
the maximal possible speed by warping the CPU sleep times to the soonest
virtual clock deadline.
The goal is to get deterministic execution times by preventing potential
latencies from qemu execution on the host machine.
The virtual cpus sleep time will be calculated but not spent, hence the
virtual time will not be realistic when looking from the host point of view
(ex. a 'sleep 10' on the guest will return almost instantly while the
guest clock wil act like 10s have really passed)

This new mode will be used for testing real-time applications inside qemu.
It makes the virtual clock "purely" virtual by removing any reference to
host clocks in the calculation of QEMU_VIRTUAL_CLOCK value.

To test 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
    sleep
  icount: add sleep parameter to the icount option to set icount_sleep
    mode
  icount: print a warning if there is no more deadline in sleep=no mode

 cpus.c          | 85 +++++++++++++++++++++++++++++++++++++++------------------
 qemu-options.hx | 12 ++++++--
 vl.c            |  3 ++
 3 files changed, 72 insertions(+), 28 deletions(-)

-- 
2.4.2

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-29 16:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-29 15:14 [Qemu-devel] [PATCH v2 0/3] implement a new icount sleep=no mode Victor CLEMENT
2015-05-29 15:14 ` [Qemu-devel] [PATCH v2 1/3] icount: implement a new icount_sleep mode toggleing real-time cpu sleep Victor CLEMENT
2015-05-29 15:14 ` [Qemu-devel] [PATCH v2 2/3] icount: add sleep parameter to the icount option to set icount_sleep mode Victor CLEMENT
2015-05-29 15:14 ` [Qemu-devel] [PATCH v2 3/3] icount: print a warning if there is no more deadline in sleep=no mode Victor CLEMENT
2015-05-29 16:38   ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).