Searched refs:csrid (Results 1 – 1 of 1) sorted by relevance
/linux/arch/loongarch/kvm/ |
H A D | exit.c | 65 static unsigned long kvm_emu_read_csr(struct kvm_vcpu *vcpu, int csrid) in kvm_emu_read_csr() argument 74 if (get_gcsr_flag(csrid) & SW_GCSR) in kvm_emu_read_csr() 75 val = kvm_read_sw_gcsr(csr, csrid); in kvm_emu_read_csr() 77 pr_warn_once("Unsupported csrrd 0x%x with pc %lx\n", csrid, vcpu->arch.pc); in kvm_emu_read_csr() 82 static unsigned long kvm_emu_write_csr(struct kvm_vcpu *vcpu, int csrid, unsigned long val) in kvm_emu_write_csr() argument 87 if (get_gcsr_flag(csrid) & SW_GCSR) { in kvm_emu_write_csr() 88 old = kvm_read_sw_gcsr(csr, csrid); in kvm_emu_write_csr() 89 kvm_write_sw_gcsr(csr, csrid, val); in kvm_emu_write_csr() 91 pr_warn_once("Unsupported csrwr 0x%x with pc %lx\n", csrid, vcpu->arch.pc); in kvm_emu_write_csr() 96 static unsigned long kvm_emu_xchg_csr(struct kvm_vcpu *vcpu, int csrid, in kvm_emu_xchg_csr() argument [all …]
|