[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC] [PATCHv10 19/31] aio / timers: Use all timerlists
From: |
Alex Bligh |
Subject: |
Re: [Qemu-devel] [RFC] [PATCHv10 19/31] aio / timers: Use all timerlists in icount warp calculations |
Date: |
Thu, 15 Aug 2013 19:31:16 +0100 |
On 15 Aug 2013, at 13:37, Alex Bligh wrote:
>> I see no value in a spurious wakeup if no deadline was set, but it's
>> harmless.
>>
>> As for overflow, I don't really understand how INT32_MAX prevents
>> overflow. If the base timer value we're adding to is already huge then
>> INT32_MAX could still overflow it.
>
> This is my understanding. I don't think we need to worry about overflowing
> int64_t.
I think this /might/ refer to the similar bit of nastiness in tcg_cpu_exec,
where the parameter gets sent off to qemu_icount_round. It isn't evident
this has been built with signed integers in mind. I'm hesitant to fix one
without the other.
Given no one has been jumping up and down saying "I know how icount works
and you should just delete these", I think I'll leave them in for v11,
as the result is every two and a half seconds there's an extra wake
up when using icount, as far as I can tell.
If the jumping up and down person appears, he/she can delete a few lines.
So v11 is currently planned just to fix Jan's include file issue.
--
Alex Bligh
- Re: [Qemu-devel] [RFC] [PATCHv10 09/31] aio / timers: Untangle include files, (continued)
[Qemu-devel] [RFC] [PATCHv10 16/31] aio / timers: Convert mainloop to use timeout, Alex Bligh, 2013/08/11
[Qemu-devel] [RFC] [PATCHv10 18/31] aio / timers: Introduce new API timer_new and friends, Alex Bligh, 2013/08/11
[Qemu-devel] [RFC] [PATCHv10 17/31] aio / timers: On timer modification, qemu_notify or aio_notify, Alex Bligh, 2013/08/11
[Qemu-devel] [RFC] [PATCHv10 22/31] aio / timers: Remove legacy qemu_clock_deadline & qemu_timerlist_deadline, Alex Bligh, 2013/08/11
[Qemu-devel] [RFC] [PATCHv10 19/31] aio / timers: Use all timerlists in icount warp calculations, Alex Bligh, 2013/08/11
[Qemu-devel] [RFC] [PATCHv10 23/31] aio / timers: Add qemu_clock_get_ms and qemu_clock_get_ms, Alex Bligh, 2013/08/11
[Qemu-devel] [RFC] [PATCHv10 08/31] aio / timers: Split QEMUClock into QEMUClock and QEMUTimerList, Alex Bligh, 2013/08/11
[Qemu-devel] [RFC] [PATCHv10 20/31] aio / timers: Add documentation and new format calls, Alex Bligh, 2013/08/11
[Qemu-devel] [RFC] [PATCHv10 27/31] aio / timers: convert block_job_sleep_ns and co_sleep_ns to new API, Alex Bligh, 2013/08/11
[Qemu-devel] [RFC] [PATCHv10 28/31] aio / timers: Add test harness for AioContext timers, Alex Bligh, 2013/08/11