Home
last modified time | relevance | path

Searched refs:hvip (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/arch/riscv/kvm/
H A Dvcpu.c329 csr->hvip &= ~mask; in kvm_riscv_vcpu_flush_interrupts()
330 csr->hvip |= val; in kvm_riscv_vcpu_flush_interrupts()
339 unsigned long hvip; in kvm_riscv_vcpu_sync_interrupts() local
347 hvip = csr_read(CSR_HVIP); in kvm_riscv_vcpu_sync_interrupts()
348 if ((csr->hvip ^ hvip) & (1UL << IRQ_VS_SOFT)) { in kvm_riscv_vcpu_sync_interrupts()
349 if (hvip & (1UL << IRQ_VS_SOFT)) { in kvm_riscv_vcpu_sync_interrupts()
507 csr_write(CSR_HVIP, csr->hvip); in kvm_arch_vcpu_load()
552 csr->hvip = csr_read(CSR_HVIP); in kvm_arch_vcpu_put()
605 csr_write(CSR_HVIP, csr->hvip); in kvm_riscv_update_hvip()
H A Dvcpu_onereg.c351 *out_val = (csr->hvip >> VSIP_TO_HVIP_SHIFT) & VSIP_VALID_MASK; in kvm_riscv_vcpu_general_get_csr()
352 *out_val |= csr->hvip & ~IRQ_LOCAL_MASK; in kvm_riscv_vcpu_general_get_csr()
H A Daia.c133 aia_set_hvictl(!!(csr->hvip & BIT(IRQ_VS_EXT))); in kvm_riscv_vcpu_aia_update_hvip()
/openbmc/linux/arch/riscv/include/asm/
H A Dkvm_host.h162 unsigned long hvip; member
/openbmc/qemu/target/riscv/
H A Dcpu_helper.c490 uint64_t irqs_f_vs = env->hvip & env->hvien & ~env->hideleg & env->vsie; in riscv_cpu_vsirq_pending()
543 irqs_f_vs = env->hvip & env->hvien & ~env->hideleg & env->vsie; in riscv_cpu_local_irq_pending()
723 irqf = env->hvien & env->hvip & env->vsie; in riscv_cpu_interrupt()
1807 bool vs_injected = env->hvip & (1ULL << cause) & env->hvien && in riscv_cpu_do_interrupt()
H A Dmachine.c96 VMSTATE_UINT64(env.hvip, RISCVCPU),
H A Dcpu.h336 uint64_t hvip; member
H A Dcsr.c3750 old_hvip = env->hvip; in rmw_hvip64()
3753 env->hvip = (env->hvip & ~wr_mask_hvip) | (new_val & wr_mask_hvip); in rmw_hvip64()