From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 72906C07E94 for ; Fri, 4 Jun 2021 09:30:43 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3F72161412 for ; Fri, 4 Jun 2021 09:30:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3F72161412 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=f9pEucbp+ZoPd0vynt96eZWPZmyL6plwc6g7Hfl4Fvw=; b=R+haL++DjBIDoS Ws52++9itG7csra00Q4nXGBrR9z1qWDSJUWcz0x8XOJoKPStxtc/DafVDSXXwhMQJI02jP84o5hBF 8SJ2dwuouAM3/IS/sgPbrUmaJvxN33FugFxkDELmmvdgv+E2NkCdd9lku1FIGgxrkkOhEVRmRX1gI oG+fNbFWjM0xGUWq6oW6w2NVY9fyD4cskk6Idx7yqFkGMxirhkII6M6Oc/nf9+2q+5kDKR5fhHKMX LpbPOYvPF0rw1jdS0fO++3f279BUXKFylVD6StIIcmrhk0zvvuJZKl9oIWVs6kR1PqgKFS/5xYtx2 gugGvoWYClyw0S7CBK3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lp67l-00CcSb-5A; Fri, 04 Jun 2021 09:28:18 +0000 Received: from mail-pg1-f175.google.com ([209.85.215.175]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lp62o-00CaBR-Hu for linux-arm-kernel@lists.infradead.org; Fri, 04 Jun 2021 09:23:14 +0000 Received: by mail-pg1-f175.google.com with SMTP id i34so971670pgl.9 for ; Fri, 04 Jun 2021 02:23:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=pcVIrrrWEUuSA+N6NdZCH+jzIyXyj1HQeo01ZwpdXxY=; b=T6vUk/4jMaY1sFB+ktO56Tu+hSYK1wiZBd79Qpkt7cR3wdk6RgqpEA+MqmoApExn4u Ki+XTdzY1lKdvlx+de9gaG+wdCW5+FLPTTH3w22d8er65zizi+PUDGgUHvaCEEPTouoT LUIBuV5Az0wlga/c+czm/LVkend9CKDw/kZwQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=pcVIrrrWEUuSA+N6NdZCH+jzIyXyj1HQeo01ZwpdXxY=; b=jNsoY7xyM0mh2XSueYzMe4BJOwHLL+16Cw/ToYjAEiZcA1k/X3ZhWrETRifa0nU0Od oCuDrlWtEhaHpAgdcBeTYP35KgppbxuebvDeJ3waDbfBFCDA5feXOA93AtVfgHPFU4a1 I8UYO6FFSkeoDTVGebWbr7YtrkMb1VewQ6KOh8+E5kiBumCloT2OUw+ekNtHu8uXuco4 6WGXeIys0Yzc7MBOAblkoz0Z/R0WYCryZ/By91i6hmMuHvPhyBKDI8N1k1yn1edZXPZI /CyumsLyJNX0aqpTDK3Zcx6WzOP3ajJKv2XaCL+ExK9S+RysILHXd/FkxB/TK5ITJDhQ 7Czg== X-Gm-Message-State: AOAM5337ezaNKbTQ3GTpaluNgq70iCtbGA0+wOvMJx4uG1w6CG/SvoFX 92U3houEYIihsojJ3H8bwmSF8Q== X-Google-Smtp-Source: ABdhPJyN+y7mCRzpjZlapAyCgZr6LbpUALEaLKem6t6vFwqQAQV8qZmVYl6DOYQnER784of3HxKE+Q== X-Received: by 2002:aa7:82cb:0:b029:2e6:f397:d248 with SMTP id f11-20020aa782cb0000b02902e6f397d248mr3647517pfn.52.1622798529641; Fri, 04 Jun 2021 02:22:09 -0700 (PDT) Received: from google.com ([2409:10:2e40:5100:36b:f5b6:c380:9ccf]) by smtp.gmail.com with ESMTPSA id d15sm4208168pjr.47.2021.06.04.02.22.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Jun 2021 02:22:09 -0700 (PDT) Date: Fri, 4 Jun 2021 18:22:02 +0900 From: Sergey Senozhatsky To: Paolo Bonzini Cc: Vitaly Kuznetsov , Sergey Senozhatsky , Marc Zyngier , Huacai Chen , Paul Mackerras , Christian Borntraeger , Suleiman Souhlal , x86@kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, kvm@vger.kernel.org, kvm-ppc@vger.kernel.org, linux-s390@vger.kernel.org, Sean Christopherson , Jim Mattson Subject: Re: [RFC][PATCH] kvm: add suspend pm-notifier Message-ID: References: <20210603164315.682994-1-senozhatsky@chromium.org> <87a6o614dn.fsf@vitty.brq.redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210604_022310_624817_86135E8D X-CRM114-Status: GOOD ( 12.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On (21/06/04 09:24), Paolo Bonzini wrote: > On 04/06/21 09:21, Vitaly Kuznetsov wrote: > > > preempt_notifier_inc(); > > > + kvm_init_pm_notifier(kvm); > > You've probably thought it through and I didn't but wouldn't it be > > easier to have one global pm_notifier call for KVM which would go > > through the list of VMs instead of registering/deregistering a > > pm_notifier call for every created/destroyed VM? > > That raises questions on the locking, i.e. if we can we take the kvm_lock > safely from the notifier. Right, I wanted to take the VM lock, rather than subsystem lock (kvm_lock). _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel