[Qemu-devel] [RFC PATCH v6 05/14] icount: check for icount clock deadline when cpu loop exits.

2014-07-03 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Notify events on icount clock when CPU loop exits. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c | 5 + 1 file changed, 5 insertions(+) diff --git a/cpus.c b/cpus.c index

[Qemu-devel] [RFC PATCH v6 06/14] icount: make icount extra computed on icount clock as well.

2014-07-03 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This takes icount clock in account for icount extra computation so icount clock's timers will be triggered at the exact time. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c | 10

[Qemu-devel] [RFC] icount: warp in the main_loop.

2014-07-01 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This fixes a bug where QEMU stall in icount mode. It happens when a simple timer callback is created on VIRTUAL CLOCK modding itself regularly. The actual warping mechanism is called once and then the time didn't grow anymore. Signed-off-by:

[Qemu-devel] [RFC PATCH v4 03/13] migration: make qemu_savevm_state public.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This makes qemu_savevm_state public for reverse-execution. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Amit Shah amit.s...@redhat.com --- include/sysemu/sysemu.h | 1 + savevm.c| 2 +- 2 files changed, 2

[Qemu-devel] [RFC PATCH v4 00/13] Reverse execution.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Hi everybody, This is the fourth version of this RFC (see the changes below). Those are the two first patch-set we have been worked on for reverse execution. The first part is fully reviewed except the icount: introduce icount timer patch maybe

[Qemu-devel] [RFC PATCH v4 05/13] icount: check for icount clock deadline when cpu loop exits.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Notify events on icount clock when CPU loop exits. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c | 5 + 1 file changed, 5 insertions(+) diff --git a/cpus.c b/cpus.c index

[Qemu-devel] [RFC PATCH v4 01/13] icount: put icount variables into TimerState.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This puts qemu_icount and qemu_icount_bias into TimerState structure to allow them to be migrated. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c | 29

[Qemu-devel] [RFC PATCH v4 02/13] migration: migrate icount fields.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This fixes a bug where qemu_icount and qemu_icount_bias are not migrated. It adds a subsection timer/icount to vmstate_timers so icount is migrated only when needed. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Amit Shah

[Qemu-devel] [RFC PATCH v4 06/13] icount: make icount extra computed on icount clock as well.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This takes icount clock in account for icount extra computation so icount clock's timers will be triggered at the exact time. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c | 10

[Qemu-devel] [RFC PATCH v4 04/13] icount: introduce icount timer.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This introduces a new timer based only on instruction counter and without any compensation. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpus.c | 19 --- include/qemu/timer.h | 9 -

[Qemu-devel] [RFC PATCH v4 11/13] cpu-exec: trigger a debug request when rexec stops.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This allows QEMU to trigger a debug exception when cexe_dbg_requested is set. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpu-exec.c | 13 + 1 file changed, 13 insertions(+) diff --git a/cpu-exec.c b/cpu-exec.c index

[Qemu-devel] [RFC PATCH v4 09/13] introduce reverse execution mechanism.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This introduces the basic reverse-execution mechanism. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- Makefile.target | 1 + cpus.c | 6 + include/reverse-execution.h | 41 ++

[Qemu-devel] [RFC PATCH v4 07/13] timer: add cpu_icount_to_ns function.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This adds cpu_icount_to_ns function which is needed for reverse execution. It returns the time for a specific instruction. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c

[Qemu-devel] [RFC PATCH v4 12/13] cexe: synchronize icount on the next event.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com We don't want to warp on host clock as it is not deterministic for replay. So this patch warp icount on the next QEMU_VIRTUAL_CLOCK event if reverse execution is enabled. The normal behaviour is kept when reverse execution is disabled.

[Qemu-devel] [RFC PATCH v4 08/13] trace-events: add reverse-execution events.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This adds some trace-events for reverse execution. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- trace-events | 6 ++ 1 file changed, 6 insertions(+) diff --git a/trace-events b/trace-events index ba01ad5..c1423e0 100644 ---

[Qemu-devel] [RFC PATCH v4 13/13] cexe: allow to enable reverse execution.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This creates QEMU options for reverse execution. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- qemu-options.hx | 9 + vl.c| 16 2 files changed, 25 insertions(+) diff --git a/qemu-options.hx

