Home
last modified time | relevance | path

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

/linux-6.3-rc2/arch/arm64/kvm/hyp/
A Dvgic-v3-sr.c201 u64 used_lrs = cpu_if->used_lrs; in __vgic_v3_save_state()
209 if (!cpu_if->vgic_sre) { in __vgic_v3_save_state()
215 if (used_lrs || cpu_if->its_vpe.its_vm) { in __vgic_v3_save_state()
225 cpu_if->vgic_lr[i] &= ~ICH_LR_STATE; in __vgic_v3_save_state()
236 u64 used_lrs = cpu_if->used_lrs; in __vgic_v3_restore_state()
253 if (!cpu_if->vgic_sre) { in __vgic_v3_restore_state()
272 if (!cpu_if->vgic_sre) { in __vgic_v3_activate_traps()
303 cpu_if->its_vpe.its_vm) in __vgic_v3_activate_traps()
311 if (!cpu_if->vgic_sre) { in __vgic_v3_deactivate_traps()
318 if (!cpu_if->vgic_sre) { in __vgic_v3_deactivate_traps()
[all …]
/linux-6.3-rc2/arch/arm64/kvm/vgic/
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()
412 u64 used_lrs = cpu_if->used_lrs; in save_lrs()
422 cpu_if->vgic_lr[i] &= ~GICH_LR_STATE; in save_lrs()
448 u64 used_lrs = cpu_if->used_lrs; in vgic_v2_restore_state()
455 writel_relaxed(cpu_if->vgic_hcr, base + GICH_HCR); in vgic_v2_restore_state()
457 writel_relaxed(cpu_if->vgic_lr[i], in vgic_v2_restore_state()
467 writel_relaxed(cpu_if->vgic_vmcr, in vgic_v2_load()
[all …]
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()
732 if (likely(cpu_if->vgic_sre)) in vgic_v3_load()
733 kvm_call_hyp(__vgic_v3_write_vmcr, cpu_if->vgic_vmcr); in vgic_v3_load()
735 kvm_call_hyp(__vgic_v3_restore_aprs, cpu_if); in vgic_v3_load()
738 __vgic_v3_activate_traps(cpu_if); in vgic_v3_load()
747 if (likely(cpu_if->vgic_sre)) in vgic_v3_vmcr_sync()
759 kvm_call_hyp(__vgic_v3_save_aprs, cpu_if); in vgic_v3_put()
[all …]
A Dvgic.h281 struct vgic_cpu *cpu_if = &vcpu->arch.vgic_cpu; in vgic_v3_max_apr_idx() local
288 switch (cpu_if->num_pri_bits) { in vgic_v3_max_apr_idx()
/linux-6.3-rc2/arch/arm64/include/asm/
A Dkvm_hyp.h60 void __vgic_v3_save_state(struct vgic_v3_cpu_if *cpu_if);
61 void __vgic_v3_restore_state(struct vgic_v3_cpu_if *cpu_if);
62 void __vgic_v3_activate_traps(struct vgic_v3_cpu_if *cpu_if);
63 void __vgic_v3_deactivate_traps(struct vgic_v3_cpu_if *cpu_if);
64 void __vgic_v3_save_aprs(struct vgic_v3_cpu_if *cpu_if);
65 void __vgic_v3_restore_aprs(struct vgic_v3_cpu_if *cpu_if);
/linux-6.3-rc2/arch/arm64/kvm/hyp/nvhe/
A Dhyp-main.c183 DECLARE_REG(struct vgic_v3_cpu_if *, cpu_if, host_ctxt, 1); in handle___vgic_v3_save_aprs()
185 __vgic_v3_save_aprs(kern_hyp_va(cpu_if)); in handle___vgic_v3_save_aprs()
190 DECLARE_REG(struct vgic_v3_cpu_if *, cpu_if, host_ctxt, 1); in handle___vgic_v3_restore_aprs()
192 __vgic_v3_restore_aprs(kern_hyp_va(cpu_if)); in handle___vgic_v3_restore_aprs()

Completed in 13 milliseconds