diff --git a/qubes/tests/vm/qubesvm.py b/qubes/tests/vm/qubesvm.py
index 3d3c5234..dee06488 100644
--- a/qubes/tests/vm/qubesvm.py
+++ b/qubes/tests/vm/qubesvm.py
@@ -776,8 +776,6 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
root=/dev/mapper/dmroot ro nomodeset console=hvc0 rd_NO_PLYMOUTH rd.plymouth.enable=0 plymouth.enable=0 nopat
-
-
@@ -853,8 +851,6 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
-
-
destroy
@@ -913,8 +909,6 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
-
-
destroy
@@ -982,8 +976,6 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
-
-
destroy
@@ -1048,8 +1040,6 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
-
-
@@ -1120,8 +1110,6 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
-
-
@@ -1279,8 +1267,6 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
-
-
destroy
@@ -1363,8 +1349,6 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
-
-
destroy
@@ -1466,8 +1450,6 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
-
-
destroy
@@ -1542,8 +1524,6 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
-
-
destroy
diff --git a/templates/libvirt/xen.xml b/templates/libvirt/xen.xml
index 055e109c..7d41facb 100644
--- a/templates/libvirt/xen.xml
+++ b/templates/libvirt/xen.xml
@@ -64,15 +64,13 @@
{% endif %}
+
+ {% if vm.devices['pci'].persistent() | list
+ and vm.features.get('pci-e820-host', True) %}
- {% if vm.devices['pci'].persistent() | list
- and vm.features.get('pci-e820-host', True) %}
- {% endif %}
- {% if vm.features.check_with_template('gfx-passthru', False) %}
-
- {% endif %}
+ {% endif %}
{% endblock %}
@@ -191,14 +189,12 @@
{% endif %}
/>
- {% if vm.features.check_with_template('video-model', 'vga') != 'none' %}
-
- {% if vm.features.check_with_template('linux-stubdom', True) %}
- {# TODO only add qubes gui if gui-agent is not installed in HVM #}
-
- {% endif %}
+
+ {% if vm.features.check_with_template('linux-stubdom', True) %}
+ {# TODO only add qubes gui if gui-agent is not installed in HVM #}
+
{% endif %}
{% endif %}