QemuQEMU invocation logic fragments.
system determines the QEMU executable to run.
system_version cmd is the QEMU version of the system cmd or None if it cannot be found in the PATH.
machine determines the value of the -machine option.
val accel :
host_os:B0_std.Os.Name.t ->
host_arch:B0_std.Os.Arch.t ->
guest_arch:B0_std.Os.Arch.t ->
stringaccel determines the value of the -accel option.
val cpu :
host_arch:B0_std.Os.Arch.t ->
guest_arch:B0_std.Os.Arch.t ->
(string, string) Stdlib.resultcpu determines the value of the -cpu option.
val base_cmd :
system:B0_std.Cmd.t ->
machine:string ->
accel:string ->
cpu:string ->
smp:string ->
mem:string ->
B0_std.Cmd.tbase_cmd is the system executable with corresponding parameters
val uefi_code :
host_os:B0_std.Os.Name.t ->
guest_arch:B0_std.Os.Arch.t ->
(B0_std.Fpath.t, string) Stdlib.resultuefi_code determines the file where the UEFI blob stored.
uefi_drive is a -drive option with uefi_code as read-only flash memory.
See also Drives.
device_usb_qemu_xhci is the -device qemu-xhci. This gives the machine an USB xHCI controller. If the guest as an USB xHCI drivers gives access to USB devices out of the box. See usb_input_devices.
usb_input_devices () are the usb-kbd and usb-tablet USB devices.
type drive = | Usb of B0_std.Fpath.t| Usb_cdrom of B0_std.Fpath.t| Virtio_blk of B0_std.Fpath.tOn Windows this needs the viostor driver.
| Virtio_scsi of B0_std.Fpath.tOn Windows this needs the vioscsi driver.
| Virtio_scsi_cdrom of B0_std.Fpath.tOn Windows this needs the vioscsi driver.
| Sata of B0_std.Fpath.tOn Windows this needs no drivers.
*)| Sata_cdrom of B0_std.Fpath.tOn Windows this needs no drivers.
*)| Nvme of B0_std.Fpath.tOn Windows this needs no drivers.
*)The type for drives and the path to their disk image files.
val drives : drive list -> B0_std.Cmd.tdrives is the list of drives attached.
These are specified in boot order. If you need to install on an empty disk image, put it first and the ISO afterwards, it will be skipped by the bootloader before install and picked up afterwards.
device_virtio_gpu_pci is -device virtio-gpu-pci. On Windows guests this need the viogpudo virtio driver.
serial arg is an argument for -serial. If unspecified by default this is mon:stdout.
scrape_arch_of_filepath file tries to determine an architecture from file by starting from the end of the path.