Lines Matching refs:isa
164 bitmap_zero(vcpu->arch.isa, RISCV_ISA_EXT_MAX); in kvm_arch_vcpu_create()
171 set_bit(host_isa, vcpu->arch.isa); in kvm_arch_vcpu_create()
265 case KVM_REG_RISCV_CONFIG_REG(isa): in kvm_riscv_vcpu_get_reg_config()
266 reg_val = vcpu->arch.isa[0] & KVM_RISCV_BASE_ISA_MASK; in kvm_riscv_vcpu_get_reg_config()
269 if (!riscv_isa_extension_available(vcpu->arch.isa, ZICBOM)) in kvm_riscv_vcpu_get_reg_config()
300 case KVM_REG_RISCV_CONFIG_REG(isa): in kvm_riscv_vcpu_set_reg_config()
325 reg_val = (vcpu->arch.isa[0] & ~KVM_RISCV_BASE_ISA_MASK) | in kvm_riscv_vcpu_set_reg_config()
327 vcpu->arch.isa[0] = reg_val; in kvm_riscv_vcpu_set_reg_config()
489 if (__riscv_isa_extension_available(vcpu->arch.isa, host_isa_ext)) in kvm_riscv_vcpu_get_reg_isa_ext()
530 set_bit(host_isa_ext, vcpu->arch.isa); in kvm_riscv_vcpu_set_reg_isa_ext()
533 clear_bit(host_isa_ext, vcpu->arch.isa); in kvm_riscv_vcpu_set_reg_isa_ext()
807 static void kvm_riscv_vcpu_update_config(const unsigned long *isa) in kvm_riscv_vcpu_update_config() argument
811 if (riscv_isa_extension_available(isa, SVPBMT)) in kvm_riscv_vcpu_update_config()
814 if (riscv_isa_extension_available(isa, SSTC)) in kvm_riscv_vcpu_update_config()
817 if (riscv_isa_extension_available(isa, ZICBOM)) in kvm_riscv_vcpu_update_config()
840 kvm_riscv_vcpu_update_config(vcpu->arch.isa); in kvm_arch_vcpu_load()
848 vcpu->arch.isa); in kvm_arch_vcpu_load()
860 vcpu->arch.isa); in kvm_arch_vcpu_put()