Skip to content

Commit

Permalink
Update quantix-system-setup to reduce memory allocation time in QEMU/…
Browse files Browse the repository at this point in the history
…libvirt
  • Loading branch information
EpicOfficer authored Aug 15, 2024
1 parent 7adf625 commit 691a8e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions files/system/usr/libexec/quantix-system-setup
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/bash

# Script version
readonly QNTX_VER=12
readonly QNTX_VER=13
readonly QNTX_VER_DIR="/etc/quantix"
readonly QNTX_VER_FILE="${QNTX_VER_DIR}/qntx_version"
QNTX_VER_RAN=""
Expand All @@ -22,7 +22,7 @@ CPU_VENDOR=$(grep "vendor_id" "/proc/cpuinfo" | uniq | awk -F": " '{ print $2 }'
VENDOR_KARG="unset"

# Kargs for KVM
rpm-ostree kargs --append-if-missing="kvm.ignore_msrs=1" --append-if-missing="kvm.report_ignored_msrs=0"
rpm-ostree kargs --append-if-missing="kvm.ignore_msrs=1" --append-if-missing="kvm.report_ignored_msrs=0" --append-if-missing="preempt=voluntary"

# Setup VFIO
echo 'add_drivers+=" vfio vfio_iommu_type1 vfio-pci "' | sudo tee /etc/dracut.conf.d/vfio.conf
Expand Down Expand Up @@ -72,4 +72,4 @@ restorecon -rv /var/log/libvirt
restorecon -rv /var/lib/libvirt

# Write the version
echo "${QNTX_VER}" > "${QNTX_VER_FILE}" || { echo "Error writing to ${QNTX_VER_FILE}." >&2; exit 1; }
echo "${QNTX_VER}" > "${QNTX_VER_FILE}" || { echo "Error writing to ${QNTX_VER_FILE}." >&2; exit 1; }

0 comments on commit 691a8e0

Please sign in to comment.