All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>,
	Sebastian Tanase <sebastian.tanase@openwide.fr>
Cc: "Andreas Färber" <afaerber@suse.de>,
	"Stefan Hajnoczi" <stefanha@redhat.com>,
	"QEMU Developers" <qemu-devel@nongnu.org>,
	"Alex Bligh" <alex@alex.org.uk>,
	"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] icount: Fix virtual clock start value on ARM
Date: Wed, 23 Jul 2014 11:45:37 +0200	[thread overview]
Message-ID: <53CF8441.6040008@redhat.com> (raw)
In-Reply-To: <CAFEAcA91+_h8Vu=OEu_1GLNoVgJRQVoN426f3De0eb+eOwf2yQ@mail.gmail.com>

Il 23/07/2014 11:41, Peter Maydell ha scritto:
> On 23 July 2014 10:11, Sebastian Tanase <sebastian.tanase@openwide.fr> wrote:
>> 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 <sebastian.tanase@openwide.fr>
>> ---
>>  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/cpus.c
>> @@ -104,7 +104,7 @@ static bool all_cpu_threads_idle(void)
>>
>>  /* Compensate for varying guest execution speed.  */
>>  static int64_t qemu_icount_bias;
>> -static int64_t vm_clock_warp_start;
>> +static int64_t vm_clock_warp_start = -1;
>>  /* Conversion factor from emulated instructions to virtual clock ticks.  */
>>  static int icount_time_shift;
>>  /* Arbitrarily pick 1MIPS as the minimum allowable speed.  */
> 
> Commit message says this is fixing an ARM bug but this is
> a generic file. Is this actually a bug with wider scope than just
> ARM?

Yes, see the discussion yesterday under "Re: [RFC PATCH V4 6/6] monitor:
Add drift info to 'info jit'" and "Re: [RFC PATCH V4 0/6] icount:
Implement delay algorithm between guest and host clocks".

Paolo

      reply	other threads:[~2014-07-23  9:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-23  9:11 [Qemu-devel] [PATCH] icount: Fix virtual clock start value on ARM Sebastian Tanase
2014-07-23  9:16 ` Paolo Bonzini
2014-07-23  9:20   ` Andreas Färber
2014-07-23  9:41 ` Peter Maydell
2014-07-23  9:45   ` Paolo Bonzini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53CF8441.6040008@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=afaerber@suse.de \
    --cc=alex@alex.org.uk \
    --cc=mst@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=sebastian.tanase@openwide.fr \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.