CVSROOT:        /cvs
Module name:    src
Changes by:     mlar...@cvs.openbsd.org 2019/11/28 17:51:28

Modified files:
        usr.sbin/vmd   : i8253.c mc146818.c ns8250.c virtio.c vm.c 

Log message:
Fix at least one cause of VMs spinning at 100% host CPU

After debugging with ori@, it looks like an event ends up on the wrong
libevent queue, and we end continually de-queueing and re-queueing the
event continually. While it's unclear exactly why this happened, a clue
on libevent's github issues page for the same problem pointed us to using
a different event base for the device events. This seems to have unstuck
ori@'s problematic VM, and I have also seen no more hangs after this.

We have not completely separated the queues; ori@ will work on setting
new libevent bases for those later. But those events are pretty
frequency.

with help from and ok ori@

Reply via email to