I have AMD Ryzen 3960x , the settings is a bit tricky,
3960x To topology all cores 24x2=48 threads:
# Unraid 6.10.0-rc2
# Windows 11 3960x topology :
<cpu mode='host-passthrough' check='none' migratable='on'>
<topology sockets='1' dies='24' cores='1' threads='2'/> # threads = dies X 2 = 48
<cache mode='passthrough'/>
<feature policy='require' name='topoext'/>
</cpu>
# macOS 3960x topology:
<cpu mode='host-passthrough' check='none' migratable='on'>
<topology sockets='24' dies='1' cores='1' threads='2'/> # threads = sockets X 2 = 48
<cache mode='passthrough'/>
<feature policy='require' name='topoext'/>
</cpu>
# Machine type tricky, last thing I expected to make pain boot failed:
<type arch='x86_64' machine='pc-q35-4.2'>hvm</type> macOS tested ok
<type arch='x86_64' machine='pc-q35-6.1'>hvm</type> macOS tested failed, Windows 11 ok
# GPU RX 6900 XT:
# Windows ok HDMI audio ok, macOS ok HDMI audio failed, 'bus' can't be changed.
# All GPU instences must be passthough and must be added to xml otherwise = failed
<hostdev mode='subsystem' type='pci' managed='yes'>
<driver name='vfio'/>
<source>
<address domain='0x0000' bus='0x4f' slot='0x00' function='0x0'/>
</source>
<address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0' multifunction='on'/>
</hostdev>
<hostdev mode='subsystem' type='pci' managed='yes'>
<driver name='vfio'/>
<source>
<address domain='0x0000' bus='0x4f' slot='0x00' function='0x1'/>
</source>
<address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x0'/>
</hostdev>
<hostdev mode='subsystem' type='pci' managed='yes'>
<driver name='vfio'/>
<source>
<address domain='0x0000' bus='0x4f' slot='0x00' function='0x2'/>
</source>
<address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
</hostdev>
<hostdev mode='subsystem' type='pci' managed='yes'>
<driver name='vfio'/>
<source>
<address domain='0x0000' bus='0x4f' slot='0x00' function='0x3'/>
</source>
<address type='pci' domain='0x0000' bus='0x08' slot='0x00' function='0x0'/>
</hostdev>
..................................
# macOS args:
<qemu:commandline>
<qemu:arg value='-device'/>
<qemu:arg value='isa-applesmc,osk=YOUR OSK HERE'/>
<qemu:arg value='-smbios'/>
<qemu:arg value='type=2'/>
<qemu:arg value='-cpu'/>
<qemu:arg value='Penryn,kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check'/>
</qemu:commandline>
</domain>