RISC-V: KVM: Add exit logic to main.c
authorXiakaiPan <13212017962@163.com>
Wed, 7 Dec 2022 03:46:02 +0000 (09:16 +0530)
committerAnup Patel <anup@brainfault.org>
Wed, 7 Dec 2022 03:46:02 +0000 (09:16 +0530)
commite78a11174de9e84e2f685618432754b83bd9f4ec
tree276340046cc7cc6bce9d39e4d94473eefdaa59f2
parent76dcd734eca23168cb008912c0f69ff408905235
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 <13212017962@163.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Tested-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/main.c