Skip to content

x86_64/hpet: guard against subtraction underflow - #364

Merged
dreamliner787-9 merged 1 commit into
mainfrom
hpet_fix_4
Jul 28, 2026
Merged

x86_64/hpet: guard against subtraction underflow#364
dreamliner787-9 merged 1 commit into
mainfrom
hpet_fix_4

Conversation

@dreamliner787-9

Copy link
Copy Markdown
Collaborator

The subtraction in timer_n_compute_timeout_delta_as_tsc() can underflow because the VMM might not be scheduled for enough time. So we need to guard against subtraction underflow, and detect if the HPET is running behind the deadline.

The subtraction in timer_n_compute_timeout_delta_as_tsc() can underflow
because the VMM might not be scheduled for enough time. So we need to
guard against subtraction underflow, and detect if the HPET is running
behind the deadline.

Signed-off-by: Bill Nguyen <bill.nguyen@unsw.edu.au>
@dreamliner787-9
dreamliner787-9 merged commit 59a50db into main Jul 28, 2026
11 checks passed
@dreamliner787-9
dreamliner787-9 deleted the hpet_fix_4 branch July 28, 2026 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant