<div dir="ltr"><div class="gmail_default" style="font-family:comic sans ms,sans-serif">Excellent, it's working!  Thanks Alex.  I'm starting at the Kodi install screen on the TV.  I'm not sure about how the sound blacklisting is going to affect when removed but this is working.</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><br></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">For reference:</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">Hardware Odroid N2 with Celeron J4105, IGD is Intel UHD605</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><br></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif">Kernel modules mkinitcpio.conf:</div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">MODULES=(vfio_pci vfio vfio_iommu_type1 vfio_virqfd)</span><br></span></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></span></span></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">Add MODCONF to hooks in mkinitcpio.conf</span></span></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></span></span></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">Kernel options:</span></span></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">quiet rw ipv6.disable=1 intel_iommu=on video=vesafb:off,efifb:off vfio-pci.ids=8086:</span>3185,8086:3198 module_blacklist=snd_hda_intel,i915,snd<br></span></div><div class="gmail_default" style="font-family:comic sans ms,sans-serif"><span style="font-family:monospace"><br></span></div><div class="gmail_default" style=""><font face="monospace">QEMU command line:</font></div><div class="gmail_default" style=""><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">qemu-system-x86_64 \
</span><br>-enable-kvm \
<br>-machine q35 \
<br>-cpu host \
<br>-nographic \
<br>-vga none \
<br>-m 2G \
<br>-device vfio-pci,host=00:02.0 \
<br>-device vfio-pci,host=00:0e.0 \
<br>-drive if=pflash,format=raw,readonly,file=/usr/share/ovmf/x64/OVMF_CODE.fd \
<br>-drive if=pflash,format=raw,file=/home/admin/myvars.fd \
<br>-net nic \
<br>-cdrom /home/admin/LibreELEC-Generic.x86_64-8.2.5.img \
<br>-hda /home/admin/kodi_drive.img<br></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 12, 2020 at 3:32 PM Alex Williamson <<a href="mailto:alex.williamson@redhat.com">alex.williamson@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 12 Aug 2020 15:21:31 -0700<br>
kram threetwoone <<a href="mailto:kram321@gmail.com" target="_blank">kram321@gmail.com</a>> wrote:<br>
<br>
> Sure Alex, thanks for taking a look.  Let me know if there's anything else<br>
> you want to see.  It is a shell script and I get the same errors if I run<br>
> as user or root.<br>
> <br>
> #!/bin/bash<br>
> qemu-system-x86_64 \<br>
> -enable-kvm \<br>
> -machine q35 \<br>
> -cpu host \<br>
> -nographic \<br>
> -vga none \<br>
> -device intel-iommu \<br>
  ^^^^^^^^^^^^^^^^^^^^^  Remove this line<br>
<br>
> -device vfio-pci,host=00:02.0,multifunction=on \<br>
                               ^^^^^^^^^^^^^^^^^  ??<br>
<br>
multifunction=on doesn't do much unless an addr= value is specified for<br>
the device and another device to appear in the same slot.<br>
<br>
> -device vfio-pci,host=00:0e.0 \<br>
> -drive if=pflash,format=raw,readonly,file=/usr/share/ovmf/x64/OVMF_CODE.fd<br>
> \<br>
> -drive if=pflash,format=raw,file=/home/admin/myvars.fd \<br>
> -device vfio-pci,host=00:02.0 \<br>
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br>
<br>
IGD is listed twice, that plus intel-iommu might explain the error.<br>
<br>
> -net nic \<br>
> /home/admin/kodi_drive.img<br>
<br>
In order to trigger legacy mode IGD assignment, the IGD device needs to<br>
be placed into addr=2.0  I thought it was also still the case that<br>
legacy mode doesn't work with q35 or OVMF.  UPT (universal passthrough<br>
mode) was originally meant to be only a secondary graphics, maybe<br>
that's what you're going for?  Probably need that i915 OVMF ROM that<br>
Jeff pointed to for using it as primary VM graphics (I've never tried<br>
it).  Thanks,<br>
<br>
Alex<br>
<br>
</blockquote></div>