-/* $OpenBSD: config.c,v 1.75 2024/02/05 21:58:09 dv Exp $ */
+/* $OpenBSD: config.c,v 1.76 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
#include <sys/types.h>
#include <sys/queue.h>
#include <sys/time.h>
-#include <sys/uio.h>
-#include <sys/stat.h>
-#include <sys/socket.h>
#include <net/if.h>
#include <stdio.h>
#include <stdlib.h>
-#include <termios.h>
#include <unistd.h>
#include <limits.h>
#include <string.h>
#include <fcntl.h>
-#include <util.h>
#include <errno.h>
#include <imsg.h>
-/* $OpenBSD: control.c,v 1.42 2024/01/18 14:49:59 claudio Exp $ */
+/* $OpenBSD: control.c,v 1.43 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2010-2015 Reyk Floeter <reyk@openbsd.org>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/un.h>
-#include <sys/tree.h>
-
-#include <net/if.h>
#include <errno.h>
#include <event.h>
-#include <fcntl.h>
-#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-/* $OpenBSD: dhcp.c,v 1.13 2023/07/13 18:31:59 dv Exp $ */
+/* $OpenBSD: dhcp.c,v 1.14 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2017 Reyk Floeter <reyk@openbsd.org>
*/
#include <sys/types.h>
-#include <sys/socket.h>
#include <net/if.h>
#include <netinet/in.h>
-/* $OpenBSD: fw_cfg.c,v 1.9 2024/07/09 09:31:37 dv Exp $ */
+/* $OpenBSD: fw_cfg.c,v 1.10 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2018 Claudio Jeker <claudio@openbsd.org>
*
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include <sys/types.h>
-#include <sys/uio.h>
#include <machine/biosvar.h> /* bios_memmap_t */
#include <dev/pv/virtioreg.h>
#include <dev/vmm/vmm.h>
-/* $OpenBSD: i8253.c,v 1.41 2024/07/10 09:27:33 dv Exp $ */
+/* $OpenBSD: i8253.c,v 1.42 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2016 Mike Larkin <mlarkin@openbsd.org>
*
#include <event.h>
#include <string.h>
-#include <stddef.h>
#include <time.h>
#include <unistd.h>
/* $NetBSD: loadfile.c,v 1.10 2000/12/03 02:53:04 tsutsui Exp $ */
-/* $OpenBSD: loadfile_elf.c,v 1.49 2024/09/11 15:42:52 bluhm Exp $ */
+/* $OpenBSD: loadfile_elf.c,v 1.50 2024/09/26 01:45:13 jsg Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
*/
#include <sys/param.h> /* PAGE_SIZE PAGE_MASK roundup */
-#include <sys/ioctl.h>
#include <sys/reboot.h>
#include <sys/exec.h>
#include <elf.h>
-#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
-#include <fcntl.h>
#include <err.h>
-#include <stddef.h>
#include <dev/vmm/vmm.h>
-/* $OpenBSD: parse.y,v 1.70 2024/09/11 15:42:52 bluhm Exp $ */
+/* $OpenBSD: parse.y,v 1.71 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2007-2016 Reyk Floeter <reyk@openbsd.org>
#include <sys/types.h>
#include <sys/queue.h>
#include <sys/socket.h>
-#include <sys/uio.h>
#include <dev/vmm/vmm.h>
#include <agentx.h>
#include <stdio.h>
-#include <stdlib.h>
#include <limits.h>
#include <stdarg.h>
-#include <string.h>
#include <unistd.h>
#include <ctype.h>
#include <netdb.h>
-/* $OpenBSD: pci.c,v 1.33 2024/07/10 09:27:33 dv Exp $ */
+/* $OpenBSD: pci.c,v 1.34 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
#include <dev/pci/pcireg.h>
#include <dev/pci/pcidevs.h>
-#include <dev/pv/virtioreg.h>
#include <dev/vmm/vmm.h>
#include <string.h>
#include "vmd.h"
#include "pci.h"
-#include "i8259.h"
#include "atomicio.h"
struct pci pci;
-/* $OpenBSD: priv.c,v 1.24 2024/01/18 14:49:59 claudio Exp $ */
+/* $OpenBSD: priv.c,v 1.25 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2016 Reyk Floeter <reyk@openbsd.org>
*/
#include <sys/types.h>
-#include <sys/queue.h>
-#include <sys/stat.h>
#include <sys/socket.h>
-#include <sys/un.h>
#include <sys/ioctl.h>
-#include <sys/tree.h>
#include <net/if.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
-#include <event.h>
-#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
-#include <signal.h>
#include <ctype.h>
#include "proc.h"
-/* $OpenBSD: proc.c,v 1.25 2024/04/09 15:48:01 tobhe Exp $ */
+/* $OpenBSD: proc.c,v 1.26 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2010 - 2016 Reyk Floeter <reyk@openbsd.org>
#include <string.h>
#include <errno.h>
#include <signal.h>
-#include <paths.h>
#include <pwd.h>
#include <event.h>
#include <imsg.h>
-/* $OpenBSD: proc.h,v 1.24 2024/02/20 21:40:37 dv Exp $ */
+/* $OpenBSD: proc.h,v 1.25 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2010-2015 Reyk Floeter <reyk@openbsd.org>
#include <sys/queue.h>
#include <sys/socket.h>
-#include <sys/uio.h>
#include <event.h>
#include <imsg.h>
-/* $OpenBSD: psp.c,v 1.1 2024/09/11 15:42:52 bluhm Exp $ */
+/* $OpenBSD: psp.c,v 1.2 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2023, 2024 Hans-Joerg Hoexer <hshoexer@genua.de>
*/
#include <sys/types.h>
-#include <sys/device.h>
#include <sys/ioctl.h>
-#include <sys/rwlock.h>
-#include <machine/bus.h>
#include <dev/ic/pspvar.h>
#include <string.h>
-/* $OpenBSD: sev.c,v 1.3 2024/09/25 04:19:36 deraadt Exp $ */
+/* $OpenBSD: sev.c,v 1.4 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2023, 2024 Hans-Joerg Hoexer <hshoexer@genua.de>
#include <sys/types.h>
#include <sys/param.h> /* roundup */
-#include <sys/device.h>
-#include <sys/rwlock.h>
-#include <machine/bus.h>
#include <crypto/xform.h>
#include <dev/ic/pspvar.h>
-/* $OpenBSD: vioblk.c,v 1.14 2024/07/10 09:27:33 dv Exp $ */
+/* $OpenBSD: vioblk.c,v 1.15 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2023 Dave Voutila <dv@openbsd.org>
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/mman.h>
-#include <sys/param.h> /* PAGE_SIZE */
+#include <stdint.h>
#include <dev/pci/virtio_pcireg.h>
#include <dev/pv/vioblkreg.h>
#include <errno.h>
#include <event.h>
-#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-/* $OpenBSD: vionet.c,v 1.16 2024/07/12 14:34:08 jan Exp $ */
+/* $OpenBSD: vionet.c,v 1.17 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2023 Dave Voutila <dv@openbsd.org>
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/socket.h>
#include <sys/types.h>
#include <dev/pci/virtio_pcireg.h>
-/* $OpenBSD: vioqcow2.c,v 1.24 2023/09/14 15:25:43 dv Exp $ */
+/* $OpenBSD: vioqcow2.c,v 1.25 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2018 Ori Bernstein <ori@eigenstate.org>
#include <sys/types.h>
#include <sys/stat.h>
-#include <dev/pci/pcireg.h>
-
-#include <assert.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
-/* $OpenBSD: vioscsi.c,v 1.24 2023/09/06 19:26:39 dv Exp $ */
+/* $OpenBSD: vioscsi.c,v 1.25 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2017 Carlos Cardenas <ccardenas@openbsd.org>
#include <scsi/scsiconf.h>
#include <scsi/cd.h>
-#include <errno.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include "vmd.h"
#include "vioscsi.h"
-/* $OpenBSD: virtio.c,v 1.115 2024/07/10 09:27:33 dv Exp $ */
+/* $OpenBSD: virtio.c,v 1.116 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
#include <dev/pv/virtioreg.h>
#include <dev/pci/virtio_pcireg.h>
#include <dev/pv/vioblkreg.h>
-#include <dev/pv/vioscsireg.h>
#include <dev/vmm/vmm.h>
#include <net/if.h>
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#include <netinet/ip.h>
#include <errno.h>
#include <event.h>
-#include <fcntl.h>
-#include <poll.h>
-#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-/* $OpenBSD: vm.c,v 1.105 2024/09/11 15:42:52 bluhm Exp $ */
+/* $OpenBSD: vm.c,v 1.106 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
#include <sys/param.h> /* PAGE_SIZE, MAXCOMLEN */
#include <sys/types.h>
#include <sys/ioctl.h>
-#include <sys/queue.h>
-#include <sys/wait.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <sys/time.h>
#include <sys/mman.h>
#include <sys/resource.h>
-#include <dev/pci/pcireg.h>
#include <dev/vmm/vmm.h>
-#include <net/if.h>
-
#include <errno.h>
#include <event.h>
#include <fcntl.h>
#include <imsg.h>
-#include <limits.h>
#include <poll.h>
#include <pthread.h>
#include <pthread_np.h>
-#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <util.h>
#include "atomicio.h"
-#include "loadfile.h"
-#include "mmio.h"
#include "pci.h"
#include "virtio.h"
#include "vmd.h"
-/* $OpenBSD: vm_agentx.c,v 1.2 2024/02/02 14:58:02 dv Exp $ */
+/* $OpenBSD: vm_agentx.c,v 1.3 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2022 Martijn van Duren <martijn@openbsd.org>
#include <sys/un.h>
#include <agentx.h>
-#include <errno.h>
#include <grp.h>
#include <pwd.h>
#include <stdlib.h>
-#include <stdio.h>
#include <string.h>
#include <unistd.h>
-/* $OpenBSD: vmd.c,v 1.160 2024/09/11 15:42:52 bluhm Exp $ */
+/* $OpenBSD: vmd.c,v 1.161 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
#include <sys/types.h>
#include <sys/queue.h>
-#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/sysctl.h>
#include <sys/tty.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <termios.h>
#include <errno.h>
#include <event.h>
#include <fcntl.h>
-/* $OpenBSD: vmm.c,v 1.122 2024/09/11 15:42:52 bluhm Exp $ */
+/* $OpenBSD: vmm.c,v 1.123 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
#include <sys/ioctl.h>
#include <sys/queue.h>
#include <sys/wait.h>
-#include <sys/uio.h>
#include <sys/socket.h>
-#include <sys/time.h>
-#include <sys/mman.h>
-#include <dev/ic/i8253reg.h>
-#include <dev/isa/isareg.h>
-#include <dev/pci/pcireg.h>
#include <dev/vmm/vmm.h>
#include <net/if.h>
#include <fcntl.h>
#include <imsg.h>
#include <limits.h>
-#include <poll.h>
-#include <pthread.h>
-#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <util.h>
#include "vmd.h"
#include "atomicio.h"
-/* $OpenBSD: x86_vm.c,v 1.3 2024/09/11 15:42:52 bluhm Exp $ */
+/* $OpenBSD: x86_vm.c,v 1.4 2024/09/26 01:45:13 jsg Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
*
#include <dev/ic/i8253reg.h>
#include <dev/isa/isareg.h>
-#include <machine/psl.h>
#include <machine/pte.h>
#include <machine/specialreg.h>
#include <machine/vmmvar.h>