Re: [PATCH] Remove support for CLOCK_MONOTONIC not being defined

2020-02-04 Thread Peter Maydell
On Sat, 1 Feb 2020 at 17:22, Peter Maydell wrote: > I've left in the runtime-check in init_get_clock(), as it's > less easy to see if the fallback there is ever used. That code was first added in 1dce7c3c2244 in 2006, so it seems at least plausible that we could remove the runtime-check too at so

Re: [PATCH] Remove support for CLOCK_MONOTONIC not being defined

2020-02-04 Thread Paolo Bonzini
On 01/02/20 18:22, Peter Maydell wrote: > Some older parts of QEMU's codebase assume that CLOCK_MONOTONIC > might not be defined by the host OS, and have workarounds to > deal with this. However, more recently (notably in commit > 50290c002c045280f8d for qemu-img in mid-2019, but also much > earlie

[PATCH] Remove support for CLOCK_MONOTONIC not being defined

2020-02-01 Thread Peter Maydell
Some older parts of QEMU's codebase assume that CLOCK_MONOTONIC might not be defined by the host OS, and have workarounds to deal with this. However, more recently (notably in commit 50290c002c045280f8d for qemu-img in mid-2019, but also much earlier in 2011 in commit 22795174a37e0 for ui/spice-dis