From 37c9ee9b34d853dcdb2e9907c389e15d87ecaa92 Mon Sep 17 00:00:00 2001 From: Ali Mirjamali Date: Tue, 3 Sep 2024 12:43:46 +0330 Subject: [PATCH] Kill paused qubes on system shutdown fixes: https://github.com/QubesOS/qubes-issues/issues/8580 --- qubes/vm/qubesvm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qubes/vm/qubesvm.py b/qubes/vm/qubesvm.py index fa7fd3ec6..c92b8ba7b 100644 --- a/qubes/vm/qubesvm.py +++ b/qubes/vm/qubesvm.py @@ -1381,6 +1381,8 @@ async def shutdown(self, force=False, wait=False, timeout=None): try: await self.fire_event_async('domain-pre-shutdown', pre_event=True, force=force) + if self.is_paused(): + raise qubes.exc.QubesVMNotRunningError(self) if self.__waiter is None: self.__waiter = asyncio.get_running_loop().create_future()