diff options
| author | Nicholas Piggin <[email protected]> | 2021-11-23 19:51:45 +1000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2021-11-24 21:08:57 +1100 |
| commit | 25aa145856cd0d94864bf501218be84a7c8062ae (patch) | |
| tree | 55dc9efe464467fcca93073f18e7f47a66a6c8f0 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 34bf08a2079fffc7206a1ae93086ab8167e0afb6 (diff) | |
powerpc/time: add API for KVM to re-arm the host timer/decrementer
Rather than have KVM look up the host timer and fiddle with the
irq-work internal details, have the powerpc/time.c code provide a
function for KVM to re-arm the Linux timer code when exiting a
guest.
This is implementation has an improvement over existing code of
marking a decrementer interrupt as soft-pending if a timer has
expired, rather than setting DEC to a -ve value, which tended to
cause host timers to take two interrupts (first hdec to exit the
guest, then the immediate dec).
Signed-off-by: Nicholas Piggin <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions