Return 0 on read from PIT control port. Intel explicitly says this is not
authormlarkin <mlarkin@openbsd.org>
Fri, 8 Jul 2016 06:35:12 +0000 (06:35 +0000)
committermlarkin <mlarkin@openbsd.org>
Fri, 8 Jul 2016 06:35:12 +0000 (06:35 +0000)
commit97f2e5c7919e80fb5bebe3a510837d79bce0add4
tree507bf63fc8c7cda1660c9a0f7205e894312e8a8a
parent1045ebf084960002a55b3c8d984126886d9b3c09
Return 0 on read from PIT control port. Intel explicitly says this is not
supported, and it looks like other emulators/hypervisors do a variety of
different things here. Most return 0, but at least one might return random
garbage. Returning 0 seems safest here, but leave a warning in place for
the logs in case a guest VM does this.
usr.sbin/vmd/vmm.c