1
0
Fork 0

fix audio

This commit is contained in:
Massaki Archambault 2022-04-25 21:59:00 -04:00
parent dac072e5db
commit 4dbb66353f
5 changed files with 14 additions and 18 deletions

View File

@ -1,6 +0,0 @@
title Archlinux w/ VFIO
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options mitigations=off intel_iommu=on iommu=pt intel_iommu=igfx_off experimental_zcopytx=1 kvm.ignore_msrs=1 acpi_backlight=none root=LABEL=ARCHLINUX rw

View File

@ -8,7 +8,6 @@
- virt-manager
- python-evdev
- python-pyudev
- vendor-reset-dkms-git
notify:
- restart libvirtd.service
- restart virtlogd.socket
@ -18,6 +17,7 @@
name:
- vfio-isolate
- persistent-evdev-git
- vendor-reset-dkms-git
- name: create hooks directory
file:
@ -55,14 +55,8 @@
dest: /etc/modprobe.d/kvm.conf
notify: regenerate linux initramfs
- name: configure vfio-pci kernel module
template:
src: modprobe/vfio.conf.j2
dest: /etc/modprobe.d/vfio.conf
notify: regenerate linux initramfs
- name: install boot entry
copy:
template:
src: archlinux_iommu.conf
dest: /boot/loader/entries/archlinux_iommu.conf

View File

@ -0,0 +1,5 @@
title Archlinux w/ VFIO
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options mitigations=off vfio-pci.ids={{ ','.join(vfio_pci_ids) }} intel_iommu=on iommu=pt intel_iommu=igfx_off experimental_zcopytx=1 kvm.ignore_msrs=1 acpi_backlight=none root=LABEL=ARCHLINUX rw

View File

@ -1 +0,0 @@
options vfio-pci ids={{ ','.join(vfio_pci_ids) }}

View File

@ -87,7 +87,7 @@
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/home/marchambault/Documents/virtualmachines/img/win10.img'/>
<source file='/data/marchambault/VirtualMachines/img/win10.img'/>
<target dev='sda' bus='scsi'/>
<boot order='1'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
@ -100,7 +100,7 @@
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/home/marchambault/Documents/virtualmachines/iso/virtio-win-0.1.171.iso'/>
<source file='/data/marchambault/VirtualMachines/iso/virtio-win-0.1.171.iso'/>
<target dev='sdb' bus='sata'/>
<readonly/>
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
@ -207,7 +207,11 @@
<address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/>
<audio id='1'/>
</sound>
<audio id='1' type='pulseaudio' serverName='/run/user/1000/pulse/native'/>
<audio id='1' type='pulseaudio' serverName='/run/user/1000/pulse/native'>
<output mixingEngine='no' voices='1' bufferLength='100'>
<!-- <settings frequency='48000' channels='2' format='f32'/> -->
</output>
</audio>
<!-- pci passthrough -->
{% for pci_device_id in pci_device_ids %}