I patched the kernel as follows:
diff --git a/arch/riscv/kvm/vcpu.c b/arch/riscv/kvm/vcpu.c
index e0a01af426ff..4d0d54767055 100644
--- a/arch/riscv/kvm/vcpu.c
+++ b/arch/riscv/kvm/vcpu.c
@@ -911,6 +911,8 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu)
while (ret > 0) {
/* Check conditions before entering the guest */
ret = xfer_to_guest_mode_handle_work(vcpu);
+ printk(KERN_ERR "%s(%d)%s: ret = %d\n",
+ __FILE__, __LINE__, __func__, ret);
if (ret)
continue;
ret = 1;
While the inner VM is running kvm_arch_vcpu_ioctl_run() invokes
xfer_to_guest_mode_handle_work() and returns 0.
When the inner VM is stopped xfer_to_guest_mode_handle_work() returns -4 once
for each stopped VCPU.
No further output after this point.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2112578
Title:
riscv64: KVM does not release harts
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2112578/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs