Nvidia Driver Incompatibility with Xen Due to Dependency on Linux PAT Configuration

I am experiencing issues with the Nvidia driver when running under the Xen hypervisor. The Nvidia driver appears to require the Linux PAT configuration, which is not supported by upstream Xen. This dependency leads to system instability and prevents the Nvidia driver from functioning correctly.

GPU: Nvidia GeForce RTX 3070
Nvidia driver version: 550.120
Xen Version: 4.17.5 (note: earlier versions are also affected, if QubesOs wouldn’t apply patches)
OS: QubesOs 4.2.3

After applying updates that reversed QubesOs-specific patches to Xen, I noticed that the Nvidia driver fails to function correctly in dom0. According to the Qubes development team, upstream Xen does not support configurations that use Linux’s PAT. The QubesOs team reapplied the patches and my bug got resolved, but they mentioned that a correctly written driver should not require this configuration.

I initially filed a QubesOs Bug report. This one can be found here, which also includes logs and more descriptions.

Edit: this is PV dom0. PVH and HVM guests are not affected by this bug.