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

2014-07-03 Thread fred . konrad
From: KONRAD Frederic This puts qemu_icount and qemu_icount_bias into TimerState structure to allow them to be migrated. Signed-off-by: KONRAD Frederic Reviewed-by: Paolo Bonzini --- cpus.c | 29 - 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/cpu

[Qemu-devel] [RFC PATCH v6 08/14] icount: Add QemuOpts for icount

2014-07-03 Thread fred . konrad
From: Sebastian Tanase Make icount parameter use QemuOpts style options in order to easily add other suboptions. Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué --- cpus.c| 10 +- include/qemu-common.h | 3 ++- qemu-options.hx | 4 ++-- qtest.c

[Qemu-devel] [RFC PATCH v6 09/14] trace-events: add reverse-execution events.

2014-07-03 Thread fred . konrad
From: KONRAD Frederic This adds some trace-events for reverse execution. Signed-off-by: KONRAD Frederic --- trace-events | 6 ++ 1 file changed, 6 insertions(+) diff --git a/trace-events b/trace-events index 11a17a8..66f9e08 100644 --- a/trace-events +++ b/trace-events @@ -1301,3 +1301,9

[Qemu-devel] [RFC PATCH v6 11/14] gdbstub: allow reverse execution in gdb stub.

2014-07-03 Thread fred . konrad
From: KONRAD Frederic 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. Signed-off-by: KONRAD Fre

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

2014-07-01 Thread fred . konrad
From: KONRAD Frederic 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: KONRAD Frederic --- main-loo

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

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

