vmd(8): simplify vcpu logic, removing uart & vionet reads
authordv <dv@openbsd.org>
Fri, 16 Jul 2021 16:21:22 +0000 (16:21 +0000)
committerdv <dv@openbsd.org>
Fri, 16 Jul 2021 16:21:22 +0000 (16:21 +0000)
commit39d683862cbb1e442f6479cc0a1b2d64adf39217
tree01e284ea83496aade680ef4ac4867197e0ddb3ae
parent9ce0cde1d18d4a271f8e1c4a54e031479660444e
vmd(8): simplify vcpu logic, removing uart & vionet reads

Remove legacy state handling on the ns8250 and virtio network devices
originally put in place before using libevent for async device
events. The vcpu thread doesn't need to process device data as it is
handled by the libevent thread.

This has the benefit of simplifying some of the message passing
between threads introduced to the ns8250 uart since both the vcpu
and libevent threads were processing read events.

No functional change intended. Tested by many, including abieber@,
weerd@, Mischa Peters, and Matthias Schmidt. (Thanks.)

OK mlarkin@
usr.sbin/vmd/ns8250.c
usr.sbin/vmd/ns8250.h
usr.sbin/vmd/virtio.c
usr.sbin/vmd/virtio.h
usr.sbin/vmd/vm.c