[Qemu-devel] [RFC PATCH v4 10/13] gdbstub: allow reverse execution in gdb stub.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This allows gdb to reverse step QEMU: reverse-stepi and reverse-cont commands are allowed. When step_backward is called, QEMU restores a snapshot before the actual instruction and stops (with a debug exit) when the previous instruction is reached.

[Qemu-devel] [RFC PATCH v5 09/13] introduce reverse execution mechanism.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This introduces the basic reverse-execution mechanism. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- Makefile.target | 1 + cpus.c | 6 + include/reverse-execution.h | 41 ++

[Qemu-devel] [RFC PATCH v5 12/13] cexe: synchronize icount on the next event.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com We don't want to warp on host clock as it is not deterministic for replay. So this patch warp icount on the next QEMU_VIRTUAL_CLOCK event if reverse execution is enabled. The normal behaviour is kept when reverse execution is disabled.

[Qemu-devel] [RFC PATCH v5 05/13] icount: check for icount clock deadline when cpu loop exits.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Notify events on icount clock when CPU loop exits. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c | 5 + 1 file changed, 5 insertions(+) diff --git a/cpus.c b/cpus.c index

[Qemu-devel] [RFC PATCH v5 00/13] Reverse execution.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Hi everybody, This is the fifth version of this RFC (see the changes below). Those are the two first patch-set we have been worked on for reverse execution. The first part is fully reviewed except the icount: introduce icount timer patch maybe we

[Qemu-devel] [RFC PATCH v5 03/13] migration: make qemu_savevm_state public.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This makes qemu_savevm_state public for reverse-execution. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Amit Shah amit.s...@redhat.com Reviewed-by: Juan Quintela quint...@redhat.com --- include/sysemu/sysemu.h | 1 +

[Qemu-devel] [RFC PATCH v5 06/13] icount: make icount extra computed on icount clock as well.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This takes icount clock in account for icount extra computation so icount clock's timers will be triggered at the exact time. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c | 10

[Qemu-devel] [RFC PATCH v5 04/13] icount: introduce icount timer.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This introduces a new timer based only on instruction counter and without any compensation. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpus.c | 19 --- include/qemu/timer.h | 9 -

[Qemu-devel] [RFC PATCH v5 01/13] icount: put icount variables into TimerState.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This puts qemu_icount and qemu_icount_bias into TimerState structure to allow them to be migrated. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c | 29

[Qemu-devel] [RFC PATCH v5 07/13] timer: add cpu_icount_to_ns function.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This adds cpu_icount_to_ns function which is needed for reverse execution. It returns the time for a specific instruction. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c

[Qemu-devel] [RFC PATCH v5 08/13] trace-events: add reverse-execution events.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This adds some trace-events for reverse execution. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- trace-events | 6 ++ 1 file changed, 6 insertions(+) diff --git a/trace-events b/trace-events index ba01ad5..c1423e0 100644 ---

[Qemu-devel] [RFC PATCH v5 02/13] migration: migrate icount fields.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This fixes a bug where qemu_icount and qemu_icount_bias are not migrated. It adds a subsection timer/icount to vmstate_timers so icount is migrated only when needed. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Amit Shah

[Qemu-devel] [RFC PATCH v5 10/13] gdbstub: allow reverse execution in gdb stub.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This allows gdb to reverse step QEMU: reverse-stepi and reverse-cont commands are allowed. When step_backward is called, QEMU restores a snapshot before the actual instruction and stops (with a debug exit) when the previous instruction is reached.

[Qemu-devel] [RFC PATCH v5 11/13] cpu-exec: trigger a debug request when rexec stops.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This allows QEMU to trigger a debug exception when cexe_dbg_requested is set. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpu-exec.c | 13 + 1 file changed, 13 insertions(+) diff --git a/cpu-exec.c b/cpu-exec.c index

[Qemu-devel] [RFC PATCH v5 13/13] cexe: allow to enable reverse execution.

2014-06-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This creates QEMU options for reverse execution. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- qemu-options.hx | 9 + vl.c| 16 2 files changed, 25 insertions(+) diff --git a/qemu-options.hx

[Qemu-devel] [RFC PATCH v3 02/13] migration: migrate icount fields.

