From: Jan Kiszka <jan.kiszka@web.de>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: edgar.iglesias@gmail.com, mtosatti@redhat.com, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH 1/3] qemu_next_deadline should not consider host-time timers
Date: Sat, 05 Mar 2011 19:07:35 +0100 [thread overview]
Message-ID: <4D727BE7.1090001@web.de> (raw)
In-Reply-To: <1299345255-577-2-git-send-email-pbonzini@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1110 bytes --]
On 2011-03-05 18:14, Paolo Bonzini wrote:
> It is purely for icount-based virtual timers.
How about renaming the function to clarify its scope?
Jan
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> qemu-timer.c | 7 +------
> 1 files changed, 1 insertions(+), 6 deletions(-)
>
> diff --git a/qemu-timer.c b/qemu-timer.c
> index 88c7b28..06fa507 100644
> --- a/qemu-timer.c
> +++ b/qemu-timer.c
> @@ -689,16 +689,11 @@ int64_t qemu_next_deadline(void)
> /* To avoid problems with overflow limit this to 2^32. */
> int64_t delta = INT32_MAX;
>
> + assert(use_icount);
> if (active_timers[QEMU_CLOCK_VIRTUAL]) {
> delta = active_timers[QEMU_CLOCK_VIRTUAL]->expire_time -
> qemu_get_clock_ns(vm_clock);
> }
> - if (active_timers[QEMU_CLOCK_HOST]) {
> - int64_t hdelta = active_timers[QEMU_CLOCK_HOST]->expire_time -
> - qemu_get_clock_ns(host_clock);
> - if (hdelta < delta)
> - delta = hdelta;
> - }
>
> if (delta < 0)
> delta = 0;
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]
next prev parent reply other threads:[~2011-03-05 18:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-05 17:14 [Qemu-devel] [PATCH 0/3] really fix -icount with iothread Paolo Bonzini
2011-03-05 17:14 ` [Qemu-devel] [PATCH 1/3] qemu_next_deadline should not consider host-time timers Paolo Bonzini
2011-03-05 18:07 ` Jan Kiszka [this message]
2011-03-09 13:40 ` [Qemu-devel] " Paolo Bonzini
2011-03-05 17:14 ` [Qemu-devel] [PATCH 2/3] Revert wrong fix for -icount in the iothread case Paolo Bonzini
2011-03-05 17:14 ` [Qemu-devel] [PATCH 3/3] really fix " Paolo Bonzini
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=4D727BE7.1090001@web.de \
--to=jan.kiszka@web.de \
--cc=edgar.iglesias@gmail.com \
--cc=mtosatti@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/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.