Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3293717pxj; Tue, 1 Jun 2021 01:46:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyc0cCERlFkgf70rEimz7XbaZs6V7ZUWGMIzdUX/czW97vEcV+W8KKk2oPpp/tCpKENubKk X-Received: by 2002:a17:906:c0c7:: with SMTP id bn7mr27603476ejb.393.1622537199579; Tue, 01 Jun 2021 01:46:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622537199; cv=none; d=google.com; s=arc-20160816; b=rul7wA2H0IEW5nr0+mUiyVKFf20Qqm7/J9dS9ykrADb7tLBXDfKHCZiIfYXr24iy9m HZTorQULfRE3b9PCafVItCDNxKRelyiGcJJ1o/HXC7MjiwkcenXrIhgVURYXrwqEkZq+ 5QViIXfGQuuUg8qQBg97CKpycQFFdYlzioKe3jqKzIYWWl4GdWLQ1/kFTLHTGFk26QJu 0xdBL2aTSZK2UX8sgF0huOQhyfs3hjXf6Nv1dLLXTJAyOJ2fNUPHFPvsn2i8B3nzHA5M 42cr69IRXri11Xue1RVz0vGzsev07t2I2DIAUjkvQM6rCBjmez55gmUpWigoYuL3tZ1a tz7w== 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=m8BOMT+1NjAco9MxdqnLMg71t/kZo3fvIxUKRkXGuWc=; b=cy1mxVBVb5ZcLxni1sDncyvfDj7lWK05tOAf2SGk2NuW1AKSGcgO/jfGeLKVr50CYf 276P3ccQsEPs1b2TiTr/MxE6Rv4L73Af/r5YW3UiBbszFv3BSR85ONqhpI4vjP+Hb5Ts cn7prZjWhTam3Ayek+WwlDqcdtonjdfxzgbk/3nbIQ1fakzxWx4A1LE34WuYIuojEhv4 u27HkukB77X4aZoHtL9VeL3k79jJnHVYFYxvYiboQ19ckatpwrvjY16wI/mC5ciSS3rd AE9wBD4gUgkMCcuWAQi1zIwRqbLf1vlpH/UtTg8S0XNFTonvk1IJ7dYLpyvYM/cy2D7U xRlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Nd3l40z2; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s20si16225658ejb.555.2021.06.01.01.46.16; Tue, 01 Jun 2021 01:46:39 -0700 (PDT) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Nd3l40z2; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233374AbhFAIrD (ORCPT + 99 others); Tue, 1 Jun 2021 04:47:03 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:56671 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231139AbhFAIrB (ORCPT ); Tue, 1 Jun 2021 04:47:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622537120; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=m8BOMT+1NjAco9MxdqnLMg71t/kZo3fvIxUKRkXGuWc=; b=Nd3l40z2WDHNTNjb/7vn0GpYJqHxmmD9xnOA3LJBwzTcN3S2ATWRSdYzXwfBceggwqT0/A p9kukILTAC1jQQLLwbGowx9wBetsNm2dxs3lwiSvJZvN6n/UiYEfTEr6ApMc6MOO5P9BCu 5fTDFt4w8VXXybCsVlOtLeGs4NsiYqk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-243-T-5UWkCIOhO0x1dG2qwbKw-1; Tue, 01 Jun 2021 04:45:19 -0400 X-MC-Unique: T-5UWkCIOhO0x1dG2qwbKw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2C841107ACFC; Tue, 1 Jun 2021 08:45:18 +0000 (UTC) Received: from localhost.localdomain (ovpn-12-16.pek2.redhat.com [10.72.12.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9BC871037E81; Tue, 1 Jun 2021 08:45:05 +0000 (UTC) From: Jason Wang To: mst@redhat.com, jasowang@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, netdev@vger.kernel.org Cc: eli@mellanox.com Subject: [PATCH 0/4] Packed virtqueue state support for vDPA Date: Tue, 1 Jun 2021 16:44:59 +0800 Message-Id: <20210601084503.34724-1-jasowang@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi: This series implements the packed virtqueue state support for vDPA. This is done via extending the vdpa_vq_state to support packed virtqueue. For virtio-vDPA, an initial state required by the virtio spec is set. For vhost-vDPA, the packed virtqueue support still needs to be done at both vhost core and vhost-vDPA in the future. Please review. Eli Cohen (1): virtio/vdpa: clear the virtqueue state during probe Jason Wang (3): vdpa: support packed virtqueue for set/get_vq_state() virtio-pci library: introduce vp_modern_get_driver_features() vp_vdpa: allow set vq state to initial state after reset drivers/vdpa/ifcvf/ifcvf_main.c | 4 +-- drivers/vdpa/vdpa_sim/vdpa_sim.c | 4 +-- drivers/vdpa/virtio_pci/vp_vdpa.c | 42 ++++++++++++++++++++++++-- drivers/vhost/vdpa.c | 4 +-- drivers/virtio/virtio_pci_modern_dev.c | 21 +++++++++++++ drivers/virtio/virtio_vdpa.c | 15 +++++++++ include/linux/vdpa.h | 25 +++++++++++++-- include/linux/virtio_pci_modern.h | 1 + 8 files changed, 105 insertions(+), 11 deletions(-) -- 2.25.1