aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorsickcodes <[email protected]>2021-07-08 23:32:26 +0000
committersickcodes <[email protected]>2021-07-08 23:32:26 +0000
commit866a429848e8bca422a10712dae0711cbbdad99b (patch)
tree63f4a4961c04dfb05166b4f4b3aaafb861dea3d8 /Dockerfile
parentAdd link to "make it faster" scripts https://github.com/sickcodes/osx-optimizer (diff)
downloaddocker-osx-866a429848e8bca422a10712dae0711cbbdad99b.tar.xz
docker-osx-866a429848e8bca422a10712dae0711cbbdad99b.zip
Add CPUID_FLAGS to edit the CPUID flags on the fly.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index fd8cedf..53f7b59 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -219,7 +219,7 @@ RUN touch Launch.sh \
&& tee -a Launch.sh <<< '[[ "${RAM}" = half ]] && export RAM="$(("$(head -n1 /proc/meminfo | tr -dc "[:digit:]") / 2000000"))"' \
&& tee -a Launch.sh <<< 'sudo chown -R $(id -u):$(id -g) /dev/snd 2>/dev/null || true' \
&& tee -a Launch.sh <<< 'exec qemu-system-x86_64 -m ${RAM:-2}000 \' \
- && tee -a Launch.sh <<< '-cpu ${CPU:-Penryn},vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check,${BOOT_ARGS} \' \
+ && tee -a Launch.sh <<< '-cpu ${CPU:-Penryn},${CPUID_FLAGS:-vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check,}${BOOT_ARGS} \' \
&& tee -a Launch.sh <<< '-machine q35,${KVM-"accel=kvm:tcg"} \' \
&& tee -a Launch.sh <<< '-smp ${CPU_STRING:-${SMP:-4},cores=${CORES:-4}} \' \
&& tee -a Launch.sh <<< '-usb -device usb-kbd -device usb-tablet \' \
@@ -263,11 +263,13 @@ ENV BOOT_ARGS=
ENV BOOTDISK=
-# edit the CPU that is beign emulated
+# edit the CPU that is being emulated
ENV CPU=Penryn
+ENV CPUID_FLAGS='vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check,'
ENV DISPLAY=:0.0
+# Deprecated
ENV ENV=/env
# Boolean for generating a bootdisk with new random serials.