Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2076815lqt; Mon, 22 Apr 2024 00:02:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUwlCTGa8RBOWxTzEFXwIpGOS3X/HhpDdM+68mGBHvcacATKKLIpaJWzgNfibcCYFyD3EKu/8jlWf8CbqBtSuypXExkFK+X2hdL51ErjQ== X-Google-Smtp-Source: AGHT+IGvlvBTOct9lJeS3Z/QuLfwmjbIq0vBef9CPvJn/ux/+XRIq/4CVnL8WFwWU7lZimiPKsUj X-Received: by 2002:a17:90a:f2d7:b0:2ae:3ffe:cca1 with SMTP id gt23-20020a17090af2d700b002ae3ffecca1mr386217pjb.21.1713769379170; Mon, 22 Apr 2024 00:02:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713769379; cv=pass; d=google.com; s=arc-20160816; b=rwgoVgLPzAdlofmvXDnwt+I+8pNbnkotO1Nw8MJvzrMNZL5b/6PoBonaLrCNf0CAwc ITZgOo5NbkGypKsc+/Uwp6GQIXgXNqUt0U60teeK25TO8kJd0V7DgQo5APMegIKDi/7F EtNLNW9hdfBGd2mU1OFGUKzXFWVfjTILKYbdNW6ngpf6F1gDQeGUt8ZylnvF3pCVpjOD kZOZsTE0nQFpxuzjh7l/eS5ZdfsW96voK4qiqluPbkNBL+mEEpaFycfLhIiklGkEQh9l vbB9G/Rm20hN0Xd+U+n7qJzMZyOu3NotRiff/RCE4sGvcr+/P73rYZnsStZqLlktRY7p SFsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=KCSO3DBXAP020biPDVOFMShhruKddjro8yUAaqTBNH0=; fh=IJWc8YgJgxcshCazP74zuUYQl+uH0YQjOSf2T0zWgxo=; b=ky/qSzDmgcPi7X9rkOwRpE6Bat/QjAcev/DGHIHpOe42MxSTo0xok3iTgjruY/4Tc1 xkhpIj9qUuva4WDFOBiWVOVyrMUqLAVmGuQhqdr9d/aVzh9rBeoC1phuhAJOjaLST8jm BbU8RMfLo9cXEIgitXNwdYpQWdCr7cYSq79li5jD9SCD1q+XW5Vg+wnF0jkH1aPdwLpb qQFeuA31APyTxW7f8To1FSJexXYcORFa2Fl1Hth2Nhj357gfcYx6WaxymG+SqgyboL9V 6K20MCvlDQ6mm/iCuUN0cVkMayJ8kP7k3uLxA0C5+wP+YneXC3FIn7t7BiIknp7ye8OB UcCg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EK8OrJFo; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-152814-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152814-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id pf5-20020a17090b1d8500b002a48bb7609esi9079811pjb.152.2024.04.22.00.02.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 00:02:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152814-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EK8OrJFo; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-152814-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152814-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 05715B21810 for ; Mon, 22 Apr 2024 07:01:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2D8248788; Mon, 22 Apr 2024 07:01:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="EK8OrJFo" Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ABF3448781 for ; Mon, 22 Apr 2024 07:01:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713769302; cv=none; b=fYDou0NkGJrXeBaMt8EfRpQZJEfcIKtRCGePeHguvJP/I0YkJgNrPWAlFIBFWepqFzDleOVC7PwTbVZT8gqHy0Rr/k9RPw9uFJ5NiZxs10SSGJW4Dm37odBsT95Ko+85hC4PEbFuv9ez6Lw8qn4u9QCuxWAS3JbYvRDZcDbDXfo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713769302; c=relaxed/simple; bh=EocOFi6jpL3NawVx7Uyo1nJQzARyB+e3oj4NB4mpF80=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lvPZ085la1wHzYsvyRVoa/bBhIU7p9yPtC13JOILEyzNla9fqMe9aN5+c556ZJAhiEbK2WjcixZiZYiTPLgLzdjVSFuPaWA+8Ky1hgz3bhwHXR8kgebuGvTG6IPo3C/MrS/6JQaxYRALgWVXGeYiPQATQruMcQDquXzJQx7Ggno= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=EK8OrJFo; arc=none smtp.client-ip=209.85.210.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-6edc61d0ff6so4041509b3a.2 for ; Mon, 22 Apr 2024 00:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713769297; x=1714374097; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=KCSO3DBXAP020biPDVOFMShhruKddjro8yUAaqTBNH0=; b=EK8OrJFoIVUTGOiRYnCBvP/WKNEi/K+S7wHom8zhgFPlzfUDnJSxk7ILjtiFDXueaG Fw8Hj47FJ20373ysVhoXYTEYe3elk1cE9QsCakUayIsKshpwvYTKySsYqvXo/zEIkAhI NITg0UaFYjDhmHQqiiJ0Wo0WhEQdZCGzLkJao= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713769297; x=1714374097; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KCSO3DBXAP020biPDVOFMShhruKddjro8yUAaqTBNH0=; b=H5LJhkncAliAidQbN8R1jR2UQ0enJPR3Eu8c8nu5ey8G7K3hiX85/v6vv4qndu7+e1 WFU0/tFtxnUDhOFrHudatH6LeEsBkMfKT978WVK0bwjzGITcw7xZsSMEZ+Tr9HbkZ4h4 em7QMPOsL8rcEuJ/KuHVI5mTaRsG6FvBXftDrPsMKBWc2balzg0JVGBlEoUZSflJIqx5 heVYNFhhKxhqE4TjTaQuiVjWe3FusKKxowqKkxpGoFKZL0sUK2tB2V2TiFGc9P7ZEWE4 e8l7HNQq/wFmbJB8GBAPgyN3c5/qpLg8KuY/zZu1KUnzi/FQZrw2Txr/0oFsgWgjWlSw BNyA== X-Forwarded-Encrypted: i=1; AJvYcCXw+u7QRKgyTys+70eFRETYtRUaTcExoqgj7QjqVlRO7vYrZI92dbdeAO4xl34a8XdIuMWt1RlvyldywLiWvrFJzRWHOhKY6KE/IvNO X-Gm-Message-State: AOJu0YxyknxCehmCXBqmJ1NTGHbB140yaTyRWWCCoZGQnWQaYcMzxRYN EgJ1cZRAlH1IoU3FLTkOqw/vXyWs6T7U1JSkHh3MUFRWrDmuoezNzvCj92KLQg== X-Received: by 2002:a05:6a00:2181:b0:6e8:f66f:6b33 with SMTP id h1-20020a056a00218100b006e8f66f6b33mr11716708pfi.4.1713769296972; Mon, 22 Apr 2024 00:01:36 -0700 (PDT) Received: from localhost ([2401:fa00:8f:203:abfb:1876:7a20:8e16]) by smtp.gmail.com with UTF8SMTPSA id km18-20020a056a003c5200b006efbc365de9sm7145191pfb.121.2024.04.22.00.01.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Apr 2024 00:01:35 -0700 (PDT) From: David Stevens To: "Michael S . Tsirkin" , Jason Wang , Cornelia Huck , Stefan Hajnoczi Cc: Eugenio Perez , Zhu Lingshan , virtio-dev@lists.oasis-open.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, David Stevens Subject: [PATCH v2 0/1] virtio: Add suspend support Date: Mon, 22 Apr 2024 16:01:27 +0900 Message-ID: <20240422070128.1980027-1-stevensd@chromium.org> X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series implements support for the virtio device suspend feature that is under discussion. Unfortunately, the virtio mailing list is currently being migrated, so recent discussion of the proposal is not archived anywhere. There current version of the proposal is a combination of [1] and [2]. [1] https://lore.kernel.org/all/20230906081637.32185-3-lingshan.zhu@intel.com/ [2] https://lists.oasis-open.org/archives/virtio-comment/202402/msg00088.html v1 -> v2: - Check for device removal while waiting for suspend bit. - Don't try to suspend uninitialized deivces. - Use msleep instead of mdelay. David Stevens (1): virtio: Add support for the virtio suspend feature drivers/virtio/virtio.c | 60 ++++++++++++++++++++++++++++++ drivers/virtio/virtio_pci_common.c | 34 ++++++++--------- drivers/virtio/virtio_pci_modern.c | 19 ++++++++++ include/linux/virtio.h | 8 ++++ include/uapi/linux/virtio_config.h | 10 ++++- 5 files changed, 112 insertions(+), 19 deletions(-) base-commit: e8f897f4afef0031fe618a8e94127a0934896aba -- 2.44.0.769.g3c40516874-goog