From patchwork Mon Nov 30 12:15:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Berg X-Patchwork-Id: 1408177 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sipsolutions.net Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=s3q8LHPO; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Cl42h6frbz9ryj for ; Mon, 30 Nov 2020 23:16:12 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe :List-Id:MIME-Version:Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=i81CRoYzJ8lTo2fDaof1zaACprNjBi1MzPDRSJakhw8=; b=s3q8LHPONp5AWOy+wnEAg3cqNC 3z96fyykAsU5rC9iYyMx/e9vCVUjk1mPybxve6exhd68J4bg3CHyYvMLi86jYAdTSq0hoH6u6WfgK dnENJFr0SOjopeAWShYjFfR7Dz4CQ0odTiA3C8S9S8gataQqzHCbu2g21pxyI6yQpzmu9/nFFqRnd 5u1jmQbAcRIlJktpv3omkORDALG1oGliJI7ElzDTRz1z6M3FCNJxhlUJsayC6CRp8SuizCXODDDOV T/zg2LBMzaDHUcBpdLnNV90oSPuEySth4SNGZxCXowMmCqFU73+IklTygDy51LeZdMjF5KTczy7Bq Pr0d8cTw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kji64-0005Ia-AJ; Mon, 30 Nov 2020 12:16:00 +0000 Received: from s3.sipsolutions.net ([2a01:4f8:191:4433::2] helo=sipsolutions.net) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kji60-0005GS-Se for linux-um@lists.infradead.org; Mon, 30 Nov 2020 12:15:58 +0000 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1kji5y-00HQrD-Sr for linux-um@lists.infradead.org; Mon, 30 Nov 2020 13:15:54 +0100 From: Johannes Berg To: linux-um@lists.infradead.org Subject: [PATCH v6 0/5] um: suspend/resume support Date: Mon, 30 Nov 2020 13:15:45 +0100 Message-Id: <20201130121550.173513-1-johannes@sipsolutions.net> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201130_071557_100153_9264BFB4 X-CRM114-Status: UNSURE ( 7.43 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.4 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.4 KHOP_HELO_FCRDNS Relay HELO differs from its IP's reverse DNS X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-um" Errors-To: linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This adds suspend/resume support to ARCH=um, both in regular and time-travel modes. The biggest complexity was around how IRQs are handled, and I've solved that in patch 4 - basically just disables SIGIO for any FD that shouldn't wake up the system, and then some trickery with the signal handler to not deliver interrupts while they're still not enabled again. v6: - a few build fixes for !CONFIG_UML_TIME_TRAVEL, thanks Anton johannes