core-admin/qubes/api
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
..
__init__.py api: improve handling destination removed just before the call 2019-09-27 16:29:20 +02:00
admin.py vm: refuse to start a VM not present in a collection 2019-09-29 06:14:21 +02:00
internal.py Do not abort suspend hooks if any qubes.Suspend* service fails to run 2019-02-27 06:03:57 +01:00
misc.py Fix saving 'updates-available' flag reported by TemplateBasedVM 2019-01-19 03:25:21 +01:00