Skip to content

Commit

Permalink
fix virtio device reset
Browse files Browse the repository at this point in the history
  • Loading branch information
copy committed Jan 9, 2024
1 parent c37c51e commit 9603e12
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/cpu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9603e12

Please sign in to comment.