[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 15/19] xen/arm: Resume Dom0 after Xen resumes


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
  • Date: Fri, 7 Oct 2022 10:32:50 +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=QenTrU/w9T19tqKdM68BwBw1XM+QqDHCATxtF1s1i9Y=; b=WZhmAXvD6c3Pb0PB0PFK6MExeL+dn9yRn++BWuZYCs1LmcsupTyNx+uKCcqpK+jP3xJXX6/TPCpBLY4LDBRgkfF96Mft1pJQpTtLR8d/bDjR8oeaeUHN65WFFj0ts8T8sayYexKlioqhErrjCnpiHgykHsgJLkaW21PLFkL5sOMHN3ioHQSr3dLVIfT1aNCwN1XkkvU0HJ5M3j9CFGNRPgT+tuEoCcGcla8Mmx/96T5EMmTSGkYy/oOjwOH8lUKxGxdw2v8clkEEMLIHJEVllMl/OVdOgmVrFg67VsSxnPEZizDiIP7Kg/on/WvCkBquG3/yoj5pt3sFKtMWbhRXZw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b7eF3Ld0NgKbxkqyA393PPvl4rNXvZmR4Wc34k1/1SQqA5QZ9Sm0SnwZ89FibjqL5AJX9gW0qckPrk9qRNxZ8U/srUkt7EzSUlB9XhmTNH/U165i1A337H5cPZeKKI66hnDfaQNUDc3ZkyN8oTserNnLvURyGy//t1/YPlRNIKip/wc6GGIX9NDmJQGEVXITzKpf0g0PUJ29bCezjyypxrHn/2CmtqzjrkTatC2DmTYjQPXmgBkv6XSisSwIgm7jYDVDp2qLw2vuG6USDnn1Ndb+rwWPgUhB10OiDGEYaeqyjJaJ+dzVns8VyTdkT2QsG9ncJ5qY26Iy51phRpu6AQ==
  • Cc: Mirela Simonovic <mirela.simonovic@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Saeed Nowshadi <saeed.nowshadi@xxxxxxxxxx>
  • Delivery-date: Fri, 07 Oct 2022 10:33:10 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHY2jgmyrQmtGIhpEijBSu3iT5A5w==
  • Thread-topic: [PATCH 15/19] xen/arm: Resume Dom0 after Xen resumes

From: Mirela Simonovic <mirela.simonovic@xxxxxxxxxx>

The resume of Dom0 should always follow Xen's resume. This is
done by unblocking the first vCPU of Dom0.

Signed-off-by: Mirela Simonovic <mirela.simonovic@xxxxxxxxxx>
Signed-off-by: Saeed Nowshadi <saeed.nowshadi@xxxxxxxxxx>
---
 xen/arch/arm/suspend.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/xen/arch/arm/suspend.c b/xen/arch/arm/suspend.c
index 13d1aba658..4a690eac3b 100644
--- a/xen/arch/arm/suspend.c
+++ b/xen/arch/arm/suspend.c
@@ -206,6 +206,9 @@ resume_nonboot_cpus:
     system_state = SYS_STATE_active;
     dsb(sy);
 
+    /* Wake-up hardware domain (should always resume after Xen) */
+    vcpu_unblock(hardware_domain->vcpu[0]);
+
     return status;
 }
 
-- 
2.37.1



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.