Skip to content
Commit 829600a5 authored by Pavel Dovgalyuk's avatar Pavel Dovgalyuk Committed by Paolo Bonzini
Browse files

hpet: recover timer offset correctly



HPET saves its state by calculating the current time and recovers timer
offset using this calculated value. But these calculations include
divisions and multiplications. Therefore the timer state cannot be recovered
precise enough.
This patch introduces saving of the original value of the offset to
preserve the determinism of the timer.

Signed-off-by: default avatarPavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Signed-off-by: default avatarMaria Klimushenkova <maria.klimushenkova@ispras.ru>
Reviewed-by: default avatarJuan Quintela <quintela@redhat.com>

--
v3: Added compat property for correct migration.
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 8cd91ace
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment