mirror of
https://gitlab.com/YuriAlek/vfio.git
synced 2024-11-17 09:25:36 +00:00
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
|
# User.
|
||
|
USER=yu
|
||
|
|
||
|
# Path to VBIOS, IMG, Windows ISO, Virtio iso, Clover, OVMF, ...
|
||
|
IMAGES=/home/$USER/vm
|
||
|
|
||
|
# IOMMU groups for passed devices.
|
||
|
IOMMU_GPU=06:00.0
|
||
|
IOMMU_GPU_AUDIO=06:00.1
|
||
|
IOMMU_USB=07:00.3
|
||
|
|
||
|
# Virsh devices, only needed if you use virsh.
|
||
|
VIRSH_GPU=pci_0000_06_00_0
|
||
|
VIRSH_GPU_AUDIO=pci_0000_06_00_1
|
||
|
VIRSH_USB=pci_0000_07_00_3
|
||
|
|
||
|
# PCI BUS ID for binding/unbinding devices.
|
||
|
videoid="10de 1184"
|
||
|
audioid="10de 0e0a"
|
||
|
usbid="1022 145f"
|
||
|
videobusid="0000:06:00.0"
|
||
|
audiobusid="0000:06:00.1"
|
||
|
usbbusid="0000:07:00.3"
|
||
|
|
||
|
# Images needed for QEMU.
|
||
|
VBIOS=$IMAGES/GK104_80.04.C3.00.0F-MODED.rom
|
||
|
IMG=$IMAGES/mac-hs.raw,id=disk,format=raw,if=none
|
||
|
CLOVER=$IMAGES/Clover-1080.qcow2
|
||
|
ISO=$IMAGES/HighSierra-10.13.6-qemu.iso
|
||
|
OVMF=$IMAGES/OSX-KVM/OVMF_CODE.fd
|
||
|
OVMF_VARS=$IMAGES/vm/OSX-KVM/OVMF_VARS.fd
|
||
|
|
||
|
# QEMU options
|
||
|
MY_OPTIONS="+aes,+xsave,+avx,+xsaveopt,avx2,+smep"
|
||
|
RAM=12G
|
||
|
CORES=4
|
||
|
|
||
|
# To run QEMU as user you need to allow more RAM to be locked by an user.
|
||
|
ULIMIT=$(ulimit -a | grep "max locked memory" | awk '{print $6}')
|
||
|
|
||
|
# Variable used to change the Frame Buffer resolution. Not needed.
|
||
|
RES="1920 1080"
|