From: Paolo Bonzini <pbonzini@redhat.com>
To: Sergey Fedorov <serge.fdrv@gmail.com>, qemu-devel@nongnu.org
Cc: "Richard Henderson" <rth@twiddle.net>,
"Stefan Hajnoczi" <stefanha@redhat.com>,
"Alex Bligh" <alex@alex.org.uk>,
"Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] [PATCH] qtest: fix qtest_clock_warp() for no deadline case
Date: Tue, 10 Jun 2014 13:03:23 +0200 [thread overview]
Message-ID: <5396E5FB.50509@redhat.com> (raw)
In-Reply-To: <1402391428-3123-1-git-send-email-serge.fdrv@gmail.com>
Il 10/06/2014 11:10, Sergey Fedorov ha scritto:
> Use dedicated qemu_soonest_timeout() instead of MIN().
>
> Signed-off-by: Sergey Fedorov <serge.fdrv@gmail.com>
> ---
> cpus.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/cpus.c b/cpus.c
> index dd7ac13..af06dc0 100644
> --- a/cpus.c
> +++ b/cpus.c
> @@ -347,7 +347,7 @@ void qtest_clock_warp(int64_t dest)
> assert(qtest_enabled());
> while (clock < dest) {
> int64_t deadline = qemu_clock_deadline_ns_all(QEMU_CLOCK_VIRTUAL);
> - int64_t warp = MIN(dest - clock, deadline);
> + int64_t warp = qemu_soonest_timeout(dest - clock, deadline);
> seqlock_write_lock(&timers_state.vm_clock_seqlock);
> qemu_icount_bias += warp;
> seqlock_write_unlock(&timers_state.vm_clock_seqlock);
>
Thanks, I will make sure this gets into QEMU 2.1.
Paolo
next prev parent reply other threads:[~2014-06-10 11:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-10 9:10 [Qemu-devel] [PATCH] qtest: fix qtest_clock_warp() for no deadline case Sergey Fedorov
2014-06-10 11:03 ` Paolo Bonzini [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-06-09 16:42 Sergey Fedorov
2014-06-09 17:36 ` Alex Bligh
2014-06-10 9:08 ` Sergey Fedorov
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=5396E5FB.50509@redhat.com \
--to=pbonzini@redhat.com \
--cc=afaerber@suse.de \
--cc=alex@alex.org.uk \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
--cc=serge.fdrv@gmail.com \
--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 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).