Commit ebbf92b
committed
fix: reset timer_stop flag before spawning timer thread
During evolve(), the guest init sequence halts via OutBAction::Halt,
which sets timer_stop=true. When the guest later configures a timer
via PvTimerConfig, the timer thread inherits the already-true stop
flag and exits immediately without ever firing.
Reset the flag to false right before spawning the timer thread in
both KVM and MSHV backends. WHP was not affected because it creates
a fresh AtomicBool each time.
Signed-off-by: danbugs <danilochiarlone@gmail.com>1 parent 7836f1c commit ebbf92b
2 files changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
263 | 266 | | |
264 | 267 | | |
265 | 268 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
642 | 645 | | |
643 | 646 | | |
644 | 647 | | |
| |||
0 commit comments