Xen + xmm-xen fixes to test (suspend/resume fixes, directio loopback devices, sys-usb fails to start, slowness vs bare metal)

The issues

Some of the issues above might be fixed with packages having landed under current-testing repos:

  • Testing those packages should result from testers with at least a :-1: :+1: the referred issue so that the packages are not deployed from current-testing to stable.
  • If :-1: : Describing packages installed and telling what part of the issue is still present in those issues
- sudo qubes-dom0-update --enablerepo=qubes-dom0-current-testing
[user@dom0 ~]$ sudo qubes-dom0-update --disablerepo=* --enablerepo=qubes-dom0-current-testing
Using sys-whonix as UpdateVM to download updates for Dom0; this may take some time...
Qubes OS Repository for Dom0                    3.9 MB/s |  88 kB     00:00    

kernel.x86_64                      1000:5.15.74-1.fc32.qubes   qubes-dom0-cached
kernel-qubes-vm.x86_64             1000:5.15.74-1.fc32.qubes   qubes-dom0-cached
linux-firmware.noarch              20220913-135.fc32           qubes-dom0-cached
linux-firmware-whence.noarch       20220913-135.fc32           qubes-dom0-cached
python3-qasync.noarch              0.23.0-2.fc32               qubes-dom0-cached
python3-xen.x86_64                 2001:4.14.5-9.fc32          qubes-dom0-cached
qubes-input-proxy.x86_64           1.0.28-1.fc32               qubes-dom0-cached
qubes-input-proxy-receiver.x86_64  1.0.28-1.fc32               qubes-dom0-cached
qubes-input-proxy-sender.x86_64    1.0.28-1.fc32               qubes-dom0-cached
xen.x86_64                         2001:4.14.5-9.fc32          qubes-dom0-cached
xen-hvm-stubdom-linux.x86_64       1.2.5-1.fc32                qubes-dom0-cached
xen-hvm-stubdom-linux-full.x86_64  1.2.5-1.fc32                qubes-dom0-cached
xen-hypervisor.x86_64              2001:4.14.5-9.fc32          qubes-dom0-cached
xen-libs.x86_64                    2001:4.14.5-9.fc32          qubes-dom0-cached
xen-licenses.x86_64                2001:4.14.5-9.fc32          qubes-dom0-cached
xen-runtime.x86_64                 2001:4.14.5-9.fc32          qubes-dom0-cached
xfwm4.x86_64                       1000:4.14.2-3.fc32          qubes-dom0-cached
zlib.x86_64                        1.2.12-5.fc32               qubes-dom0-cached
Qubes OS Repository for Dom0                    2.9 MB/s | 3.0 kB     00:00    
Dependencies resolved.
 Package               Arch   Version                   Repository         Size
 kernel                x86_64 1000:5.15.74-1.fc32.qubes qubes-dom0-cached  69 M
 kernel-qubes-vm       x86_64 1000:5.15.74-1.fc32.qubes qubes-dom0-cached 102 M
 linux-firmware        noarch 20220913-135.fc32         qubes-dom0-cached 107 M
 linux-firmware-whence noarch 20220913-135.fc32         qubes-dom0-cached  31 k
 python3-qasync        noarch 0.23.0-2.fc32             qubes-dom0-cached  32 k
 python3-xen           x86_64 2001:4.14.5-9.fc32        qubes-dom0-cached  60 k
 qubes-input-proxy     x86_64 1.0.28-1.fc32             qubes-dom0-cached  21 k
                       x86_64 1.0.28-1.fc32             qubes-dom0-cached  17 k
                       x86_64 1.0.28-1.fc32             qubes-dom0-cached  17 k
 xen                   x86_64 2001:4.14.5-9.fc32        qubes-dom0-cached  20 k
 xen-hvm-stubdom-linux x86_64 1.2.5-1.fc32              qubes-dom0-cached  11 M
                       x86_64 1.2.5-1.fc32              qubes-dom0-cached  12 M
 xen-hypervisor        x86_64 2001:4.14.5-9.fc32        qubes-dom0-cached 7.8 M
 xen-libs              x86_64 2001:4.14.5-9.fc32        qubes-dom0-cached 626 k
 xen-licenses          x86_64 2001:4.14.5-9.fc32        qubes-dom0-cached  32 k
 xen-runtime           x86_64 2001:4.14.5-9.fc32        qubes-dom0-cached  19 M
 xfwm4                 x86_64 1000:4.14.2-3.fc32        qubes-dom0-cached 587 k
 zlib                  x86_64 1.2.12-5.fc32             qubes-dom0-cached  90 k
 kernel                x86_64 1000:5.15.57-1.fc32.qubes @qubes-dom0-cached
                                                                          344 M
 kernel-qubes-vm       x86_64 1000:5.15.57-1.fc32.qubes @qubes-dom0-cached
                                                                          483 M