2014-05-16 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This fixes a bug where qemu_icount and qemu_icount_bias are not migrated. It adds a subsection timer/icount to vmstate_timers so icount is migrated only when needed. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpus.c | 28

[Qemu-devel] [RFC PATCH v3 12/13] cexe: synchronize icount on the next event.

2014-05-16 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com We don't want to warp on host clock as it is not deterministic for replay. So this patch warp icount on the next QEMU_VIRTUAL_CLOCK event if reverse execution is enabled. The normal behaviour is kept when reverse execution is disabled.

[Qemu-devel] [RFC PATCH v3 09/13] introduce reverse execution mechanism.

2014-05-16 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This introduces the basic reverse-execution mechanism. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- Makefile.target | 1 + cpus.c | 6 + include/reverse-execution.h | 41 ++

[Qemu-devel] [RFC PATCH v3 13/13] cexe: allow to enable reverse execution.

2014-05-16 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This creates QEMU options for reverse execution. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- qemu-options.hx | 9 + vl.c| 16 2 files changed, 25 insertions(+) diff --git a/qemu-options.hx

[Qemu-devel] [RFC PATCH v3 01/13] icount: put icount variables into TimerState.

2014-05-16 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This puts qemu_icount and qemu_icount_bias into TimerState structure to allow them to be migrated. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c | 29

[Qemu-devel] [RFC PATCH v3 07/13] timer: add cpu_icount_to_ns function.

2014-05-16 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This adds cpu_icount_to_ns function which is needed for reverse execution. It returns the time for a specific instruction. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c

[Qemu-devel] [RFC PATCH v3 05/13] icount: check for icount clock deadline when cpu loop exits.

2014-05-16 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Notify events on icount clock when CPU loop exits. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c | 5 + 1 file changed, 5 insertions(+) diff --git a/cpus.c b/cpus.c index

[Qemu-devel] [RFC PATCH v3 08/13] trace-events: add reverse-execution events.

2014-05-16 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This adds some trace-events for reverse execution. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- trace-events | 6 ++ 1 file changed, 6 insertions(+) diff --git a/trace-events b/trace-events index 002c260..06aaf0b 100644 ---

[Qemu-devel] [RFC PATCH v3 10/13] gdbstub: allow reverse execution in gdb stub.

2014-05-16 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This allows gdb to reverse step QEMU: reverse-stepi and reverse-cont commands are allowed. When step_backward is called, QEMU restores a snapshot before the actual instruction and stops (with a debug exit) when the previous instruction is reached.

[Qemu-devel] [RFC PATCH v3 03/13] migration: make qemu_savevm_state public.

2014-05-16 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This makes qemu_savevm_state public for reverse-execution. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- include/sysemu/sysemu.h | 1 + savevm.c| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git

[Qemu-devel] [RFC PATCH v3 11/13] cpu-exec: trigger a debug request when rexec stops.

2014-05-16 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This allows QEMU to trigger a debug exception when cexe_dbg_requested is set. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpu-exec.c | 13 + 1 file changed, 13 insertions(+) diff --git a/cpu-exec.c b/cpu-exec.c index

[Qemu-devel] [RFC PATCH v3 00/13] Reverse execution.

2014-05-16 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Hi everybody, Sorry for the delay. This is the third version of this RFC (see the changes below). Those are the two first patch-set we have been worked on for reverse execution. The first series: icount: put icount variables into TimerState.

[Qemu-devel] [RFC PATCH v3 06/13] icount: make icount extra computed on icount clock as well.

2014-05-16 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This takes icount clock in account for icount extra computation so icount clock's timers will be triggered at the exact time. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c | 10

[Qemu-devel] [RFC PATCH v3 04/13] icount: introduce icount timer.

2014-05-16 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This introduces a new timer based only on instruction counter and without any compensation. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpus.c | 19 --- include/qemu/timer.h | 9 -

[Qemu-devel] [RFC PATCH v2 00/12] Reverse execution.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Hi everybody, This is the second version of this RFC (see the changes below). Those are the two first patch-set we have been worked on for reverse execution. The first series: icount: put icount variables into TimerState. migration: migrate

[Qemu-devel] [RFC PATCH v2 08/12] introduce reverse execution mechanism.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This introduces the basic reverse-execution mechanism. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- Makefile.target | 1 + cpus.c | 6 + include/reverse-execution.h | 41 ++

