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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7D34C433EF for ; Mon, 2 May 2022 22:21:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231383AbiEBWYb (ORCPT ); Mon, 2 May 2022 18:24:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230490AbiEBWYa (ORCPT ); Mon, 2 May 2022 18:24:30 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 63841AE59 for ; Mon, 2 May 2022 15:21:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651530059; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=t+pDY+Ex4Ewd/QjNKkxD0rhZSfDGQ+G9GZjOekpOl0o=; b=K8mbuXpFEhHhYmGWemz5SkeUO1aivCPTnOeHw33bCPRt55EE4Pu8dz66IcQpHEVJpRxK1t cdY3IBzrT3B59V7RjCwSONXjnKvCAlwiGEeFadlTWW0KQ1vTJEkt1pcHS4sVCgaq+5DYok NHgF7xsl8ITMJ+K2BidGL8y0yKF3WU8= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-655-6YAVQ_MjMJOjAEUIAwYG1w-1; Mon, 02 May 2022 18:20:58 -0400 X-MC-Unique: 6YAVQ_MjMJOjAEUIAwYG1w-1 Received: by mail-wr1-f71.google.com with SMTP id p10-20020adfaa0a000000b0020c4829af5fso3515178wrd.16 for ; Mon, 02 May 2022 15:20:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=t+pDY+Ex4Ewd/QjNKkxD0rhZSfDGQ+G9GZjOekpOl0o=; b=UzswC5u5haFTOJD0TNaxTOdq39EBsNLTHQvYzNp3SigmjWV8qva/K4BZF6sA7tEWEA YAk57WYP7n/qpiNwTvSsO+nhtiVRLA4fjNRtmuuDMLW3kcSpbiMHZwN7AoN99ePtWKfN dJlM6blGSXcMZWGyvfE+T2Bz9m/msegCWh03fvYHyJ8V/PtkL7bv54eatkD5oo+hNbHT 84BBFhwANoEsbCVDLnpb1nNa50GMHLf+TgeCTG48Mqp6/7LNWNj70RyGF+r3Y2YBlAQm 7IMHeGi80jADEoNJuvYbkUseET6EFc/Q6hqpv6mshPemwnZbTTnwzF6SKYDaFOM7S32f o9RA== X-Gm-Message-State: AOAM532jhHqAtabEu7wK7kJiEUxcDJgSN5zAQF5nKuQQjU6pFSx8yeZV sy55Uqh3ALCetskCutw5RI5ePjDh/Xmr1huVSKMEx5XtXdAQbfpnbFgiGURDVnHuvtxKi7DV64d Nfpj7O8CfLqoUPhBw X-Received: by 2002:a05:600c:4f06:b0:393:ef13:62c5 with SMTP id l6-20020a05600c4f0600b00393ef1362c5mr902005wmq.33.1651530056970; Mon, 02 May 2022 15:20:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuoQW8PNhRMhYZlNoJGzUoUBWE/Jea5rFAz7zLOoPbWOoUwrZafgD8evcGGLl1zeR1+/hnyg== X-Received: by 2002:a05:600c:4f06:b0:393:ef13:62c5 with SMTP id l6-20020a05600c4f0600b00393ef1362c5mr901998wmq.33.1651530056770; Mon, 02 May 2022 15:20:56 -0700 (PDT) Received: from redhat.com ([2.55.174.117]) by smtp.gmail.com with ESMTPSA id w7-20020adf8bc7000000b0020c5253d8f9sm7963822wra.69.2022.05.02.15.20.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 15:20:56 -0700 (PDT) Date: Mon, 2 May 2022 18:20:51 -0400 From: "Michael S. Tsirkin" To: Stefano Garzarella Cc: netdev@vger.kernel.org, Stefan Hajnoczi , Jason Wang , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, "David S. Miller" , Paolo Abeni , Vilas R K , linux-kernel@vger.kernel.org, Jakub Kicinski Subject: Re: [PATCH net-next 0/2] vsock/virtio: add support for device suspend/resume Message-ID: <20220502180554-mutt-send-email-mst@kernel.org> References: <20220428132241.152679-1-sgarzare@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220428132241.152679-1-sgarzare@redhat.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, Apr 28, 2022 at 03:22:39PM +0200, Stefano Garzarella wrote: > Vilas reported that virtio-vsock no longer worked properly after > suspend/resume (echo mem >/sys/power/state). > It was impossible to connect to the host and vice versa. > > Indeed, the support has never been implemented. > > This series implement .freeze and .restore callbacks of struct virtio_driver > to support device suspend/resume. > > The first patch factors our the code to initialize and delete VQs. > The second patch uses that code to support device suspend/resume. > > Signed-off-by: Stefano Garzarella Acked-by: Michael S. Tsirkin > Stefano Garzarella (2): > vsock/virtio: factor our the code to initialize and delete VQs > vsock/virtio: add support for device suspend/resume > > net/vmw_vsock/virtio_transport.c | 197 ++++++++++++++++++++----------- > 1 file changed, 131 insertions(+), 66 deletions(-) > > -- > 2.35.1