From patchwork Wed Aug 24 18:35:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Eugenio Perez Martin X-Patchwork-Id: 12953885 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 lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 82E6DC32796 for ; Wed, 24 Aug 2022 18:38:45 +0000 (UTC) Received: from localhost ([::1]:41518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQvH2-0001XF-Kv for qemu-devel@archiver.kernel.org; Wed, 24 Aug 2022 14:38:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46560) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQvEa-0007a6-0O for qemu-devel@nongnu.org; Wed, 24 Aug 2022 14:36:17 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:27021) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQvEV-0005Re-CE for qemu-devel@nongnu.org; Wed, 24 Aug 2022 14:36:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661366160; 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=g3dE07fFOkwBx+umfdDXGKHapyjgOgyYk1yaOoyEnVs=; b=Bo9nsGJHhyFmCdtzQu6NxB/9ESE3Ofdbi+3PM7AC2AuTgovxlT3vYOzs+uopuJNj1TPzeF N83nplYy/dEcD0kP92uIJY0Gvjxyr/rpdibraCcvCzcET/UcrngmD+BMYG9YguVGARgcT1 FDebmCWUMcMZ6s5HTTu70JLCAp/qQ00= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-649-ti3n2oXfPoOvJCsXePEy8Q-1; Wed, 24 Aug 2022 14:35:57 -0400 X-MC-Unique: ti3n2oXfPoOvJCsXePEy8Q-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0C624804191; Wed, 24 Aug 2022 18:35:57 +0000 (UTC) Received: from eperezma.remote.csb (unknown [10.39.193.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id 129CE2166B26; Wed, 24 Aug 2022 18:35:53 +0000 (UTC) From: =?utf-8?q?Eugenio_P=C3=A9rez?= To: qemu-devel@nongnu.org Cc: Cindy Lu , Stefano Garzarella , "Michael S. Tsirkin" , Liuxiangdong , Stefan Hajnoczi , Laurent Vivier , Cornelia Huck , Gautam Dawar , Jason Wang , Harpreet Singh Anand , "Gonglei (Arei)" , Parav Pandit , Paolo Bonzini , Zhu Lingshan , Eli Cohen Subject: [PATCH v2 0/6] Vhost-vdpa Shadow Virtqueue multiqueue support. Date: Wed, 24 Aug 2022 20:35:45 +0200 Message-Id: <20220824183551.197052-1-eperezma@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 Received-SPF: pass client-ip=170.10.129.124; envelope-from=eperezma@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" This series enables shadowed CVQ to intercept multiqueue commands through shadowed CVQ, update the virtio NIC device model so qemu send it in a migration, and the restore of that MQ state in the destination. It needs to be applied on top of [1]. [1] https://lists.gnu.org/archive/html/qemu-devel/2022-08/msg02965.html v2: * Add vhost_vdpa_net_load_cmd helper to avoid out buffers castings. * Make cvq_cmd_in_buffer virtio_net_ctrl_ack type. Eugenio PĂ©rez (6): vdpa: Make VhostVDPAState cvq_cmd_out_buffer control ack type vdpa: extract vhost_vdpa_net_load_mac from vhost_vdpa_net_load vdpa: Add vhost_vdpa_net_load_mq vdpa: validate MQ CVQ commands virtio-net: Update virtio-net curr_queue_pairs in vdpa backends vdpa: Allow MQ feture in SVQ hw/net/virtio-net.c | 17 +++----- net/vhost-vdpa.c | 101 ++++++++++++++++++++++++++++++++++---------- 2 files changed, 85 insertions(+), 33 deletions(-) --- 2.31.1