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.

For reference:
Hardware Odroid N2 with Celeron J4105, IGD is Intel UHD605

Kernel modules mkinitcpio.conf:
MODULES=(vfio_pci vfio vfio_iommu_type1 vfio_virqfd)

Add MODCONF to hooks in mkinitcpio.conf

Kernel options:
quiet rw ipv6.disable=1 intel_iommu=on video=vesafb:off,efifb:off
vfio-pci.ids=8086:3185,8086:3198 module_blacklist=snd_hda_intel,i915,snd

QEMU command line:
qemu-system-x86_64 \
-enable-kvm \
-machine q35 \
-cpu host \
-nographic \
-vga none \
-m 2G \
-device vfio-pci,host=00:02.0 \
-device vfio-pci,host=00:0e.0 \
-drive if=pflash,format=raw,readonly,file=/usr/share/ovmf/x64/OVMF_CODE.fd
\
-drive if=pflash,format=raw,file=/home/admin/myvars.fd \
-net nic \
-cdrom /home/admin/LibreELEC-Generic.x86_64-8.2.5.img \
-hda /home/admin/kodi_drive.img

On Wed, Aug 12, 2020 at 3:32 PM Alex Williamson <alex.william...@redhat.com>
wrote:

> On Wed, 12 Aug 2020 15:21:31 -0700
> kram threetwoone <kram...@gmail.com> wrote:
>
> > Sure Alex, thanks for taking a look.  Let me know if there's anything
> else
> > you want to see.  It is a shell script and I get the same errors if I run
> > as user or root.
> >
> > #!/bin/bash
> > qemu-system-x86_64 \
> > -enable-kvm \
> > -machine q35 \
> > -cpu host \
> > -nographic \
> > -vga none \
> > -device intel-iommu \
>   ^^^^^^^^^^^^^^^^^^^^^  Remove this line
>
> > -device vfio-pci,host=00:02.0,multifunction=on \
>                                ^^^^^^^^^^^^^^^^^  ??
>
> multifunction=on doesn't do much unless an addr= value is specified for
> the device and another device to appear in the same slot.
>
> > -device vfio-pci,host=00:0e.0 \
> > -drive
> if=pflash,format=raw,readonly,file=/usr/share/ovmf/x64/OVMF_CODE.fd
> > \
> > -drive if=pflash,format=raw,file=/home/admin/myvars.fd \
> > -device vfio-pci,host=00:02.0 \
>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> IGD is listed twice, that plus intel-iommu might explain the error.
>
> > -net nic \
> > /home/admin/kodi_drive.img
>
> In order to trigger legacy mode IGD assignment, the IGD device needs to
> be placed into addr=2.0  I thought it was also still the case that
> legacy mode doesn't work with q35 or OVMF.  UPT (universal passthrough
> mode) was originally meant to be only a secondary graphics, maybe
> that's what you're going for?  Probably need that i915 OVMF ROM that
> Jeff pointed to for using it as primary VM graphics (I've never tried
> it).  Thanks,
>
> Alex
>
>
_______________________________________________
vfio-users mailing list
vfio-users@redhat.com
https://www.redhat.com/mailman/listinfo/vfio-users

Reply via email to