Re: [Qemu-devel] [PULL v2 10/11] monitor: Add drift info to 'info jit'

2014-08-08 Thread Sebastian Tanase
- Mail original - > De: "Paolo Bonzini" > À: qemu-devel@nongnu.org > Cc: "Sebastian Tanase" > Envoyé: Jeudi 7 Août 2014 15:34:49 > Objet: [PULL v2 10/11] monitor: Add drift info to 'info jit' > > From: Sebastian Tanase > > Sh

[Qemu-devel] [PATCH] pty: Fix byte loss bug when connecting to pty

2014-07-28 Thread Sebastian Tanase
the pty is connected after having tried to reconnect. Signed-off-by: Sebastian Tanase --- To reproduce the bug, launch a qemu image that has a parallel port (say lp0) and redirect it to a pty (-parallel pty). After the VM is launched, open the corresponding pty on your host (cat /dev/pts/X) and

Re: [Qemu-devel] [PATCH V5 4/6] cpu_exec: Add sleeping algorithm

2014-07-25 Thread Sebastian Tanase
- Mail original - > De: "Paolo Bonzini" > À: "Sebastian Tanase" , qemu-devel@nongnu.org > Cc: aligu...@amazon.com, afaer...@suse.de, r...@twiddle.net, "peter maydell" > , > mich...@walle.cc, a...@alex.org.uk, stefa...@redhat.com, > lc

[Qemu-devel] [PATCH V5 6/6] monitor: Add drift info to 'info jit'

2014-07-25 Thread Sebastian Tanase
Show in 'info jit' the current delay between the host clock and the guest clock. In addition, print the maximum advance and delay of the guest compared to the host. Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué --- cpu-exec.c| 6 ++ cpus.c

[Qemu-devel] [PATCH V5 5/6] cpu_exec: Print to console if the guest is late

2014-07-25 Thread Sebastian Tanase
-off-by: Sebastian Tanase Tested-by: Camille Bégué Conflicts: cpu-exec.c --- cpu-exec.c | 32 +++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/cpu-exec.c b/cpu-exec.c index 1a725b6..7259c94 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -29,6

[Qemu-devel] [PATCH V5 4/6] cpu_exec: Add sleeping algorithm

2014-07-25 Thread Sebastian Tanase
2 clocks is 6. However, we observe that the IO tests (using fio) are slower than the cpu tests (using stress). Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué Signed-off-by: Paolo Bonzini --- cpu-exec.c | 91 cpus.c

[Qemu-devel] [PATCH V5 3/6] icount: Make icount_time_shift available everywhere

2014-07-25 Thread Sebastian Tanase
icount_time_shift is used for calculting the delay qemu has to sleep in order to synchronise the host and guest clocks. Therefore, we need it in cpu-exec.c. Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué Signed-off-by: Paolo Bonzini --- cpus.c| 8 ++-- include

[Qemu-devel] [PATCH V5 2/6] icount: Add align option to icount

2014-07-25 Thread Sebastian Tanase
The align option is used for activating the align algorithm in order to synchronise the host clock and the guest clock. Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué --- cpus.c| 19 --- include/qemu-common.h | 1 + qemu-options.hx | 15

[Qemu-devel] [PATCH V5 1/6] icount: Add QemuOpts for icount

2014-07-25 Thread 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é Signed-off-by: Paolo Bonzini --- cpus.c| 10 +- include/qemu-common.h | 3 ++- qemu-options.hx | 4 ++-- qtest.c

[Qemu-devel] [PATCH V5 0/6] icount: Implement delay algorithm between guest and host clocks

2014-07-25 Thread Sebastian Tanase
et_clock and cpu_get_icount for showing drift information -> patch 6 Important note: This patch series relies on the bug fix discussed here http://lists.gnu.org/archive/html/qemu-devel/2014-07/msg03208.html Sebastian Tanase (6): icount: Add QemuOpts for icount icount: Add align option to ic

[Qemu-devel] [PATCH v2] icount: Fix virtual clock start value on ARM

2014-07-23 Thread Sebastian Tanase
0 and increment based on the instruction counter when the vcpu is active or the qemu_icount_bias value when inactive. Signed-off-by: Sebastian Tanase --- cpus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpus.c b/cpus.c index 5e7f2cf..de18ece 100644 --- a/cpus.c +++ b/c

