[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 18/19] timers: Don't migrate timers during suspend
- To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
- Date: Fri, 7 Oct 2022 10:32:51 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=KDUUqGmmMNAG4mTJPMtkYc8B5YGTFxvyMyBDVzdOMKI=; b=gq9WYCp/NbPM7Ly9nfE35SqGfK6BTRNTP4PVwQfMXrxly/UOMSUP+RqFtuLOXNChhE0ZjkEoQfaXNGjIsVGS14eNsKQ9MQjLCCOVPW83Je89tdX7bZ9c+W0mWrhHIufeL3hHM3SoMLNiWJyTNKN6S4mXkBH0VQqFPT8CK1kyYa16qt2Y1JOhUedlYqTtKUKM00kZsXo5aytc4qe/I6IZ0F5Cldp3FVI+jIOlxuwzNejQFX+8FnucdJyeO+bAchJYhLfBvPbHjjap7FD3Is3aw8BDDNW0hntSsOmCp7a5udeXIKtlA+a/t1ODFUJ/EcrzsBFh2YuAAJKLf9kM2e41DQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T64OjVtm3V9WvNNZTS9emRi5y+HDGGsaqVUze/1lhYyxnJV/JoJXdkE4YXwcVA3B1B6Dilvgmn9GTycvLygx86ciLc12Sf92U5UAbOvgM/g6eqthlLMqvuuLE43zxanU6+0hixxRUBW4QmH3HwzrUb2JFvRd7cL3hxphchvJ7DA4cCXrTIOMJpE4TIyrVaBsH3ErtSfrcauifVOBsgwfVrwekJ6dBKOi4ZGpDa/RrArVFUT4Y7bVpPP73SmWKQHOIWsQXu8g4Nuu/u7tkL6EQxYUpyDFnaAOXJxhqXKRm+E+lM7PCc317e2jfRNXutVZ6WAxGE9Z6JIO5U1lUnVKxw==
- Cc: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
- Delivery-date: Fri, 07 Oct 2022 10:33:20 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHY2jgmyMa3fIhJ3kaXCccflKz0UA==
- Thread-topic: [PATCH 18/19] timers: Don't migrate timers during suspend
Migrating timers during suspend causes Dom0 to freeze after resume.
Signed-off-by: Mykyta Poturai <mykyta_poturai@xxxxxxxx>
---
xen/common/timer.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/xen/common/timer.c b/xen/common/timer.c
index 1bb265ceea..52d4f72a76 100644
--- a/xen/common/timer.c
+++ b/xen/common/timer.c
@@ -658,7 +658,8 @@ static int cpu_callback(
case CPU_UP_CANCELED:
case CPU_DEAD:
case CPU_RESUME_FAILED:
- migrate_timers_from_cpu(cpu);
+ if ( system_state != SYS_STATE_suspend )
+ migrate_timers_from_cpu(cpu);
if ( !park_offline_cpus && system_state != SYS_STATE_suspend )
free_percpu_timers(cpu);
--
2.37.1
|