[Qemu-devel] [RFC PATCH v2 02/12] migration: migrate icount fields.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This fixes a bug where qemu_icount and qemu_icount_bias are not migrated. It adds a subsection timer/icount to vmstate_timers so icount is migrated only when needed. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpus.c | 28

[Qemu-devel] [RFC PATCH v2 04/12] icount: introduce icount timer.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This introduces a new timer based only on instruction counter and without any compensation. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpus.c | 19 --- include/qemu/timer.h | 9 -

[Qemu-devel] [RFC PATCH v2 03/12] migration: make qemu_savevm_state public.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This makes qemu_savevm_state public for reverse-execution. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- include/sysemu/sysemu.h | 1 + savevm.c| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git

[Qemu-devel] [RFC PATCH v2 05/12] icount: check for icount clock deadline when cpu loop exits.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Notify events on icount clock when CPU loop exits. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c | 5 + 1 file changed, 5 insertions(+) diff --git a/cpus.c b/cpus.c index

[Qemu-devel] [RFC PATCH v2 01/12] icount: put icount variables into TimerState.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This puts qemu_icount and qemu_icount_bias into TimerState structure to allow them to be migrated. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c | 29

[Qemu-devel] [RFC PATCH v2 07/12] timer: add cpu_icount_to_ns function.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This adds cpu_icount_to_ns function which is needed for reverse execution. It returns the time for a specific instruction. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c

[Qemu-devel] [RFC PATCH v2 11/12] cexe: synchronize icount on the next event.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com We don't want to warp on host clock as it is not deterministic for replay. So this patch warp icount on the next QEMU_VIRTUAL_CLOCK event if reverse execution is enabled. The normal behaviour is kept when reverse execution is disabled.

[Qemu-devel] [RFC PATCH v2 10/12] cpu-exec: trigger a debug request when rexec stops.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This allows QEMU to trigger a debug exception when cexe_dbg_requested is set. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpu-exec.c | 13 + 1 file changed, 13 insertions(+) diff --git a/cpu-exec.c b/cpu-exec.c index

[Qemu-devel] [RFC PATCH v2 09/12] gdbstub: allow reverse execution in gdb stub.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This allows gdb to reverse step QEMU: reverse-stepi and reverse-cont commands are allowed. When step_backward is called, QEMU restores a snapshot before the actual instruction and stops (with a debug exit) when the previous instruction is reached.

[Qemu-devel] [RFC PATCH v2 06/12] icount: make icount extra computed on icount clock as well.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This takes icount clock in account for icount extra computation so icount clock's timers will be triggered at the exact time. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com --- cpus.c | 10

[Qemu-devel] [RFC PATCH v2 12/12] cexe: allow to enable reverse execution.

2014-03-25 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This creates QEMU options for reverse execution. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- qemu-options.hx | 9 + vl.c| 16 2 files changed, 25 insertions(+) diff --git a/qemu-options.hx

[Qemu-devel] [RFC PATCH 11/12] cexe: synchronize icount on the next event.

2014-03-21 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com We don't want to warp on host clock as it is not deterministic for replay. So this patch warp icount on the next QEMU_VIRTUAL_CLOCK event if reverse execution is enabled. The normal behaviour is kept when reverse execution is disabled.

[Qemu-devel] [RFC PATCH 08/12] introduce reverse execution mechanism.

2014-03-21 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This introduces the basic reverse-execution mechanism. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- Makefile.target | 1 + cpus.c | 6 + include/reverse-execution.h | 41 ++

[Qemu-devel] [RFC PATCH 01/12] icount: put icount variables into TimerState.

2014-03-21 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This puts qemu_icount and qemu_icount_bias into TimerState structure to allow them to be migrated. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpus.c | 29 - 1 file changed, 16 insertions(+), 13

[Qemu-devel] [RFC PATCH 07/12] timer: add cpu_icount_to_ns function.

2014-03-21 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This adds cpu_icount_to_ns function which is needed for reverse execution. It returns the time for a specific instruction. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpus.c | 9 +++-- include/qemu/timer.h | 1 +

[Qemu-devel] [RFC PATCH 09/12] gdbstub: allow reverse execution in gdb stub.

