Browse Source

fix virtio device reset

Fabian 3 months ago
parent
commit
9603e12f26
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/cpu.js

+ 6 - 2
src/cpu.js

@@ -668,9 +668,13 @@ CPU.prototype.reboot_internal = function()
 
     this.fw_value = [];
 
-    if(this.devices.virtio)
+    if(this.devices.virtio_9p)
     {
-        this.devices.virtio.reset();
+        this.devices.virtio_9p.reset();
+    }
+    if(this.devices.virtio_console)
+    {
+        this.devices.virtio_console.reset();
     }
 
     this.load_bios();