[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 This allows QEMU to trigger a debug exception when cexe_dbg_requested is set. Signed-off-by: KONRAD Frederic --- cpu-exec.c | 13 + 1 file changed, 13 insertions(+) diff --git a/cpu-exec.c b/cpu-exec.c index 38e5f02..c92cfd1 100644 --- a/cpu-exec.c +++ b/cpu-

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

2014-06-25 Thread fred . konrad
From: KONRAD Frederic 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. Signed-off-by: KONRAD Fre

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

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

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

2014-06-25 Thread fred . konrad
From: KONRAD Frederic 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 Reviewed-by: Amit Shah --- cpus.c | 27 +++ 1 fi

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

2014-06-25 Thread fred . konrad
From: KONRAD Frederic This introduces a new timer based only on instruction counter and without any compensation. Signed-off-by: KONRAD Frederic --- cpus.c | 19 --- include/qemu/timer.h | 9 - qemu-timer.c | 8 +++- stubs/cpu-get-icoun

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

2014-06-25 Thread fred . konrad
From: KONRAD Frederic 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. Signed-off-by: KONRAD Frederic ---

[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 Notify events on icount clock when CPU loop exits. Signed-off-by: KONRAD Frederic Reviewed-by: Paolo Bonzini --- cpus.c | 5 + 1 file changed, 5 insertions(+) diff --git a/cpus.c b/cpus.c index 6bba30b..dc2dc21 100644 --- a/cpus.c +++ b/cpus.c @@ -992,6 +992,11 @@ s

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

2014-06-25 Thread fred . konrad
From: KONRAD Frederic This makes qemu_savevm_state public for reverse-execution. Signed-off-by: KONRAD Frederic Reviewed-by: Amit Shah Reviewed-by: Juan Quintela --- include/sysemu/sysemu.h | 1 + savevm.c| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/i

[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 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 Reviewed-by: Paolo Bonzini --- cpus.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/cpus.c b/cpu

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

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

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

2014-06-25 Thread fred . konrad
From: KONRAD Frederic 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 can merge them? The fi

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

2014-06-25 Thread fred . konrad
From: KONRAD Frederic This puts qemu_icount and qemu_icount_bias into TimerState structure to allow them to be migrated. Signed-off-by: KONRAD Frederic Reviewed-by: Paolo Bonzini --- cpus.c | 29 - 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/cpu

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

2014-06-25 Thread fred . konrad
From: KONRAD Frederic 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 Reviewed-by: Paolo Bonzini --- cpus.c | 9 +++-- include/qemu/timer.h | 1 + 2 files changed, 8 in

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

2014-06-25 Thread fred . konrad
From: KONRAD Frederic 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. Signed-off-by: KONRAD Fre

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

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

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

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

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

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

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

2014-06-25 Thread fred . konrad
From: KONRAD Frederic 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 Reviewed-by: Paolo Bonzini --- cpus.c | 9 +++-- include/qemu/timer.h | 1 + 2 files changed, 8 in

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

2014-06-25 Thread fred . konrad
From: KONRAD Frederic 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. Signed-off-by: KONRAD Frederic ---

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

2014-06-25 Thread fred . konrad
From: KONRAD Frederic This introduces a new timer based only on instruction counter and without any compensation. Signed-off-by: KONRAD Frederic --- cpus.c | 19 --- include/qemu/timer.h | 9 - qemu-timer.c | 8 +++- stubs/cpu-get-icoun

[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 This allows QEMU to trigger a debug exception when cexe_dbg_requested is set. Signed-off-by: KONRAD Frederic --- cpu-exec.c | 13 + 1 file changed, 13 insertions(+) diff --git a/cpu-exec.c b/cpu-exec.c index 38e5f02..c92cfd1 100644 --- a/cpu-exec.c +++ b/cpu-

[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 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 Reviewed-by: Paolo Bonzini --- cpus.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/cpus.c b/cpu

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

2014-06-25 Thread fred . konrad
From: KONRAD Frederic 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 Reviewed-by: Amit Shah --- cpus.c | 28 1 f

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

2014-06-25 Thread fred . konrad
From: KONRAD Frederic This puts qemu_icount and qemu_icount_bias into TimerState structure to allow them to be migrated. Signed-off-by: KONRAD Frederic Reviewed-by: Paolo Bonzini --- cpus.c | 29 - 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/cpu

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

2014-06-25 Thread fred . konrad
From: KONRAD Frederic 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 we can merge them? The f

[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 Notify events on icount clock when CPU loop exits. Signed-off-by: KONRAD Frederic Reviewed-by: Paolo Bonzini --- cpus.c | 5 + 1 file changed, 5 insertions(+) diff --git a/cpus.c b/cpus.c index 7f99d5e..76de504 100644 --- a/cpus.c +++ b/cpus.c @@ -993,6 +993,11 @@ s

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

2014-06-25 Thread fred . konrad
From: KONRAD Frederic This makes qemu_savevm_state public for reverse-execution. Signed-off-by: KONRAD Frederic Reviewed-by: Amit Shah --- include/sysemu/sysemu.h | 1 + savevm.c| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/sysemu/sysemu.h b/inc

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

2014-05-16 Thread fred . konrad
From: KONRAD Frederic This introduces a new timer based only on instruction counter and without any compensation. Signed-off-by: KONRAD Frederic --- cpus.c | 19 --- include/qemu/timer.h | 9 - qemu-timer.c | 8 +++- stubs/cpu-get-icoun

[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 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 Reviewed-by: Paolo Bonzini --- cpus.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/cpus.c b/cpu

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

2014-05-16 Thread fred . konrad
From: KONRAD Frederic 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. migration: migrate icount

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

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

[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 This allows QEMU to trigger a debug exception when cexe_dbg_requested is set. Signed-off-by: KONRAD Frederic --- cpu-exec.c | 13 + 1 file changed, 13 insertions(+) diff --git a/cpu-exec.c b/cpu-exec.c index 0914d3c..851d101 100644 --- a/cpu-exec.c +++ b/cpu-

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

2014-05-16 Thread fred . konrad
From: KONRAD Frederic 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. Signed-off-by: KONRAD Fre

[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 Notify events on icount clock when CPU loop exits. Signed-off-by: KONRAD Frederic Reviewed-by: Paolo Bonzini --- cpus.c | 5 + 1 file changed, 5 insertions(+) diff --git a/cpus.c b/cpus.c index e646bac..4dced24 100644 --- a/cpus.c +++ b/cpus.c @@ -992,6 +992,11 @@ s

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

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

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

2014-05-16 Thread fred . konrad
From: KONRAD Frederic 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 Reviewed-by: Paolo Bonzini --- cpus.c | 9 +++-- include/qemu/timer.h | 1 + 2 files changed, 8 in

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

2014-05-16 Thread fred . konrad
From: KONRAD Frederic This puts qemu_icount and qemu_icount_bias into TimerState structure to allow them to be migrated. Signed-off-by: KONRAD Frederic Reviewed-by: Paolo Bonzini --- cpus.c | 29 - 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/cpu

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

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

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

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

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

2014-05-16 Thread fred . konrad
From: KONRAD Frederic 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. Signed-off-by: KONRAD Frederic ---

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

2014-05-16 Thread fred . konrad
From: KONRAD Frederic 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 --- cpus.c | 28 1 file changed, 28 insertio

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

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

[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 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 Reviewed-by: Paolo Bonzini --- cpus.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/cpus.c b/cpu

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

2014-03-25 Thread fred . konrad
From: KONRAD Frederic 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. Signed-off-by: KONRAD Fre

[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 This allows QEMU to trigger a debug exception when cexe_dbg_requested is set. Signed-off-by: KONRAD Frederic --- cpu-exec.c | 13 + 1 file changed, 13 insertions(+) diff --git a/cpu-exec.c b/cpu-exec.c index 0914d3c..851d101 100644 --- a/cpu-exec.c +++ b/cpu-

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

2014-03-25 Thread fred . konrad
From: KONRAD Frederic 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. Signed-off-by: KONRAD Frederic ---

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

2014-03-25 Thread fred . konrad
From: KONRAD Frederic 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 Reviewed-by: Paolo Bonzini --- cpus.c | 9 +++-- include/qemu/timer.h | 1 + 2 files changed, 8 in

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

2014-03-25 Thread fred . konrad
From: KONRAD Frederic This puts qemu_icount and qemu_icount_bias into TimerState structure to allow them to be migrated. Signed-off-by: KONRAD Frederic Reviewed-by: Paolo Bonzini --- cpus.c | 29 - 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/cpu

[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 Notify events on icount clock when CPU loop exits. Signed-off-by: KONRAD Frederic Reviewed-by: Paolo Bonzini --- cpus.c | 5 + 1 file changed, 5 insertions(+) diff --git a/cpus.c b/cpus.c index e646bac..4dced24 100644 --- a/cpus.c +++ b/cpus.c @@ -992,6 +992,11 @@ s

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

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

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

2014-03-25 Thread fred . konrad
From: KONRAD Frederic This introduces a new timer based only on instruction counter and without any compensation. Signed-off-by: KONRAD Frederic --- cpus.c | 19 --- include/qemu/timer.h | 9 - qemu-timer.c | 8 +++- stubs/cpu-get-icoun

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

2014-03-25 Thread fred . konrad
From: KONRAD Frederic 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 --- cpus.c | 28 1 file changed, 28 insertio

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

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

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

2014-03-25 Thread fred . konrad
From: KONRAD Frederic 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 icount fields. migration:

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

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

[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 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 --- cpus.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/cpus.c b/cpus.c index 01c48e9..825d438 1

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

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

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

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

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

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

[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 Notify events on icount clock when CPU loop exits. Signed-off-by: KONRAD Frederic --- 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 @@ -998,6 +998,11 @@ static void *qemu_tcg_cpu_thr

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

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

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

2014-03-21 Thread fred . konrad
From: KONRAD Frederic 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. icount: introduce icount timer.

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

2014-03-21 Thread fred . konrad
From: KONRAD Frederic 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. Signed-off-by: KONRAD Fre

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

2014-03-21 Thread fred . konrad
From: KONRAD Frederic 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 --- cpus.c | 9 +++-- include/qemu/timer.h | 1 + 2 files changed, 8 insertions(+), 2 deletions(-)

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

2014-03-21 Thread fred . konrad
From: KONRAD Frederic This puts qemu_icount and qemu_icount_bias into TimerState structure to allow them to be migrated. Signed-off-by: KONRAD Frederic --- cpus.c | 29 - 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/cpus.c b/cpus.c index 1104d61..

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

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

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

2014-03-21 Thread fred . konrad
From: KONRAD Frederic 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. Signed-off-by: KONRAD Frederic ---

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

2013-07-18 Thread fred . konrad
From: KONRAD Frederic This creates a new icount based timer, with no bias. It moves only with the instruction counter. Signed-off-by: KONRAD Frederic --- cpus.c | 10 -- include/qemu/timer.h | 4 qemu-timer.c | 6 ++ 3 files changed, 18 insertions(+),

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

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

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

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

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

2013-07-18 Thread fred . konrad
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 based timer. cpus.c

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

2013-06-11 Thread fred . konrad
From: KONRAD Frederic 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 Reviewed-by: Andreas Färber

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

2013-06-10 Thread fred . konrad
From: KONRAD Frederic 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 Signed-off-by: KONRAD Frederic --- hw/pci/pci-hotplu

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 wrote: > On Fri, May 31, 2013 at 03:18:56AM +, Gonglei (Arei) wrote: > >IDE_TIMEOUT is

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

2013-05-16 Thread fred . konrad
From: KONRAD Frederic This adds virtio_bus_get_dev_path to fix migration id string which is wrong since the virtio refactoring. Signed-off-by: KONRAD Frederic Reviewed-by: Paolo Bonzini Cc: mdroth --- hw/virtio/virtio-bus.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/

[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 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 --- hw/s390x/s390-virtio-bus.c | 3 +++ hw/s390x/virtio-ccw.c | 3 +++ hw/virtio/virtio-pci.c | 3 +++ 3 files changed, 9 insert

[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 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 --- hw/net/virtio-net.c| 45 -- include/hw/virtio/virtio-net.h | 4 2

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

2013-05-15 Thread fred . konrad
From: KONRAD Frederic 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

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

2013-05-08 Thread fred . konrad
t is this? > > > b3e6d591b05538056d665572f3e3bbfb3cbb70e7 This commit is from 05/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

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

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

[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 This adds the possibility to create a scsi-bus with a specified name. Signed-off-by: KONRAD Frederic --- hw/scsi/esp-pci.c | 2 +- hw/scsi/esp.c | 2 +- hw/scsi/lsi53c895a.c | 2 +- hw/scsi/megasas.c | 2 +- hw/scsi/scsi-bus.c | 5 +++-- hw/scsi/s

[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 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 --- hw/s390x/s390-virtio-bus.c | 5 - hw/s390x/virtio-ccw.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 The bus name is wrong since the refactoring. This keeps the behaviour of the command line. Signed-off-by: KONRAD Frederic --- hw/s390x/s390-virtio-bus.c | 12 hw/s390x/virtio-ccw.c | 12 hw/scsi/virtio-scsi.c | 3 ++- h

[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 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 --- hw/virtio/virtio.c | 24 include/hw/

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

2013-04-30 Thread fred . konrad
From: KONRAD Frederic Cc: Libaiqing Cc: Michal Privoznik 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 the refactoring. This trigger the error: qemu-system-xxx -de

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

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

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

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

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

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

[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 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 --- hw/s390x/s390-virtio-bus.c | 5 - hw/s390x/virtio-ccw.c

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

2013-04-29 Thread fred . konrad
From: KONRAD Frederic Cc: Libaiqing Cc: Michal Privoznik 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 before the refactoring. This trigger the error: qemu-system-xx

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 wrote: > Untested yet, but I thought I'd share the > BIOS bits so we can agree on direction. > > In

[Qemu-devel] [PATCH v4 6/7] virtio: cleanup: init and exit function.

2013-04-24 Thread fred . konrad
From: KONRAD Frederic This clean the init and the exit functions and rename virtio_common_cleanup to virtio_cleanup. Signed-off-by: KONRAD Frederic --- hw/block/virtio-blk.c | 4 ++-- hw/char/virtio-serial-bus.c | 2 +- hw/net/virtio-net.c | 2 +- hw/scsi/virtio-scsi.c |

[Qemu-devel] [PATCH v4 5/7] virtio: remove virtiobindings.

2013-04-24 Thread fred . konrad
From: KONRAD Frederic This remove virtio-bindings, and use class instead. Signed-off-by: KONRAD Frederic --- hw/block/dataplane/virtio-blk.c | 15 - hw/net/vhost_net.c | 17 -- hw/s390x/s390-virtio-bus.c | 8 --- hw/s390x/virtio-ccw.c |

[Qemu-devel] [PATCH v4 3/7] virtio-pci: cleanup.

2013-04-24 Thread fred . konrad
From: KONRAD Frederic This remove the init, exit functions as they are no longer used. Signed-off-by: KONRAD Frederic --- hw/virtio/virtio-pci.c | 54 ++ hw/virtio/virtio-pci.h | 2 -- 2 files changed, 2 insertions(+), 54 deletions(-) diff --gi

<    1   2   3   4   5   6   7   8   9   >