2014-03-21 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This allows gdb to reverse step QEMU: reverse-stepi and reverse-cont commands are allowed. When step_backward is called, QEMU restores a snapshot before the actual instruction and stops (with a debug exit) when the previous instruction is reached.

[Qemu-devel] [RFC PATCH 00/12] Reverse execution.

2014-03-21 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Hi everybody, Those are the two first patch-set we have been worked on for reverse execution. The first series: icount: put icount variables into TimerState. migration: migrate icount fields. migration: make qemu_savevm_state public.

[Qemu-devel] [RFC PATCH 02/12] migration: migrate icount fields.

2014-03-21 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This fixes a bug where qemu_icount and qemu_icount_bias are not migrated. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpus.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/cpus.c

[Qemu-devel] [RFC PATCH 04/12] icount: introduce icount timer.

2014-03-21 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This introduces a new timer based only on instruction counter and without any compensation. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpus.c | 28 +++- include/qemu/timer.h | 8

[Qemu-devel] [RFC PATCH 05/12] icount: check for icount clock deadline when cpu loop exits.

2014-03-21 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Notify events on icount clock when CPU loop exits. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpus.c | 5 + 1 file changed, 5 insertions(+) diff --git a/cpus.c b/cpus.c index ba096a3..01c48e9 100644 --- a/cpus.c +++ b/cpus.c

[Qemu-devel] [RFC PATCH 12/12] cexe: allow to enable reverse execution.

2014-03-21 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This creates QEMU options for reverse execution. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- qemu-options.hx | 9 + vl.c| 16 2 files changed, 25 insertions(+) diff --git a/qemu-options.hx

[Qemu-devel] [RFC PATCH 10/12] cpu-exec: trigger a debug request when rexec stops.

2014-03-21 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This allows QEMU to trigger a debug exception when cexe_dbg_requested is set. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpu-exec.c | 13 + 1 file changed, 13 insertions(+) diff --git a/cpu-exec.c b/cpu-exec.c index

[Qemu-devel] [RFC PATCH 06/12] icount: make icount extra computed on icount clock as well.

2014-03-21 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This takes icount clock in account for icount extra computation so icount clock's timers will be triggered at the exact time. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpus.c | 10 ++ 1 file changed, 10 insertions(+)

[Qemu-devel] [RFC PATCH 03/12] migration: make qemu_savevm_state public.

2014-03-21 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This makes qemu_savevm_state public for reverse-execution. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- include/sysemu/sysemu.h | 1 + savevm.c| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git

[Qemu-devel] [RFC 1/3] icount: base rt_clock on icount.

2013-07-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This bases rt_clock on icount, as vm_clock. So vm_clock = rt_clock. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- qemu-timer.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qemu-timer.c b/qemu-timer.c

[Qemu-devel] [RFC 0/3] Determinitic behaviour with icount.

2013-07-18 Thread fred . konrad
this. Adding these features has moved us forward, but - QEMU is STILL not deterministic - we believe this is likely due to I/O which we will start investigating next. Fred KONRAD Frederic (3): icount: base rt_clock on icount. icount: sync vm_clock on the next event. icount: create a new icount

[Qemu-devel] [RFC 2/3] icount: sync vm_clock on the next event.

2013-07-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com We don't want vm_clock to be synchronized with rt_clock as it is not deterministic for replay. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpus.c | 11 +-- main-loop.c | 5 + 2 files changed, 14 insertions(+), 2

[Qemu-devel] [RFC 3/3] icount: create a new icount based timer.

2013-07-18 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This creates a new icount based timer, with no bias. It moves only with the instruction counter. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- cpus.c | 10 -- include/qemu/timer.h | 4 qemu-timer.c

[Qemu-devel] [RESEND PATCH] virtio-scsi: forward scsibus for virtio-scsi-pci.

2013-06-12 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This fix a bug with scsi hotplug on virtio-scsi-pci: As virtio-scsi-pci doesn't have any scsi bus, we need to forward scsi-hot-add to the virtio-scsi-device plugged on the virtio-bus. Cc: qemu-sta...@nongnu.org Reported-by: Alexey Kardashevskiy

[Qemu-devel] [PATCH] virtio-scsi: forward scsibus for virtio-scsi-pci.

