acrn-hypervisor/hypervisor/include/common
Liang Yi 6805510d77 hv/mod_timer: refine timer interface
1. do not allow external modules to touch internal field of a timer.
2. make timer mode internal, period_in_ticks will decide the mode.

API wise:
1. the "mode" parameter was taken out of initialize_timer().
2. a new function update_timer() was added to update the timeout and
   period fields.
3. the timer_expired() function was extended with an output parameter
   to return the remaining cycles before expiration.

Also, the "fire_tsc" field name of hv_timer was renamed to "timeout".
With the new API, however, this change should not concern user code.

Tracked-On: #5920

Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
2021-05-18 16:43:28 +08:00
..
delay.h hv/mod_timer: separate delay functions from the timer module 2021-05-18 16:43:28 +08:00
event.h hv: mod: do not use explicit arch name when including headers 2021-05-08 11:15:46 +08:00
hypercall.h hv: hypercalls: refactor permission-checking and dispatching logic 2021-05-12 13:43:41 +08:00
irq.h hv: mod: do not use explicit arch name when including headers 2021-05-08 11:15:46 +08:00
ptdev.h hv/mod_timer: make timer into an arch-independent module 2021-05-18 16:43:28 +08:00
schedule.h hv/mod_timer: make timer into an arch-independent module 2021-05-18 16:43:28 +08:00
softirq.h hv: remove unused MACROs 2018-09-18 09:43:43 +08:00
ticks.h hv/mod_timer: split tsc handling code from timer. 2021-05-18 16:43:28 +08:00
timer.h hv/mod_timer: refine timer interface 2021-05-18 16:43:28 +08:00
vm_uuids.h HV: add VM uuid and type for pre-launched RTVM 2020-07-23 21:58:32 +08:00