Home
last modified time | relevance | path

Searched refs:cpu_if (Results 1 – 4 of 4) sorted by relevance

/linux/arch/arm64/kvm/vgic/
H A Dvgic-v2.c207 struct vgic_v2_cpu_if *cpu_if = &vcpu->arch.vgic_cpu.vgic_v2; in vgic_v2_set_vmcr() local
229 cpu_if->vgic_vmcr = vmcr; in vgic_v2_set_vmcr()
234 struct vgic_v2_cpu_if *cpu_if = &vcpu->arch.vgic_cpu.vgic_v2; in vgic_v2_get_vmcr() local
237 vmcr = cpu_if->vgic_vmcr; in vgic_v2_get_vmcr()
405 struct vgic_v2_cpu_if *cpu_if = &vcpu->arch.vgic_cpu.vgic_v2; in save_lrs() local
406 u64 used_lrs = cpu_if->used_lrs; in save_lrs()
416 cpu_if->vgic_lr[i] &= ~GICH_LR_STATE; in save_lrs()
418 cpu_if->vgic_lr[i] = readl_relaxed(base + GICH_LR0 + (i * 4)); in save_lrs()
440 struct vgic_v2_cpu_if *cpu_if = &vcpu->arch.vgic_cpu.vgic_v2; in vgic_v2_restore_state() local
442 u64 used_lrs = cpu_if->used_lrs; in vgic_v2_restore_state()
[all …]
H A Dvgic-v3.c196 struct vgic_v3_cpu_if *cpu_if = &vcpu->arch.vgic_cpu.vgic_v3; in vgic_v3_set_vmcr() local
221 cpu_if->vgic_vmcr = vmcr; in vgic_v3_set_vmcr()
226 struct vgic_v3_cpu_if *cpu_if = &vcpu->arch.vgic_cpu.vgic_v3; in vgic_v3_get_vmcr() local
230 vmcr = cpu_if->vgic_vmcr; in vgic_v3_get_vmcr()
735 struct vgic_v3_cpu_if *cpu_if = &vcpu->arch.vgic_cpu.vgic_v3; in vgic_v3_load() local
737 kvm_call_hyp(__vgic_v3_restore_vmcr_aprs, cpu_if); in vgic_v3_load()
740 __vgic_v3_activate_traps(cpu_if); in vgic_v3_load()
747 struct vgic_v3_cpu_if *cpu_if = &vcpu->arch.vgic_cpu.vgic_v3; in vgic_v3_put() local
749 kvm_call_hyp(__vgic_v3_save_vmcr_aprs, cpu_if); in vgic_v3_put()
753 __vgic_v3_deactivate_traps(cpu_if); in vgic_v3_put()
H A Dvgic.h283 struct vgic_cpu *cpu_if = &vcpu->arch.vgic_cpu; in vgic_v3_max_apr_idx() local
290 switch (cpu_if->num_pri_bits) { in vgic_v3_max_apr_idx()
/linux/arch/arm64/include/asm/
H A Dkvm_hyp.h79 void __vgic_v3_save_state(struct vgic_v3_cpu_if *cpu_if);
80 void __vgic_v3_restore_state(struct vgic_v3_cpu_if *cpu_if);
81 void __vgic_v3_activate_traps(struct vgic_v3_cpu_if *cpu_if);
82 void __vgic_v3_deactivate_traps(struct vgic_v3_cpu_if *cpu_if);
83 void __vgic_v3_save_vmcr_aprs(struct vgic_v3_cpu_if *cpu_if);
84 void __vgic_v3_restore_vmcr_aprs(struct vgic_v3_cpu_if *cpu_if);