[Qemu-devel] [PATCH] icount: Fix virtual clock start value on ARM

2014-07-23 Thread Sebastian Tanase
When using the icount option on ARM, the virtual clock starts counting at realtime clock but it should start at 0. This small fix addresses this issue. Signed-off-by: Sebastian Tanase --- cpus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpus.c b/cpus.c index 5e7f2cf

Re: [Qemu-devel] [RFC PATCH V4 0/6] icount: Implement delay algorithm between guest and host clocks

2014-07-22 Thread Sebastian Tanase
- Mail original - > De: "Paolo Bonzini" > À: "Sebastian Tanase" > Cc: aligu...@amazon.com, afaer...@suse.de, r...@twiddle.net, "peter maydell" > , > mich...@walle.cc, a...@alex.org.uk, stefa...@redhat.com, > lcapitul...@redhat.com, cr

Re: [Qemu-devel] [RFC PATCH V4 0/6] icount: Implement delay algorithm between guest and host clocks

2014-07-22 Thread Sebastian Tanase
- Mail original - > De: "Paolo Bonzini" > À: "Sebastian Tanase" > Cc: aligu...@amazon.com, afaer...@suse.de, r...@twiddle.net, "peter maydell" > , > mich...@walle.cc, a...@alex.org.uk, stefa...@redhat.com, > lcapitul...@redhat.com, cr

Re: [Qemu-devel] [RFC PATCH V4 0/6] icount: Implement delay algorithm between guest and host clocks

2014-07-22 Thread Sebastian Tanase
- Mail original - > De: "Paolo Bonzini" > À: "Sebastian Tanase" , qemu-devel@nongnu.org > Cc: aligu...@amazon.com, afaer...@suse.de, r...@twiddle.net, "peter maydell" > , > mich...@walle.cc, a...@alex.org.uk, stefa...@redhat.com, > lc

Re: [Qemu-devel] [RFC PATCH V4 6/6] monitor: Add drift info to 'info jit'

2014-07-22 Thread Sebastian Tanase
- Mail original - > De: "Paolo Bonzini" > À: "Sebastian Tanase" > Cc: aligu...@amazon.com, afaer...@suse.de, r...@twiddle.net, "peter maydell" > , > mich...@walle.cc, a...@alex.org.uk, stefa...@redhat.com, > lcapitul...@redhat.com, cr

Re: [Qemu-devel] [RFC PATCH V4 6/6] monitor: Add drift info to 'info jit'

2014-07-22 Thread Sebastian Tanase
- Mail original - > De: "Paolo Bonzini" > À: "Sebastian Tanase" , qemu-devel@nongnu.org > Cc: aligu...@amazon.com, afaer...@suse.de, r...@twiddle.net, "peter maydell" > , > mich...@walle.cc, a...@alex.org.uk, stefa...@redhat.com, > lc

[Qemu-devel] [RFC PATCH V4 0/6] icount: Implement delay algorithm between guest and host clocks

2014-07-16 Thread Sebastian Tanase
d of 'nanosleep' for Windows hosts in patch 4 * Remove function pointers from patches 4 and 5 Sebastian Tanase (6): icount: Add QemuOpts for icount icount: Add align option to icount icount: Make icount_time_shift available everywhere cpu_exec: Add sleeping algorithm cpu_exec: Prin

[Qemu-devel] [RFC PATCH V4 6/6] monitor: Add drift info to 'info jit'

2014-07-16 Thread Sebastian Tanase
Show in 'info jit' the current delay between the host clock and the guest clock. In addition, print the maximum advance and delay of the guest compared to the host. Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué --- cpu-exec.c| 19 ++---

[Qemu-devel] [RFC PATCH V4 2/6] icount: Add align option to icount

2014-07-16 Thread Sebastian Tanase
The align option is used for activating the align algorithm in order to synchronise the host clock and the guest clock. Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué --- cpus.c| 19 --- include/qemu-common.h | 1 + qemu-options.hx | 15

[Qemu-devel] [RFC PATCH V4 5/6] cpu_exec: Print to console if the guest is late

2014-07-16 Thread Sebastian Tanase
-off-by: Sebastian Tanase Tested-by: Camille Bégué Conflicts: cpu-exec.c --- cpu-exec.c | 39 ++- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/cpu-exec.c b/cpu-exec.c index 9ed6ac1..b62df15 100644 --- a/cpu-exec.c +++ b/cpu-exec.c

