#include <linux/clocksource.h>
#include <linux/hrtimer.h>
Go to the source code of this file.
|
void | get_timer_map (struct kvm_vcpu *vcpu, struct timer_map *map) |
|
int __init | kvm_timer_hyp_init (bool has_gic) |
|
int | kvm_timer_enable (struct kvm_vcpu *vcpu) |
|
void | kvm_timer_vcpu_reset (struct kvm_vcpu *vcpu) |
|
void | kvm_timer_vcpu_init (struct kvm_vcpu *vcpu) |
|
void | kvm_timer_sync_user (struct kvm_vcpu *vcpu) |
|
bool | kvm_timer_should_notify_user (struct kvm_vcpu *vcpu) |
|
void | kvm_timer_update_run (struct kvm_vcpu *vcpu) |
|
void | kvm_timer_vcpu_terminate (struct kvm_vcpu *vcpu) |
|
void | kvm_timer_init_vm (struct kvm *kvm) |
|
u64 | kvm_arm_timer_get_reg (struct kvm_vcpu *, u64 regid) |
|
int | kvm_arm_timer_set_reg (struct kvm_vcpu *, u64 regid, u64 value) |
|
int | kvm_arm_timer_set_attr (struct kvm_vcpu *vcpu, struct kvm_device_attr *attr) |
|
int | kvm_arm_timer_get_attr (struct kvm_vcpu *vcpu, struct kvm_device_attr *attr) |
|
int | kvm_arm_timer_has_attr (struct kvm_vcpu *vcpu, struct kvm_device_attr *attr) |
|
u64 | kvm_phys_timer_read (void) |
|
void | kvm_timer_vcpu_load (struct kvm_vcpu *vcpu) |
|
void | kvm_timer_vcpu_put (struct kvm_vcpu *vcpu) |
|
void | kvm_timer_init_vhe (void) |
|
u64 | kvm_arm_timer_read_sysreg (struct kvm_vcpu *vcpu, enum kvm_arch_timers tmr, enum kvm_arch_timer_regs treg) |
|
void | kvm_arm_timer_write_sysreg (struct kvm_vcpu *vcpu, enum kvm_arch_timers tmr, enum kvm_arch_timer_regs treg, u64 val) |
|
u32 | timer_get_ctl (struct arch_timer_context *ctxt) |
|
u64 | timer_get_cval (struct arch_timer_context *ctxt) |
|
void | kvm_timer_cpu_up (void) |
|
void | kvm_timer_cpu_down (void) |
|
static bool | has_cntpoff (void) |
|
◆ arch_timer_ctx_index
#define arch_timer_ctx_index |
( |
|
ctx | ) |
((ctx) - vcpu_timer((ctx)->vcpu)->timers) |
◆ timer_irq
◆ timer_vm_data
#define timer_vm_data |
( |
|
ctx | ) |
(&(ctx)->vcpu->kvm->arch.timer_data) |
◆ vcpu_get_timer
#define vcpu_get_timer |
( |
|
v, |
|
|
|
t |
|
) |
| (&vcpu_timer(v)->timers[(t)]) |
◆ vcpu_hptimer
#define vcpu_hptimer |
( |
|
v | ) |
(&(v)->arch.timer_cpu.timers[TIMER_HPTIMER]) |
◆ vcpu_hvtimer
#define vcpu_hvtimer |
( |
|
v | ) |
(&(v)->arch.timer_cpu.timers[TIMER_HVTIMER]) |
◆ vcpu_ptimer
#define vcpu_ptimer |
( |
|
v | ) |
(&(v)->arch.timer_cpu.timers[TIMER_PTIMER]) |
◆ vcpu_timer
#define vcpu_timer |
( |
|
v | ) |
(&(v)->arch.timer_cpu) |
◆ vcpu_vtimer
#define vcpu_vtimer |
( |
|
v | ) |
(&(v)->arch.timer_cpu.timers[TIMER_VTIMER]) |
◆ kvm_arch_timer_regs
Enumerator |
---|
TIMER_REG_CNT | |
TIMER_REG_CVAL | |
TIMER_REG_TVAL | |
TIMER_REG_CTL | |
TIMER_REG_VOFF | |
Definition at line 22 of file arm_arch_timer.h.
◆ kvm_arch_timers
Enumerator |
---|
TIMER_PTIMER | |
TIMER_VTIMER | |
NR_KVM_EL0_TIMERS | |
TIMER_HVTIMER | |
TIMER_HPTIMER | |
NR_KVM_TIMERS | |
Definition at line 13 of file arm_arch_timer.h.
◆ get_timer_map()
void get_timer_map |
( |
struct kvm_vcpu * |
vcpu, |
|
|
struct timer_map * |
map |
|
) |
| |
◆ has_cntpoff()
static bool has_cntpoff |
( |
void |
| ) |
|
|
inlinestatic |
Definition at line 150 of file arm_arch_timer.h.
152 return (has_vhe() && cpus_have_final_cap(ARM64_HAS_ECV_CNTPOFF));
◆ kvm_arm_timer_get_attr()
int kvm_arm_timer_get_attr |
( |
struct kvm_vcpu * |
vcpu, |
|
|
struct kvm_device_attr * |
attr |
|
) |
| |
◆ kvm_arm_timer_get_reg()
u64 kvm_arm_timer_get_reg |
( |
struct kvm_vcpu * |
, |
|
|
u64 |
regid |
|
) |
| |
◆ kvm_arm_timer_has_attr()
int kvm_arm_timer_has_attr |
( |
struct kvm_vcpu * |
vcpu, |
|
|
struct kvm_device_attr * |
attr |
|
) |
| |
◆ kvm_arm_timer_read_sysreg()
◆ kvm_arm_timer_set_attr()
int kvm_arm_timer_set_attr |
( |
struct kvm_vcpu * |
vcpu, |
|
|
struct kvm_device_attr * |
attr |
|
) |
| |
◆ kvm_arm_timer_set_reg()
int kvm_arm_timer_set_reg |
( |
struct kvm_vcpu * |
, |
|
|
u64 |
regid, |
|
|
u64 |
value |
|
) |
| |
◆ kvm_arm_timer_write_sysreg()
◆ kvm_phys_timer_read()
u64 kvm_phys_timer_read |
( |
void |
| ) |
|
◆ kvm_timer_cpu_down()
void kvm_timer_cpu_down |
( |
void |
| ) |
|
◆ kvm_timer_cpu_up()
void kvm_timer_cpu_up |
( |
void |
| ) |
|
◆ kvm_timer_enable()
int kvm_timer_enable |
( |
struct kvm_vcpu * |
vcpu | ) |
|
◆ kvm_timer_hyp_init()
int __init kvm_timer_hyp_init |
( |
bool |
has_gic | ) |
|
◆ kvm_timer_init_vhe()
void kvm_timer_init_vhe |
( |
void |
| ) |
|
◆ kvm_timer_init_vm()
void kvm_timer_init_vm |
( |
struct kvm * |
kvm | ) |
|
◆ kvm_timer_should_notify_user()
bool kvm_timer_should_notify_user |
( |
struct kvm_vcpu * |
vcpu | ) |
|
◆ kvm_timer_sync_user()
void kvm_timer_sync_user |
( |
struct kvm_vcpu * |
vcpu | ) |
|
◆ kvm_timer_update_run()
void kvm_timer_update_run |
( |
struct kvm_vcpu * |
vcpu | ) |
|
◆ kvm_timer_vcpu_init()
void kvm_timer_vcpu_init |
( |
struct kvm_vcpu * |
vcpu | ) |
|
◆ kvm_timer_vcpu_load()
void kvm_timer_vcpu_load |
( |
struct kvm_vcpu * |
vcpu | ) |
|
◆ kvm_timer_vcpu_put()
void kvm_timer_vcpu_put |
( |
struct kvm_vcpu * |
vcpu | ) |
|
◆ kvm_timer_vcpu_reset()
void kvm_timer_vcpu_reset |
( |
struct kvm_vcpu * |
vcpu | ) |
|
◆ kvm_timer_vcpu_terminate()
void kvm_timer_vcpu_terminate |
( |
struct kvm_vcpu * |
vcpu | ) |
|
◆ timer_get_ctl()
◆ timer_get_cval()