Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2179697pxb; Mon, 11 Jan 2021 03:09:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJziv7w91krqkFfu8PphaBAOYM+RzZ311YoZ8h0/9qD/tAr/5xO5PMELqIUlYnhf563TvAkB X-Received: by 2002:a17:906:7fca:: with SMTP id r10mr10677538ejs.24.1610363371787; Mon, 11 Jan 2021 03:09:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610363371; cv=none; d=google.com; s=arc-20160816; b=WhHyqHNtWBMTnWxsSk+Unwl/n75PgAzJbDeGF5WjL6viWpZmjnKJt/Fj+iYsVg3KN2 Cn3q92qWMdq1bjZXRx3jAlx3N7YhGSeB3e+Cd5mowTmQftzjzYof05wHeuPczO1+HAPu NED5aTDvymiSWpv4+n0DhPVdmsyQNpZ7dEd60uR+y+tPVKQT3MwjUZG5NsRdYqN9KDss AveyKmEF4ZBO93J2UhYd5pwzph1fugNxKm4b2d9SaxYSwPFWLTKoNnkr194FRXxoemvL jqF7Hpw9NGizNsYU4PAQhl1G0TbU9Lo0xhf7Hwf+JVOWjqgpus4O/u5QjXnjp9C72KTv JuiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=tpCjrqa5CVCjTtdyszt7E01t6dI8BxCUY3VyFYIKnzc=; b=x5mmQyEgLwpJBmTb1pnsbEKGwSDxtSTRCc54qRknIBZ75AsX4jUoKGTOxcWkZXiN/Z 5IAP3DsbRc/a9fnrWjDE7Ucv7dCdQpIORphnh2sWc6u278ePFukidiEEkENc06hy/UKE ThcThkatYIs5WelfKx7iyJ/GFGQnMRoD08T+Ji7C4Noj1agbjj7XoTrLhJBRA/DXytrI XdjYTu1vDjGtaPS0tN4K41samZYQnmkpahBhpDVHETo4MIMDb0KY56fql7pXxNmXBaJY vvQODLaXr17Elcp9Db8B4jESR5/UQkt0L2Qig01hf+UAUvo/0TSIAaiNM8SyzsOAvzpT yPng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n14si6683704edq.574.2021.01.11.03.09.08; Mon, 11 Jan 2021 03:09:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729636AbhAKLGl (ORCPT + 99 others); Mon, 11 Jan 2021 06:06:41 -0500 Received: from mail-wm1-f42.google.com ([209.85.128.42]:36506 "EHLO mail-wm1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728251AbhAKLGl (ORCPT ); Mon, 11 Jan 2021 06:06:41 -0500 Received: by mail-wm1-f42.google.com with SMTP id y23so14644687wmi.1; Mon, 11 Jan 2021 03:06:25 -0800 (PST) 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:user-agent; bh=tpCjrqa5CVCjTtdyszt7E01t6dI8BxCUY3VyFYIKnzc=; b=E14cCJGAKR0VVAf/nueRrqofxn8HM4EXDvXIpdwyeiBTqZhLO/hdfy6SOWrPtc8sci 6lNM5fTfnZh/GsslwsyJEb+KNP1I7XHG9s5aflsS6D80ZFE96rdjVpaFkj95lkk93IpN WCnbdaqd6WhwDjw/TjaxUWEjr0SIf9xjPshlesJOKSTj1/evwdsg3rIakYd1arAhPO7E tMkhk+K2P71D+vyFe6htbamw86H8ZDNUWqaLdgSAwogggETVydSNbSRVyZV0LAJfcDbY vNTtFPiFABjntDd7ceplRWS/cMvGOpGCzUvDpwbiybjwDL9VOVoW5TUz9lj7+GbCfvMN EyBA== X-Gm-Message-State: AOAM533lPpsAKq1ACMNx5cWYW6Z9uZSnFE9qSqCIfABEmbnlOV6u4e7o O9EncJX2jE4iSlnbifXljOY= X-Received: by 2002:a1c:3206:: with SMTP id y6mr84330wmy.127.1610363159783; Mon, 11 Jan 2021 03:05:59 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id s133sm21303578wmf.38.2021.01.11.03.05.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 03:05:59 -0800 (PST) Date: Mon, 11 Jan 2021 11:05:57 +0000 From: Wei Liu To: Michael Kelley Cc: Dexuan Cui , "wei.liu@kernel.org" , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "linux-hyperv@vger.kernel.org" , "linux-kernel@vger.kernel.org" , vkuznets , "marcelo.cerri@canonical.com" Subject: Re: [PATCH v3] Drivers: hv: vmbus: Add /sys/bus/vmbus/hibernation Message-ID: <20210111110557.bvh6iym7575lgrko@liuwe-devbox-debian-v2> References: <20210107014552.14234-1-decui@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 07, 2021 at 06:08:51PM +0000, Michael Kelley wrote: > From: Dexuan Cui Sent: Wednesday, January 6, 2021 5:46 PM > > > > When a Linux VM runs on Hyper-V, if the host toolstack doesn't support > > hibernation for the VM (this happens on old Hyper-V hosts like Windows > > Server 2016, or new Hyper-V hosts if the admin or user doesn't declare > > the hibernation intent for the VM), the VM is discouraged from trying > > hibernation (because the host doesn't guarantee that the VM's virtual > > hardware configuration will remain exactly the same across hibernation), > > i.e. the VM should not try to set up the swap partition/file for > > hibernation, etc. > > > > x86 Hyper-V uses the presence of the virtual ACPI S4 state as the > > indication of the host toolstack support for a VM. Currently there is > > no easy and reliable way for the userspace to detect the presence of > > the state (see https://lkml.org/lkml/2020/12/11/1097). Add > > /sys/bus/vmbus/hibernation for this purpose. > > > > Signed-off-by: Dexuan Cui [...] > > Reviewed-by: Michael Kelley Queued for hyperv-next. Thanks. Wei. >