[Bug 243640] QEMU / KVM Q35 V4.X PCIe Virtual and Physical (Passthrough) Devices not detected

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 18 Jul 2023 03:24:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243640

--- Comment #10 from John Hartley <drum@graphica.com.au> ---
(In reply to John Hartley from comment #9)
H Mina Galic,

I have now done further testing with 13.2.

You can get this up and running Q35 V4.2 & 6.2 but you need to ensure that is
is using specific OVMF (UEFI) firmwaare.

My libvirt configuraton to achieve this:

<WORKS>
...
  <os>
    <type arch='x86_64' machine='pc-q35-6.2'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader>
    <nvram>/home/XXXX/Documents/current.dev.freebsd/OVMF_VARS.fd</nvram>
  </os>
...
</WORKS>

The default UEFI / OVMF libvirt configuration is:

<FAILS>
...
  <os firmware='efi'>
    <type arch='x86_64' machine='pc-q35-6.2'>hvm</type>
  </os>
...
</FAILS>

This result in it loading a different OVMF version, which then fails UEFI boot.

With the working boot e1000e (Intel 1GbE on PCIe bus) if found ok.

So it looks like 13.2 has fixed the problem with PCIe Devices, but I have not
tested with real devices via PCIe passthrough...


Cheers,

John Hartley.

-- 
You are receiving this mail because:
You are the assignee for the bug.