2013-06-10 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This fix a bug with scsi hotplug on virtio-scsi-pci: As virtio-scsi-pci doesn't have any scsi bus, we need to forward scsi-hot-add to the virtio-scsi-device plugged on the virtio-bus. Reported-by: Alexey Kardashevskiy a...@ozlabs.ru Signed-off-by:

Re: [Qemu-devel] [SeaBIOS] What's the impact of enlarging IDE_TIMEOUT ?

2013-06-01 Thread Fred .
Sounds like something that should be commented in the source code. IDE_TIMEOUT = 32; // 30 seconds per ATA specification +2 seconds thrown in for safety On Sat, Jun 1, 2013 at 3:21 PM, Kevin O'Connor ke...@koconnor.net wrote: On Fri, May 31, 2013 at 03:18:56AM +, Gonglei (Arei) wrote:

[Qemu-devel] [PATCH for-1.5] virtio: add virtio_bus_get_dev_path.

2013-05-16 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This adds virtio_bus_get_dev_path to fix migration id string which is wrong since the virtio refactoring. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com Cc: mdroth mdr...@linux.vnet.ibm.com

[Qemu-devel] [PATCH for-1.5 0/2] virtio-net: fix netclient id and type.

2013-05-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This fixes this bug: https://bugs.launchpad.net/qemu/+bug/1179357 The name, and the type is replaced by virtio-net-x's id and virtio-net-x's type to restore the behaviour of info network command. Thanks, Fred KONRAD Frederic (2): virtio-net

[Qemu-devel] [PATCH for-1.5 1/2] virtio-net: add virtio_net_set_netclient_name.

2013-05-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This adds virtio_net_set_netclient_name, which is used to set the name and type shown in info network command. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/net/virtio-net.c| 45

[Qemu-devel] [PATCH for-1.5 2/2] virtio-net-x: forward the netclient name and type.

2013-05-15 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This forwards the name and the type of virtio-net-x to fix the bad behaviour of info network command. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/s390x/s390-virtio-bus.c | 3 +++ hw/s390x/virtio-ccw.c | 3 +++

Re: [Qemu-devel] [libvirt]virtio serial device problem

2013-05-08 Thread fred . konrad
/29 no? there were issues with that. But it should be fixed. Do you still have the command-line issue with the last git? See commit 80270a19685dd20eda017b0360c743b3e3ed6f57 Thanks, Fred It might have been fixed already. Hm. From what I see, it is all correct from the qemu side, the problem

[Qemu-devel] [PATCH for-1.5 v2 0/5] virtio: fix bus command line compatibility.

2013-04-30 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Cc: Libaiqing libaiq...@huawei.com Cc: Michal Privoznik mpriv...@redhat.com This fixes the bus name for virtio-serial-device and virtio-scsi-device. The bus name for virtio-serial-device and virtio-scsi-device is not id.0 as it was the case before

[Qemu-devel] [PATCH for-1.5 v2 2/5] virtio: add virtio_device_set_child_bus_name.

2013-04-30 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Add virtio_device_set_child_bus_name function. It will be used with virtio-serial-x and virtio-scsi-x to set the child bus name before calling virtio-x-device's init. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio/virtio.c

[Qemu-devel] [PATCH for-1.5 v2 5/5] virtio-scsi: fix the command line compatibility.

2013-04-30 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com The bus name is wrong since the refactoring. This keeps the behaviour of the command line. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/s390x/s390-virtio-bus.c | 12 hw/s390x/virtio-ccw.c | 12

[Qemu-devel] [PATCH for-1.5 v2 1/5] virtio-x-bus: force bus name to virtio-bus.

2013-04-30 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com When the proxy id is set, this bus takes the name id.0 which is expected to be the virtio-device's first bus. So force this name to virtio-bus as it is an internal bus. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com ---

[Qemu-devel] [PATCH for-1.5 v2 3/5] scsi: add bus_name parameter to scsi_bus_new.

2013-04-30 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This adds the possibility to create a scsi-bus with a specified name. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/scsi/esp-pci.c | 2 +- hw/scsi/esp.c | 2 +- hw/scsi/lsi53c895a.c | 2 +- hw/scsi/megasas.c

[Qemu-devel] [PATCH for-1.5 v2 4/5] virtio-serial: fix command line compatibility.