[Qemu-devel] [RFC PATCH V4 4/6] cpu_exec: Add sleeping algorithm

2014-07-16 Thread Sebastian Tanase
2 clocks is 6. However, we observe that the IO tests (using fio) are slower than the cpu tests (using stress). Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué Signed-off-by: Paolo Bonzini --- cpu-exec.c | 97 ++ 1 file

[Qemu-devel] [RFC PATCH V4 1/6] icount: Add QemuOpts for icount

2014-07-16 Thread 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é Signed-off-by: Paolo Bonzini --- cpus.c| 10 +- include/qemu-common.h | 3 ++- qemu-options.hx | 4 ++-- qtest.c

[Qemu-devel] [RFC PATCH V4 3/6] icount: Make icount_time_shift available everywhere

2014-07-16 Thread Sebastian Tanase
icount_time_shift is used for calculting the delay qemu has to sleep in order to synchronise the host and guest clocks. Therefore, we need it in cpu-exec.c. Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué Signed-off-by: Paolo Bonzini --- cpus.c| 8 ++-- include

Re: [Qemu-devel] [RFC PATCH V3 0/6] icount: Implement delay algorithm between guest and host clocks

2014-07-04 Thread Sebastian Tanase
- Mail original - > De: "Paolo Bonzini" > À: "Sebastian Tanase" , qemu-devel@nongnu.org > Cc: aligu...@amazon.com, afaer...@suse.de, r...@twiddle.net, "peter maydell" > , > mich...@walle.cc, a...@alex.org.uk, stefa...@redhat.com, > lc

Re: [Qemu-devel] [RFC PATCH V3 6/6] monitor: Add drift info to 'info jit'

2014-07-01 Thread Sebastian Tanase
- Mail original - > De: "Frederic Konrad" > À: "Sebastian Tanase" , qemu-devel@nongnu.org > Cc: kw...@redhat.com, "peter maydell" , > a...@alex.org.uk, wenchaoq...@gmail.com, > quint...@redhat.com, m...@tls.msk.ru, m...@redhat.com, stefa.

Re: [Qemu-devel] [RFC PATCH V3 0/6] icount: Implement delay algorithm between guest and host clocks

2014-07-01 Thread Sebastian Tanase
- Mail original - > De: "Paolo Bonzini" > À: "Sebastian Tanase" , qemu-devel@nongnu.org > Cc: aligu...@amazon.com, afaer...@suse.de, r...@twiddle.net, "peter maydell" > , > mich...@walle.cc, a...@alex.org.uk, stefa...@redhat.com, > lc

Re: [Qemu-devel] [RFC PATCH V3 5/6] cpu_exec: Print to console if the guest is late

2014-07-01 Thread Sebastian Tanase
- Mail original - > De: "Paolo Bonzini" > À: "Sebastian Tanase" , qemu-devel@nongnu.org > Cc: aligu...@amazon.com, afaer...@suse.de, r...@twiddle.net, "peter maydell" > , > mich...@walle.cc, a...@alex.org.uk, stefa...@redhat.com, > lc

Re: [Qemu-devel] [RFC PATCH V3 4/6] cpu_exec: Add sleeping algorithm

2014-07-01 Thread Sebastian Tanase
- Mail original - > De: "Paolo Bonzini" > À: "Sebastian Tanase" , qemu-devel@nongnu.org > Cc: aligu...@amazon.com, afaer...@suse.de, r...@twiddle.net, "peter maydell" > , > mich...@walle.cc, a...@alex.org.uk, stefa...@redhat.com, > lc

Re: [Qemu-devel] [RFC PATCH V3 2/6] icount: Add align option to icount

2014-07-01 Thread Sebastian Tanase
- Mail original - > De: "Paolo Bonzini" > À: "Sebastian Tanase" , qemu-devel@nongnu.org > Cc: aligu...@amazon.com, afaer...@suse.de, r...@twiddle.net, "peter maydell" > , > mich...@walle.cc, a...@alex.org.uk, stefa...@redhat.com, > lc

[Qemu-devel] [RFC PATCH V3 0/6] icount: Implement delay algorithm between guest and host clocks

