Closed icanc0 closed 11 months ago
I could get my tiger lake to generate the pci interface (virtual functions) but in a windows guest the device fails with error 43.
Capabilities: [320] Single Root I/O Virtualization (SR-IOV)
is listed.
sudo bash -c "echo 1 > /sys/devices/pci0000:00/0000:00:02.0/sriov_numvfs"
Are you add hyper-v enlightenments?
What do you mean? I have not done anything related to hyper-v.
add in libvirt xml section feature
Should I change:
<hyperv mode="custom">
<relaxed state="on"/>
<vapic state="on"/>
<spinlocks state="on" retries="8191"/>
</hyperv>
to
<hyperv mode="">
<relaxed state="on"/>
<vapic state="on"/>
<spinlocks state="on" retries="8191"/>
</hyperv>
Fails with error:
Error changing VM configuration: XML error: Invalid value for attribute 'mode' in element 'hyperv': ''.
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/addhardware.py", line 345, in change_config_helper
define_func(**define_args)
File "/usr/share/virt-manager/virtManager/details/details.py", line 1353, in change_cb
return self.vm.define_xml(newxml)
File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 347, in define_xml
self._redefine_xml_internal(origxml, newxml)
File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 374, in _redefine_xml_internal
self._define(newxml)
File "/usr/share/virt-manager/virtManager/object/domain.py", line 1137, in _define
self.conn.define_domain(xml)
File "/usr/share/virt-manager/virtManager/connection.py", line 554, in define_domain
return self._backend.defineXML(xml)
File "/usr/lib/python3.10/site-packages/libvirt.py", line 4495, in defineXML
raise libvirtError('virDomainDefineXML() failed')
libvirt.libvirtError: XML error: Invalid value for attribute 'mode' in element 'hyperv': ''.
or
<hyperv>
</hyperv>
Or should I remove it completely?
Pff I’m on the phone and app cut tags.
<hyperv mode="passthrough"></hyperv>
Also are you use cpu host?
Thank you!
Do you mean this: <cpu mode="host-passthrough" check="none" migratable="on"/>
Do you know which intel drivers work for my windows guest? A link would be nice :upside_down_face:.
How did you even get virtual functions to show up? Have you also tested multiple VFs?
sudo bash -c "echo 7 > /sys/devices/pci0000:00/0000:00:02.0/sriov_numvfs"
bash: line 1: echo: write error: Device or resource busy
Apparently windows is using it somewhat. Need to shutdown guest before I can change the number of VFs.
Woops I have a tiger lake: CPU: 11th Gen Intel i7-1165G7 (8) @ 4.700GHz
I have read to many xxx lake identifiers today.
GPU: Intel TigerLake-LP GT2 [Iris Xe Graphics]
yea, as expected, the driver you loaded says tgl according to the logs.
@sieskei Thank you its working!
@sieskei Should I remove the QXL Display or the spice video card? @icanotc Sorry for hijacking your issue.
@sieskei Thank you its working!
No problem, that’s good news! If you remove spice/virt gpu you will not have graphical output. Now you can try looking glass and virtual minitor to get better performance.
Btw how many virtual functions you set? Can you share your final libvirt xml?
I set 1 VF but I can create up to 7. I have not tried to use more than 1 though.
I am currently writing a guide. It will eventually be available here.
@sieskei do you have a working setup? Does hibernation/suspension work for you?
No, when I’m running with iGPU host and guest are super, super laggy. Mouse/Kbd are totaly freezing.
This is my ticket. https://github.com/strongtz/i915-sriov-dkms/issues/42
What is your distro?
Ahh I already 👍 your issue. 🙃 Actually my host and guest are super laggy too but only when starting and when shutting down otherwise performance is OK.
I am using arch btw.
What distor/cpu do you use?
I’m on Fedora 37 with kernel 6.1.14 and mesa 23.01.
Laptop is asus rog zephyros m16 2021. 11800H, 40Gb ram, gt1
Did you use their intel-lts kernel or the dkms module?
dkms module only, you?
@raldone01 are you sure is working properly? I noticed that when iGPU is not use (task manager) does not laggy. When 3d rendering is needed then it freeze.
Usage is either 0 or 100. Can you check?
The dkms module stopped working after a kernel update. (sound driver and i915 did not agree on something) So I now built intel-linux-lts myself. I have the same issue as you. Either 0 or 100 percent usage. Sometimes I get 20%. What program do you test it with?
I can verify that Rocketlake doesnt work, I pretty much get the same results on my MSI B560 with a 12 x 11th Gen Intel(R) Core(TM) i5-11600
I have 10gb fiber nic I have in the pci slot shows SR-IOV but not the onboard video.
01:00.0 0200: 8086:10fb (rev 01) Subsystem: 8086:7a12 Flags: bus master, fast devsel, latency 0, IRQ 16, IOMMU group 13 Memory at 80900000 (64-bit, non-prefetchable) [size=1M] I/O ports at 4020 [disabled] [size=32] Memory at 80b04000 (64-bit, non-prefetchable) [size=16K] Expansion ROM at 80a80000 [disabled] [size=512K] Capabilities: [40] Power Management version 3 Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+ Capabilities: [70] MSI-X: Enable+ Count=64 Masked- Capabilities: [a0] Express Endpoint, MSI 00 Capabilities: [e0] Vital Product Data Capabilities: [100] Advanced Error Reporting Capabilities: [140] Device Serial Number 90-e2-ba-ff-ff-e8-30-10 Capabilities: [150] Alternative Routing-ID Interpretation (ARI) Capabilities: [160] Single Root I/O Virtualization (SR-IOV) Kernel driver in use: ixgbe Kernel modules: ixgbe
the most infuriating part of this is that I tried a intel nuc at work that had a 11th gen in it (tiger lake) and it worked just fine.
I actually asked on the intel forum, and the response is that 11th Gen desktop (Rocket Lake) is the only platform not supporting graphics splitting since 5th Gen Broadwell. I asked why, but the response was, "This is a top-level secret and we can't tell ya". They really want me to upgrade to a 12th gen huh?
I'm going to close this issue now, if the arc GPUs didn't disappoint me, this definitely did.
Running
lspci -v -s 00:02
results in:[320] Single Root I/O Virtualization
didn't show up under Capabilities And the kernel msg: (ignore the firmware warning, i was trying to see if it was a firmware issue)Searching for VFs only shows the Nvidia GPU I've passed through. (Look at the vender, its a GTX 745)
And then i checked on the intel website:
![image](https://user-images.githubusercontent.com/44480394/210363626-e1a86809-81a5-4383-844c-6b7bda42eb03.png)
Don't you love it when the intel website conflicts with itself? Tiger Lake is almost half a year older than Rocket Lake.