Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5824121imm; Tue, 12 Jun 2018 14:03:32 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL7MCxDbW4wzEx7QJrkfzNPsqZs+CBXoz6umAxmIPbN+n5Nm6v1qdVoLKi18yeJRuyOogMn X-Received: by 2002:a62:dc1c:: with SMTP id t28-v6mr1984511pfg.137.1528837412587; Tue, 12 Jun 2018 14:03:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528837412; cv=none; d=google.com; s=arc-20160816; b=ZnPzoUpTyX/r+pyFNe7btKGLYD3t/fUHX9yDLJ7NO0dSwbIU4DG91E721dHRLc/yQB scfDjv75biU/BH7X1EPRSWbhdDBmUfVCIiodaF5A/lkwPrGTbpXMX2tKBrS26vOqzp7q 6gvzwin3Ckc+6g0v5q8DfcMIp2FEJBIHdDctDxH6bklS+zbBGM7fM5qYG6Vg4yJ2ZxHn MH0Ypl6wdyRkwGrm9eVJ+QAhBqyCEfDfyoMZMZmMacqV8YvWLJf3GiJoEUZjqouvR3Rq 9RHtGeAVYUbwlApPb9oeJWWtZG3bq5b2hpkTmUDeoOKtI6FcgMBYusZJv+0GnshcxkyX j0Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature:arc-authentication-results; bh=FInAt5ibGXfg881hGlOMYQvmDIsnPK+1a117RSZwwLo=; b=qLlpqJTCCpm0HiTyyREirGKBowqKuDuyZz8D1dlsIfAJWhRRrerAakHfAMt5Jee1i3 09sPbVXUL29OQBoDN4+FHAJkehq1pKbWZIBa4ORL0euqkK+uj/6cQpnnt5uFGWkkK6s/ bGuN4FFfMrwOOvNMCfGVDzkW0lLVQP2iPiGhYYwr35wCBh+GhnPugTjhfquNNvqm8x70 xDifWu0w3tetVnEUlYx4XiVFpH/g/7gKOQqa3ug2ZJjaZ3XdDatqgRDgZUwZgRYQOtj8 bqNGHb5iVIPvhdcO4f3IR3IOajBEQgkdqJpFMavtw15BgMhXK4GUEh8k70JCc+QD4Kre ZfxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b="G1/50mk9"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4-v6si791651pgs.476.2018.06.12.14.02.56; Tue, 12 Jun 2018 14:03:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b="G1/50mk9"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933994AbeFLU4g (ORCPT + 99 others); Tue, 12 Jun 2018 16:56:36 -0400 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:6029 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933637AbeFLU4e (ORCPT ); Tue, 12 Jun 2018 16:56:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1528836994; x=1560372994; h=from:to:cc:subject:date:message-id:mime-version; bh=FInAt5ibGXfg881hGlOMYQvmDIsnPK+1a117RSZwwLo=; b=G1/50mk94lmyeHpYZguGAbAbpjwwdMK5nMF+CPM0mTiphI8aII8O1U5D d589x2A58obdEAFnx0iLobkId5il6vp8f5AdavyefjewV14ViNN/wy7ep yKpd4wbJXe8MQNDLIq6nm0Klt8xQ6ttauOfl+xYSu4PlWefcqvEpxtejI 4=; X-IronPort-AV: E=Sophos;i="5.51,216,1526342400"; d="scan'208";a="736713934" Received: from sea3-co-svc-lb6-vlan2.sea.amazon.com (HELO email-inbound-relay-2b-5bdc5131.us-west-2.amazon.com) ([10.47.22.34]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Jun 2018 20:56:29 +0000 Received: from EX13MTAUWB001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-2b-5bdc5131.us-west-2.amazon.com (8.14.7/8.14.7) with ESMTP id w5CKuQ5p090870 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 12 Jun 2018 20:56:26 GMT Received: from EX13D10UWB001.ant.amazon.com (10.43.161.111) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 12 Jun 2018 20:56:26 +0000 Received: from EX13MTAUEA001.ant.amazon.com (10.43.61.82) by EX13D10UWB001.ant.amazon.com (10.43.161.111) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 12 Jun 2018 20:56:26 +0000 Received: from localhost (10.25.15.63) by mail-relay.amazon.com (10.43.61.243) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Tue, 12 Jun 2018 20:56:24 +0000 From: Anchal Agarwal To: , , , CC: , , , , , , , , , , , , , , , , , Subject: [RFC PATCH 00/12] Enable PM hibernation on guest VMs Date: Tue, 12 Jun 2018 20:56:07 +0000 Message-ID: <20180612205619.28156-1-anchalag@amazon.com> X-Mailer: git-send-email 2.14.3 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, I am sending out a series of patches that implements guest PM hibernation. These guests are running on xen hypervisor. The patches had been tested against mainstream kernel and latest xen version-4.11. EC2 instance hibernation feature is provided to the AWS EC2 customers. PM hibernation uses swap space where hibernation image is stored and restored from. I would like the community to review and provide some feedback on the patch series and if they look good, merge them into 4.17 kernel. Aleksei Besogonov (1): PM / hibernate: update the resume offset on SNAPSHOT_SET_SWAP_AREA Anchal Agarwal (1): x86/xen: Introduce new function to map HYPERVISOR_shared_info on Resume Munehisa Kamata (10): xen/manage: keep track of the on-going suspend mode xen/manage: introduce helper function to know the on-going suspend mode xenbus: add freeze/thaw/restore callbacks support x86/xen: add system core suspend and resume callbacks xen-blkfront: add callbacks for PM suspend and hibernation xen-netfront: add callbacks for PM suspend and hibernation support xen-time-introduce-xen_-save-restore-_steal_clock x86/xen: save and restore steal clock xen/events: add xen_shutdown_pirqs helper function x86/xen: close event channels for PIRQs in system core suspend callback arch/x86/xen/enlighten_hvm.c | 8 ++ arch/x86/xen/suspend.c | 66 ++++++++++++++++ arch/x86/xen/time.c | 3 + arch/x86/xen/xen-ops.h | 1 + drivers/block/xen-blkfront.c | 158 ++++++++++++++++++++++++++++++++++++-- drivers/net/xen-netfront.c | 97 ++++++++++++++++++++++- drivers/xen/events/events_base.c | 12 +++ drivers/xen/manage.c | 73 ++++++++++++++++++ drivers/xen/time.c | 28 ++++++- drivers/xen/xenbus/xenbus_probe.c | 102 ++++++++++++++++++++---- include/xen/events.h | 1 + include/xen/xen-ops.h | 8 ++ include/xen/xenbus.h | 3 + kernel/power/user.c | 6 +- 14 files changed, 540 insertions(+), 26 deletions(-) -- 2.13.6