2013-04-30 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com The bus name is wrong since the refactoring. This keeps the behaviour of the command line. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/char/virtio-serial-bus.c | 3 ++- hw/s390x/s390-virtio-bus.c | 11 +++

[Qemu-devel] [PATCH for-1.5 0/4] virtio: fix bus command line compatibility.

2013-04-29 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Cc: Libaiqing libaiq...@huawei.com Cc: Michal Privoznik mpriv...@redhat.com This series fix the bus name for virtio-serial-device and virtio-scsi-device. The bus name for virtio-serial-device and virtio-scsi-device is not id.0 as it was the case

[Qemu-devel] [PATCH for-1.5 1/4] virtio-x-bus: force bus name to virtio-bus.

2013-04-29 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com When the proxy id is set, this bus take the name id.0 which is expected to be the virtio-device's first bus. So force this name to virtio-bus as it is an internal bus. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com ---

[Qemu-devel] [PATCH for-1.5 4/4] virtio-scsi: fix the command line compatibility.

2013-04-29 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com The bus name is wrong since the refactoring. This keep the behaviour of the command line. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/s390x/s390-virtio-bus.c | 9 + hw/s390x/virtio-ccw.c | 9 +

[Qemu-devel] [PATCH for-1.5 2/4] virtio-serial: fix command line compatibility.

2013-04-29 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com The bus name is wrong since the refactoring. This keep the behaviour of the command line. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/char/virtio-serial-bus.c | 16 +++- hw/s390x/s390-virtio-bus.c| 8

[Qemu-devel] [PATCH for-1.5 3/4] scsi: add scsi_named_bus_new().

2013-04-29 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com This add the possibility to create a scsi-bus with a specified name. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/scsi/scsi-bus.c | 12 +--- include/hw/scsi/scsi.h | 2 ++ 2 files changed, 11 insertions(+), 3

Re: [Qemu-devel] [SeaBIOS] [PATCH RFC 0/3] seabios: move acpi table formatting out of bios

2013-04-25 Thread Fred .
With ACPI moved out of SeaBIOS to QEMU, how will ACPI work when using SeaBIOS without QEMU? Like if using SeaBIOS with Boch, KVM or Coreboot? On Thu, Apr 25, 2013 at 11:02 AM, Michael S. Tsirkin m...@redhat.com wrote: Untested yet, but I thought I'd share the BIOS bits so we can agree on

[Qemu-devel] [PATCH RESEND v4 0/8] virtio-rng refactoring.

2013-04-24 Thread fred . konrad
of the last patch. * Rebased. Changes v2 - v3: * Added CCW device. * Changes name: virtio-rng = virtio-rng-device. * Rebased. Thanks, Fred KONRAD Frederic (8): virtio-rng: don't use pointer for configuration. virtio-rng: add virtio-rng device. virtio-rng-pci: switch to the new

[Qemu-devel] [PATCH RESEND v4 2/8] virtio-rng: add virtio-rng device.

2013-04-24 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Create virtio-rng-device which extends virtio-device, so it can be connected on virtio-bus. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/s390x/virtio-ccw.c | 3 +- hw/virtio/virtio-pci.c | 8 +--

[Qemu-devel] [PATCH RESEND v4 4/8] virtio-rng-s390: switch to the new API.

2013-04-24 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Here the virtio-rng-s390 is modified for the new API. The device virtio-rng-s390 extends virtio-s390-device as before. It creates and connects a virtio-rng during the init. The properties are not modified. Signed-off-by: KONRAD Frederic

[Qemu-devel] [PATCH RESEND v4 1/8] virtio-rng: don't use pointer for configuration.

2013-04-24 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com The configuration field must not be a pointer as it will be used for virtio-rng properties. So *conf is replaced by conf. Signed-off-by: KONRAD Frederic fred.kon...@greensocs.com --- hw/virtio/virtio-rng.c | 12 ++--

[Qemu-devel] [PATCH RESEND v4 3/8] virtio-rng-pci: switch to the new API.

2013-04-24 Thread fred . konrad
From: KONRAD Frederic fred.kon...@greensocs.com Here the virtio-rng-pci is modified for the new API. The device virtio-rng-pci extends virtio-pci. It creates and connects a virtio-rng-device during the init. The properties are not changed. The virtio_pci_reset function, is removed as no longer

<    1   2   3   4   5   6   7   8   9   >