diff options
| author | Christian Krinitsin <mail@krinitsin.com> | 2025-06-01 21:35:14 +0200 |
|---|---|---|
| committer | Christian Krinitsin <mail@krinitsin.com> | 2025-06-01 21:35:14 +0200 |
| commit | 3e4c5a6261770bced301b5e74233e7866166ea5b (patch) | |
| tree | 9379fddaba693ef8a045da06efee8529baa5f6f4 /gitlab/issues_text/target_missing/host_missing/accel_missing/2703 | |
| parent | e5634e2806195bee44407853c4bf8776f7abfa4f (diff) | |
| download | qemu-analysis-3e4c5a6261770bced301b5e74233e7866166ea5b.tar.gz qemu-analysis-3e4c5a6261770bced301b5e74233e7866166ea5b.zip | |
clean up repository
Diffstat (limited to 'gitlab/issues_text/target_missing/host_missing/accel_missing/2703')
| -rw-r--r-- | gitlab/issues_text/target_missing/host_missing/accel_missing/2703 | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/gitlab/issues_text/target_missing/host_missing/accel_missing/2703 b/gitlab/issues_text/target_missing/host_missing/accel_missing/2703 deleted file mode 100644 index e3e129c53..000000000 --- a/gitlab/issues_text/target_missing/host_missing/accel_missing/2703 +++ /dev/null @@ -1,40 +0,0 @@ -ptimer period sporadically too long -Description of problem: -A ptimer in a custom device with a frequency of 10kHz is sporadically called after more than 100,000ns in virtual time have elapsed. - -With a icount shift of 4 or 5 this happens almost everytime before the linux guest can even finish booting. - -With a shift of 0 this happens very rarely, but it does occur from time to time. -Steps to reproduce: -1. setup a ptimer with a frequency of 10kHz and assert that the time passed between callbacks is exactly 100,000ns -2. run -3. wait for boom -Additional information: -``` -// Timer setup -ptimer_transaction_begin(state->timer); - -ptimer_set_freq(state->timer, 10000); -ptimer_run(state->timer, 0); - -ptimer_transaction_commit(state->timer); -``` -``` -// timer callback -int64_t now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); -static int64_t last = 0; -if (last > 0) -{ - if (now - last != 100000) - { - fprintf(stderr, "error tick %ld after %ld is incorrect: %ld\n", now, last, now - last); - assert(0); - } -} -last = now; -``` - -``` -error tick 47867503135 after 47867400000 is incorrect: 103135 -qemu-system-x86_64: ../...file.c:119: timer_callback: Assertion `0' failed. -``` |