January 18, 2020 1:57 AM, "Guerlan" <worms....@gmail.com> wrote:

> I have a problem where any linux distro in my Razer Blade Stealth will suffer 
> from NVME corruption
> (nvme enters in read only mode) many times a day. I tried the most recent 
> kernel, old ones, etc.
> Tried opening a bug in canonical launchpad, got some help, some kernel 
> patches to try, but none
> worked. I made two independent tests that prove it's not a problem in my 
> notebok or SSD: 1, I
> bougth a brand new SSD, same problem. 2: neither Windows or Qubes will give 
> the error.
> 
> Actually, I installed Qubes just to see what would happen, because I wanted 
> to run something non
> linux in my machine just to test. Turns out something in Qubes makes the dom0 
> access the NVME
> without any problems.
> The way I think Xen/Qubes NVME interaction works is like this: xen has pci 
> front and back drivers.
> Front is in xen, back is in dom0. dom0 then accesses the NVME through PCI. 
> The nvme driver in dom0
> is the same as the nvme driver in my older bare metal linux distributions 
> which had the bug, so I
> can only think the bug happens in the PCI level, because it's the only thing 
> different here.
> 
> Can someone with better understanding of Xen and Qubes give me a better 
> picture and maybe guess
> what's happening and why I don't feel the bug at all in Qubes?

Qubes doesn't use a storage domain, so the SATA controller (or in your case, 
NVME) doesn't use pciback as far as I know. If not for that, I would say it's 
probably because pciback blocks writes to read-only config space of PCI 
devices. However storage devices in Qubes just use the normal driver in dom0, 
just like any other Linux. You can check with `lspci -k`. Unfortunately I don't 
know enough about NVME to be much help.

Have you tried installing Xen in any other distro? See if the problem occurs 
there. You can also test suspend/resume while you're at it. If you find that it 
fixes the NVME problem and suspend works, you can continue using that distro 
under Xen, even if you don't actually use any domUs.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/9d7885e7b35799ae169f7e88eab77a62%40disroot.org.

Reply via email to