Re: [PATCH v1] Use CLOCK_MONOTONIC_RAW if available for get_clock().

2021-09-30 Thread Joe Tanen
-adjusted timebase. Would the behavior from my patch be more appropriate as a command-line option? v/r Joe On 9/30/21, 12:11 PM, "Peter Maydell" wrote: On Thu, 30 Sept 2021 at 17:04, Joe Tanen wrote: > > CLOCK_MONOTONIC_RAW provides an unadjusted system clock o

[PATCH v1] Use CLOCK_MONOTONIC_RAW if available for get_clock().

2021-09-30 Thread Joe Tanen
. Since CLOCK_MONOTONIC_RAW might not be available on all platforms, revert to using CLOCK_MONOTONIC if it is not present. Signed-off-by: Joe Tanen --- include/qemu/timer.h | 3 ++- util/qemu-timer-common.c | 11 +++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/include

Issue with time going backwards on OSX

2021-09-28 Thread Joe Tanen
Hello, I posted this on qemu-discuss, but it doesn't seem like anybody else has seen this issue. I figured I'd try here to see if anybody had any thoughts. I'm using qemu-system-aarch64 v5.2 on OSX 11.6. While reading cntvct_el0, I've seen the ticks count go backwards. I dug into the qemu