Transaction Summary
Install   2 Packages
Upgrade  16 Packages
Remove    2 Packages

Total size: 329 M
Is this ok [y/N]: y


  • apply same disablerepo, enablerepo runtime trick as applied for dom0.


  • kernel-qubes-vm is downloaded from dom0 and used by default by fedora templates.

Debian bullseye/buster/bookworm:

  • to be written. Those repos are simply commented out and cannot be runtime applied as for Fedora/Centos
1 Like

On sys-usb failing to start:

The update in question: vmm-xen v4.14.5-9 (r4.1) · Issue #3084 · QubesOS/updates-status · GitHub

Not experiencing any instability in my daily tasks, nor sys-usb/sys-net which rely on fedora and newer kernel used by running appvms (no standby as of now though).

Progressing into testing my debian-11 template.
For safe measure, from dom0:
qvm-clone debian-11 debian-11-before-xmm-xen

Then in debian-11, following instructions from How to install software | Qubes OS

  • sudo apt update && sudo apt update
  • uncomment /etc/apt/sources.list.d/qubes-r4.list testing repo line:
 # Qubes updates candidates repository
deb [arch=amd64] http://HTTPS///deb.qubes-os.org/r4.1/vm bullseye-testing main
  • sudo apt update && sudo apt upgrade
The following packages will be upgraded:
  qubes-input-proxy-sender qubes-vm-dependencies qubes-vm-recommended xen-utils-guest
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 48.4 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://HTTPS///deb.qubes-os.org/r4.1/vm bullseye-testing/main amd64 qubes-input-proxy-sender amd64 1.0.28-1+deb11u1 [11.7 kB]
Get:2 http://HTTPS///deb.qubes-os.org/r4.1/vm bullseye-testing/main amd64 xen-utils-guest amd64 4.14.5-9+deb11u1 [29.5 kB]
Get:3 http://HTTPS///deb.qubes-os.org/r4.1/vm bullseye-testing/main amd64 qubes-vm-dependencies amd64 4.1.21-1+deb11u1 [3,516 B]
Get:4 http://HTTPS///deb.qubes-os.org/r4.1/vm bullseye-testing/main amd64 qubes-vm-recommended amd64 4.1.21-1+deb11u1 [3,636 B]
  • comment back the /etc/apt/sources.list.d/qubes-r4.list testing repo lines:
# Qubes updates candidates repository
#deb [arch=amd64] http://HTTPS///deb.qubes-os.org/r4.1/vm bullseye-testing main
#deb-src http://HTTPS///deb.qubes-os.org/r4.1/vm bullseye-testing main
  • shutdown template and start app vm depending on it to test on daily use.

New xmm-xen testing package removed directio loopback. Still on referred updated packages from current-testing.

  • Had on random freeze upon resume, was not able to isolate.
  • Time sync is still lost upon resume from suspend, still getting tsc unstable clock source issues which fallbacks to xen.
  • Whonix still not able to have sdwdate sync normally, have to restart manually tor from control panel.
1 Like

I’m experiencing slowness as never before.
When compiling stuff (enough ram all available cpus usable), my mouse stops moving sometimes, like if dom0 (where xorg is) was not having enough priority.

This behavior is new since about a week. Will try to isolate, everything now from stable repo.