diff options
author | pd <pd@openbsd.org> | 2017-09-17 22:47:03 +0000 |
---|---|---|
committer | pd <pd@openbsd.org> | 2017-09-17 22:47:03 +0000 |
commit | b1de0e9c4f04abc6cc9724692f319ed5cbfc9bee (patch) | |
tree | f29011a99742ea848a0959c076d9fa74b64817e5 /usr.sbin/vmd/vm.c | |
parent | When writing local output, syslogd ignores EAGAIN. Unfortunately (diff) | |
download | wireguard-openbsd-b1de0e9c4f04abc6cc9724692f319ed5cbfc9bee.tar.xz wireguard-openbsd-b1de0e9c4f04abc6cc9724692f319ed5cbfc9bee.zip |
vmd: re add rtc.per and rtc.sec evtimers on receive
This was missed in receive. mc146818_start is already defined. This fixes rtc
time resync on receive.
ok mlarkin@
Diffstat (limited to 'usr.sbin/vmd/vm.c')
-rw-r--r-- | usr.sbin/vmd/vm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/vmd/vm.c b/usr.sbin/vmd/vm.c index 25547127e1a..5849ff92765 100644 --- a/usr.sbin/vmd/vm.c +++ b/usr.sbin/vmd/vm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm.c,v 1.25 2017/09/11 23:32:34 dlg Exp $ */ +/* $OpenBSD: vm.c,v 1.26 2017/09/17 22:47:03 pd Exp $ */ /* * Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org> @@ -354,6 +354,7 @@ start_vm(struct vmd_vm *vm, int fd) if (vm->vm_received) { restore_emulated_hw(vcp, vm->vm_receive_fd, nicfds, vm->vm_disks); + mc146818_start(); restore_mem(vm->vm_receive_fd, vcp); } |