2014-06-30 Thread Sebastian Tanase
d by Paolo Bonzini). * Change delay algorithm to use structures and function pointers in order to avoid !defined(CONFIG_USER_ONLY) (as suggested by Paolo Bonzini). * Limit the number of printed messages and add drift information in the 'info jit' command (as suggested by Paolo Bonzini

[Qemu-devel] [RFC PATCH V3 2/6] icount: Add align option to icount

2014-06-30 Thread Sebastian Tanase
The align option is used for activating the align algorithm in order to synchronise the host clock and the guest clock. Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué --- cpus.c| 13 + include/qemu-common.h | 1 + qemu-options.hx | 15

[Qemu-devel] [RFC PATCH V3 4/6] cpu_exec: Add sleeping algorithm

2014-06-30 Thread Sebastian Tanase
2 clocks is 6. However, we observe that the IO tests (using fio) are slower than the cpu tests (using stress). Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué --- cpu-exec.c | 112 + 1 file changed, 112 insertions(+) diff

[Qemu-devel] [RFC PATCH V3 5/6] cpu_exec: Print to console if the guest is late

2014-06-30 Thread Sebastian Tanase
-off-by: Sebastian Tanase Tested-by: Camille Bégué --- cpu-exec.c | 94 +++--- 1 file changed, 90 insertions(+), 4 deletions(-) diff --git a/cpu-exec.c b/cpu-exec.c index ac741b7..4a4533d 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -24,12

[Qemu-devel] [RFC PATCH V3 3/6] icount: Make icount_time_shift available everywhere

2014-06-30 Thread Sebastian Tanase
icount_time_shift is used for calculting the delay qemu has to sleep in order to synchronise the host and guest clocks. Therefore, we need it in cpu-exec.c. Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué --- cpus.c| 8 ++-- include/qemu-common.h | 1 + 2 files

[Qemu-devel] [RFC PATCH V3 1/6] icount: Add QemuOpts for icount

2014-06-30 Thread 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 | 13

[Qemu-devel] [RFC PATCH V3 6/6] monitor: Add drift info to 'info jit'

2014-06-30 Thread Sebastian Tanase
Show in 'info jit' the current delay between the host clock and the guest clock. In addition, print the maximum advance and delay of the guest compared to the host. Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué --- cpu-exec.c

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

2014-06-26 Thread Sebastian Tanase
Hello, I'll be sending a new version (V3) of the patches on Monday. The patches add QemuOpts handling to the "-icount option". If you want I can only send the part of the patch that adds QemuOpts support. Best regards, Sebastian Tanase - Mail original - > De: &q

Re: [Qemu-devel] [RFC PATCH V2 5/5] cpu_exec: Print to console if the guest is late

2014-06-13 Thread Sebastian Tanase
- Mail original - > De: "Paolo Bonzini" > À: "Sebastian Tanase" , qemu-devel@nongnu.org > Cc: aligu...@amazon.com, afaer...@suse.de, r...@twiddle.net, "peter maydell" > , > mich...@walle.cc, a...@alex.org.uk, stefa...@redhat.com, > lc

[Qemu-devel] [RFC PATCH V2 0/5] icount: Implement delay algorithm between guest and host clocks

2014-06-13 Thread Sebastian Tanase
take into account the new configure_icount() (patch 1). * Surround delay code in cpu-exec.c with !defined(CONFIG_USER_ONLY) (patch 3). * Clean up delay code in cpu-exec.c as suggested by Paolo Bonzini and Juan Quintela (patch 3). * Take into account initial offset between real and virtual clocks (pat

[Qemu-devel] [RFC PATCH V2 5/5] cpu_exec: Print to console if the guest is late

2014-06-13 Thread Sebastian Tanase
If the align option is enabled, we print to the user whenever the guest clock is behind the host clock in order for he/she to have a hint about the actual performance. The maximum print interval is 2s so as not to spam the console. Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué

[Qemu-devel] [RFC PATCH V2 4/5] icount_warp: Take into account initial offset between clocks

2014-06-13 Thread Sebastian Tanase
don't have this problem (for example ARM) the offset will always be 0. Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué --- cpu-exec.c| 2 +- cpus.c| 11 +++ include/qemu-common.h | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git

[Qemu-devel] [RFC PATCH V2 2/5] icount: Make icount_time_shift available everywhere

2014-06-13 Thread Sebastian Tanase
icount_time_shift is used for calculting the delay qemu has to sleep in order to synchronise the host and guest clocks. Therefore, we need it in cpu-exec.c. Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué --- cpus.c| 8 ++-- include/qemu-common.h | 1 + 2 files

[Qemu-devel] [RFC PATCH V2 1/5] icount: Add 'align' and 'icount' options

2014-06-13 Thread Sebastian Tanase
The align option is used for activating the align algorithm in order to synchronise the host clock and the guest clock. Therefore we slightly modified the existing icount option. Thus, the new way to specify an icount is '-icount [icount=][N|auto][,align]' Signed-off-by: Sebastian Tana

[Qemu-devel] [RFC PATCH V2 3/5] cpu_exec: Add sleeping algorithm

2014-06-13 Thread Sebastian Tanase
-by: Sebastian Tanase Tested-by: Camille Bégué --- At first, we tried to approximate at each for loop the real time elapsed while searching for a TB (generating or retrieving from cache) and executing it. We would then approximate the virtual time corresponding to the number of virtual

Re: [Qemu-devel] [RFC PATCH 2/4] icount: Make icount_time_shift available everywhere

2014-05-28 Thread Sebastian Tanase
- Mail original - > De: "Juan Quintela" > À: "Sebastian Tanase" > Cc: qemu-devel@nongnu.org, aligu...@amazon.com, afaer...@suse.de, > r...@twiddle.net, "peter maydell" > , mich...@walle.cc, pbonz...@redhat.com, > a...@alex.org.

Re: [Qemu-devel] [RFC PATCH 3/4] cpu_exec: Add sleeping algorithm

2014-05-28 Thread Sebastian Tanase
- Mail original - > De: "Paolo Bonzini" > À: "Sebastian Tanase" > Cc: aligu...@amazon.com, afaer...@suse.de, r...@twiddle.net, "peter maydell" > , > mich...@walle.cc, a...@alex.org.uk, stefa...@redhat.com, kw...@redhat.com, > quint...@

[Qemu-devel] [RFC PATCH 3/4] cpu_exec: Add sleeping algorithm

2014-05-27 Thread Sebastian Tanase
-by: Sebastian Tanase Tested-by: Camille Bégué --- At first, we tried to approximate at each for loop the real time elapsed while searching for a TB (generating or retrieving from cache) and executing it. We would then approximate the virtual time corresponding to the number of virtual

[Qemu-devel] [RFC PATCH 1/4] icount: Add 'align' and 'icount' options

2014-05-27 Thread Sebastian Tanase
The align option is used for activating the align algorithm in order to synchronise the host clock and the guest clock. Therefore we slightly modified the existing icount option. Thus, the new way to specify an icount is '-icount [icount=][N|auto][,align]' Signed-off-by: Sebastian Tana

[Qemu-devel] [RFC PATCH 0/4] icount: Implement delay algorithm between guest and host clocks

2014-05-27 Thread Sebastian Tanase
every 2 seconds, and we only printif the align option is enabled. Sebastian Tanase (4): icount: Add 'align' and 'icount' options icount: Make icount_time_shift available everywhere cpu_exec: Add sleeping algorithm cpu_exec: Print t

[Qemu-devel] [RFC PATCH 2/4] icount: Make icount_time_shift available everywhere

2014-05-27 Thread Sebastian Tanase
icount_time_shift is used for calculting the delay qemu has to sleep in order to synchronise the host and guest clocks. Therefore, we need it in cpu-exec.c. Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué --- cpus.c| 10 -- include/qemu-common.h | 1 + 2 files

[Qemu-devel] [RFC PATCH 4/4] cpu_exec: Print to console if the guest is late

2014-05-27 Thread Sebastian Tanase
If the align option is enabled, we print to the user whenever the guest clock is behind the host clock in order for he/she to have a hint about the actual performance. The maximum print interval is 2s so as not to spam the console. Signed-off-by: Sebastian Tanase Tested-by: Camille Bégué

Re: [Qemu-devel] [RFC PATCH 3/4] cpu_exec: Add sleeping algorithm

2014-05-27 Thread Sebastian Tanase
Hello, First of all thank you for your feedback. - Mail original - > De: "Paolo Bonzini" > À: "Sebastian Tanase" , qemu-devel@nongnu.org > Cc: aligu...@amazon.com, afaer...@suse.de, r...@twiddle.net, "peter maydell" > , > mich...@walle.