vmm(4)/vmd(8): pull struct members out of vmm ioctl create struct.
authordv <dv@openbsd.org>
Tue, 25 Apr 2023 12:46:13 +0000 (12:46 +0000)
committerdv <dv@openbsd.org>
Tue, 25 Apr 2023 12:46:13 +0000 (12:46 +0000)
commit73a98491f956970e5755ae565866cd809697967e
treecd22a83a2da9381d5ae44605b59907bef02ac089
parenta4ddbf29eacf742b5ff96de79b141ca4b19db49b
vmm(4)/vmd(8): pull struct members out of vmm ioctl create struct.

The object sent to vmm(4) contained file paths and details the
kernel does not need for cpu virtualization as device emulation is
in userland. Effectively, "pull up" the struct members from the
vm_create_params struct to the parent vmop_create_params struct.

This allows us to clean up some of vmd(8) and simplify things for
switching to having vmctl(8) open the "kernel" file (SeaBIOS, bsd.rd,
etc.) to allow users to boot recovery ramdisk kernels.

ok mlarkin@
12 files changed:
sys/arch/amd64/include/vmmvar.h
usr.sbin/vmctl/vmctl.c
usr.sbin/vmd/config.c
usr.sbin/vmd/loadfile.h
usr.sbin/vmd/loadfile_elf.c
usr.sbin/vmd/parse.y
usr.sbin/vmd/virtio.c
usr.sbin/vmd/virtio.h
usr.sbin/vmd/vm.c
usr.sbin/vmd/vmd.c
usr.sbin/vmd/vmd.h
usr.sbin/vmd/vmm.c