Re: [Qemu-devel] [PATCH] qtest: fix qtest_clock_warp() for no deadline case

2014-06-10 Thread Paolo Bonzini
Il 10/06/2014 11:10, Sergey Fedorov ha scritto: Use dedicated qemu_soonest_timeout() instead of MIN(). Signed-off-by: Sergey Fedorov --- 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

[Qemu-devel] [PATCH] qtest: fix qtest_clock_warp() for no deadline case

2014-06-10 Thread Sergey Fedorov
Use dedicated qemu_soonest_timeout() instead of MIN(). Signed-off-by: Sergey Fedorov --- 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)

Re: [Qemu-devel] [PATCH] qtest: fix qtest_clock_warp() for no deadline case

2014-06-10 Thread Sergey Fedorov
On 09.06.2014 21:36, Alex Bligh wrote: > On 9 Jun 2014, at 17:42, Sergey Fedorov wrote: > >> If there is no deadline across all timerlists attached to the clock >> then qemu_clock_deadline_ns_all() returns -1. Cast it to unsinged so >> MIN() do not treat it as minimum. >> >> Signed-off-by: Sergey F

Re: [Qemu-devel] [PATCH] qtest: fix qtest_clock_warp() for no deadline case

2014-06-09 Thread Alex Bligh
On 9 Jun 2014, at 17:42, Sergey Fedorov wrote: > If there is no deadline across all timerlists attached to the clock > then qemu_clock_deadline_ns_all() returns -1. Cast it to unsinged so > MIN() do not treat it as minimum. > > Signed-off-by: Sergey Fedorov > --- > cpus.c | 4 ++-- > 1 file chan

[Qemu-devel] [PATCH] qtest: fix qtest_clock_warp() for no deadline case

2014-06-09 Thread Sergey Fedorov
If there is no deadline across all timerlists attached to the clock then qemu_clock_deadline_ns_all() returns -1. Cast it to unsinged so MIN() do not treat it as minimum. Signed-off-by: Sergey Fedorov --- cpus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpus.c b/cpu