Skip to content

Commit e78a111

Browse files
XiakaiPanavpatel
authored andcommitted
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: XiakaiPan <[email protected]> Reviewed-by: Andrew Jones <[email protected]> Tested-by: Andrew Jones <[email protected]> Signed-off-by: Anup Patel <[email protected]>
1 parent 76dcd73 commit e78a111

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arch/riscv/kvm/main.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,9 @@ static int __init riscv_kvm_init(void)
127127
return kvm_init(NULL, sizeof(struct kvm_vcpu), 0, THIS_MODULE);
128128
}
129129
module_init(riscv_kvm_init);
130+
131+
static void __exit riscv_kvm_exit(void)
132+
{
133+
kvm_exit();
134+
}
135+
module_exit(riscv_kvm_exit);

0 commit comments

Comments
 (0)