From 8b4a4a72b434a978b235ae1afc1063f06bcdea67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sun, 1 Nov 2020 18:10:52 +0100 Subject: [PATCH] drop old workaround kernelopts - nopat - added when PAT in Linux+Xen was buggy, no longer the case for a long time. - iommu=soft swiotlb=8192 - necessary to limit required memory on PV with PCI devices; since we use HVM now (with proper IOMMU translation), this is no longer needed. Furthermore, it will free some memory in sys-* vms. --- qubes/config.py | 4 ++-- qubes/tests/vm/qubesvm.py | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/qubes/config.py b/qubes/config.py index 6c51e96e..a8f6c9de 100644 --- a/qubes/config.py +++ b/qubes/config.py @@ -52,8 +52,8 @@ defaults = { 'libvirt_uri': 'xen:///', 'memory': 400, 'hvm_memory': 400, - 'kernelopts': "nopat", - 'kernelopts_pcidevs': "nopat iommu=soft swiotlb=8192", + 'kernelopts': "", + 'kernelopts_pcidevs': "", 'kernelopts_common': ('root=/dev/mapper/dmroot ro nomodeset console=hvc0 ' 'rd_NO_PLYMOUTH rd.plymouth.enable=0 plymouth.enable=0 '), diff --git a/qubes/tests/vm/qubesvm.py b/qubes/tests/vm/qubesvm.py index d355cf47..4f04f339 100644 --- a/qubes/tests/vm/qubesvm.py +++ b/qubes/tests/vm/qubesvm.py @@ -773,7 +773,7 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase): linux /tmp/kernel/vmlinuz /tmp/kernel/initramfs - root=/dev/mapper/dmroot ro nomodeset console=hvc0 rd_NO_PLYMOUTH rd.plymouth.enable=0 plymouth.enable=0 nopat + root=/dev/mapper/dmroot ro nomodeset console=hvc0 rd_NO_PLYMOUTH rd.plymouth.enable=0 plymouth.enable=0 @@ -902,7 +902,7 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase): hvmloader - root=/dev/mapper/dmroot ro nomodeset console=hvc0 rd_NO_PLYMOUTH rd.plymouth.enable=0 plymouth.enable=0 nopat + root=/dev/mapper/dmroot ro nomodeset console=hvc0 rd_NO_PLYMOUTH rd.plymouth.enable=0 plymouth.enable=0 @@ -969,7 +969,7 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase): hvmloader - kernel specific options nopat + kernel specific options @@ -1033,7 +1033,7 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase): xenpvh /tmp/kernel/vmlinuz /tmp/kernel/initramfs - root=/dev/mapper/dmroot ro nomodeset console=hvc0 rd_NO_PLYMOUTH rd.plymouth.enable=0 plymouth.enable=0 nopat + root=/dev/mapper/dmroot ro nomodeset console=hvc0 rd_NO_PLYMOUTH rd.plymouth.enable=0 plymouth.enable=0 @@ -1103,7 +1103,7 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase): xenpvh /tmp/kernel/vmlinuz /tmp/kernel/initramfs - root=/dev/mapper/dmroot ro nomodeset console=hvc0 rd_NO_PLYMOUTH rd.plymouth.enable=0 plymouth.enable=0 nopat + root=/dev/mapper/dmroot ro nomodeset console=hvc0 rd_NO_PLYMOUTH rd.plymouth.enable=0 plymouth.enable=0 @@ -1342,7 +1342,7 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase): hvmloader - root=/dev/mapper/dmroot ro nomodeset console=hvc0 rd_NO_PLYMOUTH rd.plymouth.enable=0 plymouth.enable=0 nopat + root=/dev/mapper/dmroot ro nomodeset console=hvc0 rd_NO_PLYMOUTH rd.plymouth.enable=0 plymouth.enable=0