Skip to content

lguest: TSC & hrtimers

James Morris virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v5 Latest2 patches 1 replyIn review

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lguest: Add TSC clocksourcearch/i386/kernel/tsc.c drivers/lguest/hypercalls.c drivers/lguest/lguest.c +1 more+33 -10 replies
2/2lguest: Convert to hrtimer frameworkdrivers/lguest/hypercalls.c drivers/lguest/interrupts_and_traps.c drivers/lguest/lg.h +3 more+111 -341 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH 0/2 v05] lguest: TSC & hrtimers

The following patches are the latest update of the TSC and hrtimer patches I posted on 29/03.

Rusty's original TSC patch has been resynced to the latest lguest repo, as has the hrtimer patch, which also incorporates feedback from Jeremy & Rusty:

- Change clock event hrtimer to absolute time. 'now' is captured in the host during the hypercall.
- Propagate -ETIME back to the guest timer framework
- Use the API-provided delta via set_next_event()
- Move clock-related code to interrupts_and_traps.c
- Rename hypercall to LHCALL_SET_CLOCKEVENT

This patch also completes previous critical todo items, although handling TSC frequency scaling remains to be addressed.

Please review and apply if ok.

Signature · 2 lines
James Morris
<[email protected]>