qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Cc: Steffen Liebergeld <usenet@gmx.eu>
Subject: Re: [Qemu-devel] Re: Precise guest instruction count.
Date: Wed, 11 Mar 2009 13:13:20 +0000	[thread overview]
Message-ID: <200903111313.20980.paul@codesourcery.com> (raw)
In-Reply-To: <gp8c91$g22$1@ger.gmane.org>

> By turning of all timers in Qemu I hope to disable all timer interrupts for
> the guest. The results I get are not correct for the first time the code is
> run, but for all subsequent runs. In the first run, the instruction count
> has 12 additional instructions, which are not actually executed.
>
> What is the cause of those additional instructions?

Probably you're not reading the correct value. Like I said, for performance 
reasons the counter is only valid at certain points.

Try instead implementing your timer as a peripheral.

Paul

  reply	other threads:[~2009-03-11 13:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-09  9:38 [Qemu-devel] Precise guest instruction count Steffen Liebergeld
2009-03-09 21:56 ` Laurent Desnogues
2009-03-11 10:33   ` [Qemu-devel] " Steffen Liebergeld
2009-03-11 10:42     ` Laurent Desnogues
2009-03-11 12:53       ` Steffen Liebergeld
2009-03-11 13:13         ` Paul Brook [this message]
2009-03-10  1:55 ` [Qemu-devel] " Paul Brook
2009-03-11 11:45   ` [Qemu-devel] " Steffen Liebergeld

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=200903111313.20980.paul@codesourcery.com \
    --to=paul@codesourcery.com \
    --cc=qemu-devel@nongnu.org \
    --cc=usenet@gmx.eu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).