core-admin/qubes/tests/vm
Marek Marczykowski-Górecki 0afee4b05e
Improve checking for netvm loop
There were many cases were the check was missing:
 - changing default_netvm
 - resetting netvm to default value
 - loading already broken qubes.xml

Since it was possible to create broken qubes.xml using legal calls, do
not reject loading such file, instead break the loop(s) by setting netvm
to None when loop is detected. This will be also useful if still not all
places are covered...

Place the check in default_netvm setter. Skip it during qubes.xml loading
(when events_enabled=False), but still keep it in setter, to _validate_ the
value before any property-* event got fired.
2017-12-05 17:39:33 +01:00
..
mix Improve checking for netvm loop 2017-12-05 17:39:33 +01:00
__init__.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
adminvm.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
appvm.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
dispvm.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
init.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
qubesvm.py Merge remote-tracking branch 'qubesos/pr/156' 2017-11-20 22:40:53 +01:00