From patchwork Wed Mar 23 08:49:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Garzarella X-Patchwork-Id: 12789541 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 D68A9C433F5 for ; Wed, 23 Mar 2022 08:50:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242904AbiCWIve (ORCPT ); Wed, 23 Mar 2022 04:51:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242899AbiCWIvd (ORCPT ); Wed, 23 Mar 2022 04:51:33 -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 3A8B57307D for ; Wed, 23 Mar 2022 01:50:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1648025402; 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: content-transfer-encoding:content-transfer-encoding; bh=C46ALa3Wn3pwhctoVHx8CVmLq4tfYoG9vF9MoJZBSbM=; b=Fw+1RxrHlGQ4nlVwD7lCm6Ime8c2e/Bdd9lSAfxlu6qFfh2Gr2+f5zEKpP56/DVihakG/Q 2VyTlRcpdW55/HAWZ3Pj8eg9xqXseU+oP+D9kQPT+Tdnn7pozapODn5ZCzboHfzNUMrXv4 dBpdC4OV7hhfnxK04pwnOL8VmtbpDQ8= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-279-PaoY2y-aNB2I5LepIMBorg-1; Wed, 23 Mar 2022 04:50:01 -0400 X-MC-Unique: PaoY2y-aNB2I5LepIMBorg-1 Received: by mail-qv1-f70.google.com with SMTP id h18-20020a05621402f200b00440cedaa9a2so741357qvu.17 for ; Wed, 23 Mar 2022 01:50:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=C46ALa3Wn3pwhctoVHx8CVmLq4tfYoG9vF9MoJZBSbM=; b=CgFJbEEXNQJYOcs7+abkkwZxMgOq/JtFymJSjQBHFW8Dj5HBH3TO0koWo/JmInOSWZ Cr06CTG4n2LCR9X3Sd6jGJl76vBtiuPPqNQ6NQ8ASIWlF/yKhfhkZoCE8wiwsGIi8Omu USkMaS3FWXXWra3SuwqBfOAMJ4kXLiNSG4wsVQjcFEBS0a1tYrmJibZETAUvrHzsJPD3 L5dTuYHnzXRGP1g6ptUplAL+uYXfrkUOrwvLBXiKR8RioKgti1HPpro3fq8imiNRnOYk cmRMxvW4eNruHoGdKwPfbI/AeNS/xMQhnOfUEnPOCKlU5fW9BeJKU6wbXg/BjDc0YiBc AMtA== X-Gm-Message-State: AOAM530pgO1BbNMQpA7NWtcHYafBZdavABqs3FmvZIGWVJigcCyh3/99 qifDnhHTW9Tr+WpBnv6iclQaRLJ4i+qUenMAMTYBgausqmWDHOewsrf0c6afbPHMKrfqnloObrB kK76pB3Fywlpp+XPwZ0VEH2i+MQqxisonLivGmmkfw/c3ov1XpLpy0/5nkzni5RWf3uDx X-Received: by 2002:a05:622a:107:b0:2e1:d655:cc4c with SMTP id u7-20020a05622a010700b002e1d655cc4cmr23525898qtw.669.1648025400311; Wed, 23 Mar 2022 01:50:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfE8/OMwCCgqFxQqE3tKOs0mFQYucCfXdxmrRXsheQTGYlj3H8WZkZdUr2Tkkn7dzVMymHwA== X-Received: by 2002:a05:622a:107:b0:2e1:d655:cc4c with SMTP id u7-20020a05622a010700b002e1d655cc4cmr23525876qtw.669.1648025399984; Wed, 23 Mar 2022 01:49:59 -0700 (PDT) Received: from step1.redhat.com (host-87-12-25-114.business.telecomitalia.it. [87.12.25.114]) by smtp.gmail.com with ESMTPSA id j188-20020a3755c5000000b0067d1c76a09fsm10640609qkb.74.2022.03.23.01.49.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Mar 2022 01:49:59 -0700 (PDT) From: Stefano Garzarella To: netdev@vger.kernel.org Cc: Stefan Hajnoczi , Paolo Abeni , Arseny Krasnov , "David S. Miller" , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Stefano Garzarella , "Michael S. Tsirkin" , Asias He , Jakub Kicinski Subject: [PATCH net v2 0/3] vsock/virtio: enable VQs early on probe and finish the setup before using them Date: Wed, 23 Mar 2022 09:49:51 +0100 Message-Id: <20220323084954.11769-1-sgarzare@redhat.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org The first patch fixes a virtio-spec violation. The other two patches complete the driver configuration before using the VQs in the probe. The patch order should simplify backporting in stable branches. v2: - patch 1 is not changed from v1 - added 2 patches to complete the driver configuration before using the VQs in the probe [MST] v1: https://lore.kernel.org/netdev/20220322103823.83411-1-sgarzare@redhat.com/ Stefano Garzarella (3): vsock/virtio: enable VQs early on probe vsock/virtio: initialize vdev->priv before using VQs vsock/virtio: read the negotiated features before using VQs net/vmw_vsock/virtio_transport.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)