NVME M.2 Passthrough


Recommended Posts

Hopefully someone will show us how to install the patch to Unraid. unraid ver:6.11.1

[126f:2263] 06:00.0 Non-Volatile memory controller: Silicon Motion, Inc. SM2263EN/SM2263XT SSD Controller (rev 03)

internal error: process exited while connecting to monitor: qxl_send_events: spice-server bug: guest stopped, ignoring 2022-10-21T07:22:48.020846Z qemu-system-x86_64: -device {"driver":"vfio-pci","host":"0000:06:00.0","id":"hostdev0","bus":"pci.0","addr":"0x5"}: vfio 0000:06:00.0: failed to add PCI capability 0x11[0x50]@0xb0: table & pba overlap, or they don't fit in BARs, or don't align

Link to comment
14 minutes ago, Meloay said:

table & pba overlap

It's not unraid nor qemu fault, it's the device that is bugged.

If you check the device capabilities you will find something like:

	Capabilities: [b0] MSI-X: Enable- Count=22 Masked-
		Vector table: BAR=0 offset=00002000
		PBA: BAR=0 offset=00002100

In this example you have Count 22 and vector table with offset 0x2000; each vector table entry is 16 bytes, so 16x22 is 352 bytes; this means that it will extend to 0x2000+0x352 --> 0x2352 so the second offset is wrong.

You can try to add an alias to the nvme pcie device in the xml and use qemu override custom argument:

    <qemu:override>
      <qemu:device alias='YOURALIASHERE'>
        <qemu:frontend>
          <qemu:property name='x-msix-relocation' type='string' value='bar2'/>
        </qemu:frontend>
      </qemu:device>
    </qemu:override>

Didn't try with 6.11.x, in 6.10.x it was not possible because of bugs.

Edited by ghost82
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.