AMD Ryzen working with IOMMU, HCL results attached

Skip to first unread message

Bjoern Christoph

May 15, 2017, 3:24:30 PM5/15/17
to qubes-users
Hi all,

Attached are the HCL results of my Ryzen system.

It did NOT work out of the box on Qubes - IOMMU was not available. However, Ubuntu stated it's working (BIOS IOMMU looks great) so I played around a bit.

Basically, two things are needed for working IOMMU in Xen used by Qubes:
1) Update Xen with an IOMMU patch from AMD
2) Update Xen with family 17h == Ryzen

For step 1): Apply this patch (part or Xen 4.8.0):

For step 2): xen/arch/x86/oprofile/nmi_int.c - Create a "case 0x17:" entry which is the same as "case 0x15:"

I installed Qubes, then proceeded as described to compile Qubes from scratch. Before I did "make vmm-xen" I changed the above files within the xen*.gz file. After that, I moved the files to dom0 and forced a reinstall of the RPM files.

Rebooted and voila, you can see the resul in the files :) Now I can get a TPM I guess ;)

I posted this nmi_int.c patch also on the xen-devel mailing list, let's see if it's enough for them.

Maybe these two patches can be added to Qubes 3.2 (if they work properly). Not sure if there is anything else I can do to test if IOMMU is working properly, if something is there to test that please let me know!



Grzesiek Chodzicki

May 15, 2017, 5:00:25 PM5/15/17
to qubes-users
Does PCI passthrough work for Windows VMs now that IOMMU is enabled?

Bjoern Christoph

May 16, 2017, 1:35:20 AM5/16/17
to qubes-users
Ok, it's NOT working after all. Trying to install a HVM causes a reboot... so I guess there is more work left there after all.

You can ignore the HCL report then as well.

Foppe de Haan

May 16, 2017, 1:56:46 AM5/16/17
to qubes-users
Wendell at Level1techs has been testing iommu a bit on Ryzen, and has talked about it with AMD, you can find a few threads about it here, e.g. this one:

May 18, 2017, 10:02:53 AM5/18/17
to qubes-users
Thanks for looking into this though. I'm starting to part out a system that will be specifically for Qubes usage and I'm very interested in the new AMD chips.
Reply all
Reply to author
0 new messages