diff --git a/qubes/tests/vm/qubesvm.py b/qubes/tests/vm/qubesvm.py
index c46280e6..d488b7ba 100644
--- a/qubes/tests/vm/qubesvm.py
+++ b/qubes/tests/vm/qubesvm.py
@@ -751,6 +751,8 @@ 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
+
+
@@ -826,6 +828,8 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
+
+
destroy
@@ -884,6 +888,8 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
+
+
destroy
@@ -951,6 +957,8 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
+
+
destroy
@@ -1015,6 +1023,8 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
+
+
@@ -1085,6 +1095,8 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
+
+
@@ -1242,6 +1254,8 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
+
+
destroy
@@ -1324,6 +1338,8 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
+
+
destroy
@@ -1425,6 +1441,8 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
+
+
destroy
@@ -1499,6 +1517,8 @@ class TC_90_QubesVM(QubesVMTestsMixin, qubes.tests.QubesTestCase):
+
+
destroy
diff --git a/templates/libvirt/xen.xml b/templates/libvirt/xen.xml
index 8cf9936d..61343905 100644
--- a/templates/libvirt/xen.xml
+++ b/templates/libvirt/xen.xml
@@ -61,13 +61,15 @@
{% 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 %}
@@ -186,12 +188,14 @@
{% endif %}
/>
-
- {% if vm.features.check_with_template('linux-stubdom', True) %}
- {# TODO only add qubes gui if gui-agent is not installed in HVM #}
-
+ {% 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 %}
{% endif %}
{% endif %}