Message ID | cover.1666796792.git.sebastien.boeuf@intel.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp328682wru; Wed, 26 Oct 2022 08:18:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Y0n1/oMbyeKebBRWCLvA21St2muQJX2D708ksNwvMnBW4lYxNImjhqgz1l+FGsBAqQaQw X-Received: by 2002:a17:906:4fcd:b0:78d:8059:17c with SMTP id i13-20020a1709064fcd00b0078d8059017cmr39024708ejw.423.1666797531063; Wed, 26 Oct 2022 08:18:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666797531; cv=none; d=google.com; s=arc-20160816; b=QFLjiepWwLpWEt3N/aUGf8UvsCFsdK2qX0UEuxUNp4JCFHv76No21SaCOtAzihkiuV qKlKfHA8rxQOCxAZyLmqf2+2N04yNS4G0ccQEsntwFeYIZ2yn+1f++qRcsB/YCpaq2BK ucgsIIviUk5uOhE3XmYM1tVVn6Fx42epa7glktZWRyixhFc+QMXg3TbXNwhyCDmzKAsR yoC2qnOAz3Da+itSVe8yWsOghIZ2mKAOh4zWVa8dIidrXRAXanR9Vk0ePrP9VdqWnsS0 2PjhyeFZCiDeAzG/oeNbPyv3mY2u/D48iITo4aGNNJOMfWL6LSKqq+HI7dJGzbhCA10n 7vRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TNr9BQY2H9aGsvDtP+qBkXYGtx1dmpcApvwnG9m9SgU=; b=dWmYrfCRXTCApcm68lXTTtmTW30uoj6J+jQqg+3bhXIGUhynmc0pQ9Y4/EsXdOAaCe CIM2iRZdJUdSfhg/LWU1kQ0frs8GxIi5abEZ/3bXcJbNqo5NNhVVAFzDXu0fWz6Tr0X+ zzXw/xc88i9V2DYuJsbawRuCQXmovt+FxQPSSWyXTiZmY9qhu9V/xPdMh7pM120OhNLm /+mYxEwWOruMYHq6ePCyPjiEaVlQG5ivfbps1I/J6aJBBhboA4+Lx+mYCJEIacN46Ieg YhFG1KL1W0cbv8EORFlXIEjBZL1KyDr2L15ErwZTNXOH5NgqdtPIgkCR/+K23xS0EKDa XcMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N46JMxr3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hc44-20020a17090716ac00b0078d1e610b3esi6244423ejc.26.2022.10.26.08.18.26; Wed, 26 Oct 2022 08:18:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N46JMxr3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233785AbiJZPJQ (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Wed, 26 Oct 2022 11:09:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234519AbiJZPJJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Oct 2022 11:09:09 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4B9C127BF0 for <linux-kernel@vger.kernel.org>; Wed, 26 Oct 2022 08:09:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666796945; x=1698332945; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=62EEeHFIFvNePFRXuLw6f58S0gqeX4x3gcIuZ+jLCDc=; b=N46JMxr3FqlcDpHAE/M8oHToYw9pUKuV02mGHpIK5Rk2nsKYTXM5jqcT dTl3MFcxC1hJLVX2UopVHiFARzlwh/bZT7tzdEWrKIyWClVYNYOfpvm/e 5TeQkuPEgB31bGpgRizNk6+TfDaCk6nEBTtdLNykEyLEzYcM29HkS+saY DaZkT3hU8XsQPPynqQBCkPSo6HU8NQIN+dwxAc+0ZVq9BimFDdhzX7kyj jfcOQsyE0wH2N2050tOmmtBQWPYP5J8P73Q45K3/P31XnzzQeLaue7UuP 5N7aRSw5FfmVU7jpiAjYwmxOGRXk336WHGEdVM7shs1DhHu3qASlZb/2k w==; X-IronPort-AV: E=McAfee;i="6500,9779,10512"; a="307963182" X-IronPort-AV: E=Sophos;i="5.95,215,1661842800"; d="scan'208";a="307963182" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2022 08:08:46 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10512"; a="961252418" X-IronPort-AV: E=Sophos;i="5.95,215,1661842800"; d="scan'208";a="961252418" Received: from briansim-mobl.ger.corp.intel.com (HELO sboeuf-mobl.home) ([10.252.29.107]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2022 08:08:44 -0700 From: sebastien.boeuf@intel.com To: linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org Cc: mst@redhat.com, jasowang@redhat.com, eperezma@redhat.com, sebastien.boeuf@intel.com Subject: [PATCH v5 0/4] vdpa: Add resume operation Date: Wed, 26 Oct 2022 17:08:34 +0200 Message-Id: <cover.1666796792.git.sebastien.boeuf@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,LOTS_OF_MONEY, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747763885046716674?= X-GMAIL-MSGID: =?utf-8?q?1747763887803001115?= |
Series | vdpa: Add resume operation | |
Message
Boeuf, Sebastien
Oct. 26, 2022, 3:08 p.m. UTC
From: Sebastien Boeuf <sebastien.boeuf@intel.com>
This series introduces a new operation for vdpa devices. It allows them
to be resumed after they have been suspended. A new feature bit is
introduced for devices to advertise their ability to be resumed after
they have been suspended. This feature bit is different from the one
advertising the ability to be suspended, meaning a device that can be
suspended might not have the ability to be resumed.
Even if it is already possible to restore a device that has been
suspended, which is very convenient for live migrating virtual machines,
there is a major drawback as the device must be fully reset. There is no
way to resume a device that has been suspended without having to
configure the device again and without having to recreate the IOMMU
mappings. This new operation aims at filling this gap by allowing the
device to resume processing the virtqueue descriptors without having to
reset it. This is particularly useful for performing virtual machine
offline migration, also called snapshot/restore, as it allows a virtual
machine to resume to a running state after it was paused and a snapshot
of the entire system was taken.
Sebastien Boeuf (4):
vdpa: Add resume operation
vhost-vdpa: Introduce RESUME backend feature bit
vhost-vdpa: uAPI to resume the device
vdpa_sim: Implement resume vdpa op
drivers/vdpa/vdpa_sim/vdpa_sim.c | 28 ++++++++++++++++++++++++++
drivers/vdpa/vdpa_sim/vdpa_sim.h | 1 +
drivers/vhost/vdpa.c | 34 +++++++++++++++++++++++++++++++-
include/linux/vdpa.h | 6 +++++-
include/uapi/linux/vhost.h | 8 ++++++++
include/uapi/linux/vhost_types.h | 2 ++
6 files changed, 77 insertions(+), 2 deletions(-)