Lines Matching refs:kvm_loongarch_ops
15 struct kvm_world_switch *kvm_loongarch_ops; variable
326 kvm_loongarch_ops = kzalloc(sizeof(*kvm_loongarch_ops), GFP_KERNEL); in kvm_loongarch_env_init()
327 if (!kvm_loongarch_ops) { in kvm_loongarch_env_init()
346 kfree(kvm_loongarch_ops); in kvm_loongarch_env_init()
347 kvm_loongarch_ops = NULL; in kvm_loongarch_env_init()
354 kvm_loongarch_ops->exc_entry = addr; in kvm_loongarch_env_init()
355 kvm_loongarch_ops->enter_guest = addr + kvm_exception_size; in kvm_loongarch_env_init()
356 kvm_loongarch_ops->page_order = order; in kvm_loongarch_env_init()
381 if (kvm_loongarch_ops) { in kvm_loongarch_env_exit()
382 if (kvm_loongarch_ops->exc_entry) { in kvm_loongarch_env_exit()
383 addr = (unsigned long)kvm_loongarch_ops->exc_entry; in kvm_loongarch_env_exit()
384 free_pages(addr, kvm_loongarch_ops->page_order); in kvm_loongarch_env_exit()
386 kfree(kvm_loongarch_ops); in kvm_loongarch_env_exit()