Currently, the virtio specification does not include provision for the TRIM (aka DISCARD) command that allows a guest operating system to signal the disk hardware that blocks have become unused so that the underlying device may clear the physical data.
The TRIM/DISCARD command was introduced for SSD disks as an extension to the AHCI specification that is used in SATA systems.
With Virtual Machines we can use this command to tell QEMU's Qcow2 driver to reclaim unused space in the disk image. This ensures the disk image file is kept to the smallest size possible where without the TRIM/DISCARD command it grows to it's maximum configured size and never shrinks again when data is deleted.
Let's swap our default disk driver from `virtio-blk-pci` which does not support TRIM to `ahci` which does.
(We cannot use `virtio-scsi-pci` when running macOS, like we do in our default disk device, because macOS does not support SCSI disks at all on x86_64 systems.)
Currently, the virtio specification does not include provision for the TRIM (aka DISCARD) command that allows a guest operating system to signal the disk hardware that blocks have become unused so that the underlying device may clear the physical data.
The TRIM/DISCARD command was introduced for SSD disks as an extension to the AHCI specification that is used in SATA systems.
With Virtual Machines we can use this command to tell QEMU's Qcow2 driver to reclaim unused space in the disk image. This ensures the disk image file is kept to the smallest size possible where without the TRIM/DISCARD command it grows to it's maximum configured size and never shrinks again when data is deleted.
Let's swap our default disk driver from `virtio-blk-pci` which does not support TRIM to `virtio-scsi-pci` which does.
QEMU 7.0 introduces a change/regression where it is not possible to use GL accerlation via GTK/SDL displays and also bring up SPICE: https://gitlab.com/qemu-project/qemu/-/issues/1036
This patch prevents Quickemu from bringing up SPICE when GTK or SDK are selected as the display.
Run QEMU with '-vga none' to avoid having two scanouts, one for VGA and another for virtio-vga-gl.
- Workaround for a GTK assertion failure in gtk_widget_get_realized().
- Allows seamless mouse in macOS when using the qxl-vga device.
- Enables sane default resolutions in all support macOS versions.
* Add spice-app as display option
* Rework how we set the default OUTPUT
variable display is never set and display_param_check is already checked when parsing options
* enable overriding the gl param
3d acceleration is not stable on some setups (looking at you, nvidia)
Co-authored-by: Matej <spindler.matej@gmail.com>
* Extra OVMF search paths needed for Solus
who have moved things around
also spotted a possible typo to investigate in the void additions
* Revert "updated submodule position"
This reverts commit 9648f79b81b5e72465785993bc62469130ac848f.
* minor cleanup
* try realign submodule backwards