core-admin/qubes/vm
Marek Marczykowski-Górecki 732231efb0
vm: refuse to start a VM not present in a collection
Check early (but after grabbing a startup_lock) if VM isn't just
removed. This could happen if someone grabs its reference from other
places (netvm of something else?) or just before removing it.
This commit makes the simple removal from the collection (done as the
first step in admin.vm.Remove implementation) efficient way to block
further VM startups, without introducing extra properties.

For this to be effective, removing from the collection, needs to happen
with the startup_lock held. Modify admin.vm.Remove accordingly.
2019-09-29 06:14:21 +02:00
..
mix mac address: lowercase of default value as in _setter_mac 2019-05-23 11:30:12 +02:00
__init__.py Fix too long line 2019-07-31 15:36:03 +02:00
adminvm.py vm/adminvm: add run_service* functions 2019-06-09 21:00:02 +02:00
appvm.py Fix too long line 2018-02-13 11:27:59 +01:00
dispvm.py DispVM: Do not overwrite properties set explicitly 2019-06-02 17:58:19 +02:00
qubesvm.py vm: refuse to start a VM not present in a collection 2019-09-29 06:14:21 +02:00
standalonevm.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
templatevm.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00