diff options
author | dv <dv@cvs.openbsd.org> | 2021-07-16 16:21:23 +0000 |
---|---|---|
committer | dv <dv@cvs.openbsd.org> | 2021-07-16 16:21:23 +0000 |
commit | 51af5b376b4e055c49ae91bc65fcde1338c0d743 (patch) | |
tree | 9ad3fef42f00738078488025c398c23c6e69fb2c /usr.sbin/vmd/ns8250.h | |
parent | ab632c72683306a7589dd0e16547bbcbace889bd (diff) |
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@
Diffstat (limited to 'usr.sbin/vmd/ns8250.h')
-rw-r--r-- | usr.sbin/vmd/ns8250.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/vmd/ns8250.h b/usr.sbin/vmd/ns8250.h index a5d80df9a51..7026b5b6509 100644 --- a/usr.sbin/vmd/ns8250.h +++ b/usr.sbin/vmd/ns8250.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ns8250.h,v 1.9 2019/12/11 06:45:16 pd Exp $ */ +/* $OpenBSD: ns8250.h,v 1.10 2021/07/16 16:21:22 dv Exp $ */ /* * Copyright (c) 2016 Mike Larkin <mlarkin@openbsd.org> * @@ -69,7 +69,6 @@ struct ns8250_dev { enum ns8250_portid portid; int fd; int irq; - int rcv_pending; uint32_t vmid; uint64_t byte_out; uint32_t baudrate; |