Commit e78a1117 authored by XiakaiPan's avatar XiakaiPan Committed by Anup Patel

RISC-V: KVM: Add exit logic to main.c

Several lines of code are inserted to remove KVM module normally
using rmmod command just like others.
Signed-off-by: default avatarXiakaiPan <13212017962@163.com>
Reviewed-by: default avatarAndrew Jones <ajones@ventanamicro.com>
Tested-by: default avatarAndrew Jones <ajones@ventanamicro.com>
Signed-off-by: default avatarAnup Patel <anup@brainfault.org>
parent 76dcd734
......@@ -127,3 +127,9 @@ static int __init riscv_kvm_init(void)
return kvm_init(NULL, sizeof(struct kvm_vcpu), 0, THIS_MODULE);
}
module_init(riscv_kvm_init);
static void __exit riscv_kvm_exit(void)
{
kvm_exit();
}
module_exit(riscv_kvm_exit);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment