Lines Matching refs:hvip
349 csr->hvip &= ~mask; in kvm_riscv_vcpu_flush_interrupts()
350 csr->hvip |= val; in kvm_riscv_vcpu_flush_interrupts()
359 unsigned long hvip; in kvm_riscv_vcpu_sync_interrupts() local
367 hvip = csr_read(CSR_HVIP); in kvm_riscv_vcpu_sync_interrupts()
368 if ((csr->hvip ^ hvip) & (1UL << IRQ_VS_SOFT)) { in kvm_riscv_vcpu_sync_interrupts()
369 if (hvip & (1UL << IRQ_VS_SOFT)) { in kvm_riscv_vcpu_sync_interrupts()
381 if ((csr->hvip ^ hvip) & (1UL << IRQ_PMU_OVF)) { in kvm_riscv_vcpu_sync_interrupts()
382 if (!(hvip & (1UL << IRQ_PMU_OVF)) && in kvm_riscv_vcpu_sync_interrupts()
575 csr_write(CSR_HVIP, csr->hvip); in kvm_arch_vcpu_load()
628 csr->hvip = csr_read(CSR_HVIP); in kvm_arch_vcpu_put()
684 csr_write(CSR_HVIP, csr->hvip); in kvm_riscv_update_hvip()