Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp993354pxb; Thu, 28 Jan 2021 05:45:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjSNIc6z/9OW9SI0ccAhowNrnjlg3yEglmrOGR4zm2tYN4KYNtXANdBfDLE6efxJkgpROX X-Received: by 2002:a05:6402:17a2:: with SMTP id j2mr13958564edy.15.1611841527721; Thu, 28 Jan 2021 05:45:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611841527; cv=none; d=google.com; s=arc-20160816; b=Yhpnm3HNL8UQNOCxHxOEl2GUKt1DTT2mA4WdXkxL7lw8IN6SRuz6IavywbnyLpNlmo aROB56lWUUFwwp0v/KW1WJTYR0T8SQN/pWhOr8uwWXcNERlfmT4rMkFSWDL4THJf62+Z wJDujtwbZx02Es4BTQ0yqI8p6n9t6XJ+z/njJEQjVplfuRZGl9b/tZOQLy3O7Pn3Y3zd 0NM9fFoU3XZ6z/d1v7spL8SOqx46+NjHjZR31WrRqDn1DQf53ihKenTx3xdlMYBgWqV5 OiEzyP0C7z8lLwpGIt+jLCGYlKSDnp1RhzMbvsPyvMTgkFQYjh04Xit+UC0ysz+dA+Wa 3jiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from; bh=DisB0kHtwE92+PqVn4btpi5qX92YhpfOEYqfJRcGINA=; b=Mhcn3yAEHGnYeZ68Fid+IwP4UqGnsHF2qx5cACvLA2d6ZmI3Uy0FdmQh7oeMViqsIA WKW5Y4mku+oCmxVenIMS/aArarubSMA8l3wjHCLOB5S+n2Jp3WAjUOtov/zs8bt0PWp7 m7TNXpuxXVb5u30zHFnxR1/OZHsfO/9CkbVFwbFZBdDI5yPfL2K7295aH3ajFE2nUFUv 9vyCG07HS0J9OXRCJwn2YsIqyAQNfyOJ3n3o/8b8OzzsXDiJyVqMUXldHsl8ZxQiBhjZ wk7jhFYwC7/AIvhWGCrqdN/gDnk3oAqFRBazCdeIXmCLDCn0s6lgMYGSUh5InaTZpKeJ VttA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=hs0xW+1I; 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dv16si2525985ejb.226.2021.01.28.05.45.02; Thu, 28 Jan 2021 05:45:27 -0800 (PST) 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=@nvidia.com header.s=n1 header.b=hs0xW+1I; 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232195AbhA1NmT (ORCPT + 99 others); Thu, 28 Jan 2021 08:42:19 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:10848 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231195AbhA1NmS (ORCPT ); Thu, 28 Jan 2021 08:42:18 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 28 Jan 2021 05:41:37 -0800 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 28 Jan 2021 13:41:37 +0000 Received: from vdi.nvidia.com (172.20.145.6) by mail.nvidia.com (172.20.187.13) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Thu, 28 Jan 2021 13:41:35 +0000 From: Eli Cohen To: , CC: , , , , Subject: [PATCH 0/2] Fix failure to hot add memory Date: Thu, 28 Jan 2021 15:41:28 +0200 Message-ID: <20210128134130.3051-1-elic@nvidia.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1611841297; bh=DisB0kHtwE92+PqVn4btpi5qX92YhpfOEYqfJRcGINA=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding:Content-Type; b=hs0xW+1Iem9MEqgagvn4JZbZTPxdjnjZ0mx7qkMrR19E+ETVwZAby5OdVSbXmrH8v tCuHkdd9zVY5iHAiN4XguzrmjMikCG4zMIyZVOqFHClNC/fhfjRVJ91bywMu1QnCdT vwh3BoFE4W36qu0K9omlNLvvgs4N4tXUw0px1lGJxLZqnYQM0DVCyP2bbETYCoS6Cg l1N+F5ZHyWYNfPlWpfENHev04Caj851UgqAJuXloORr7Rt/v6U89aeJGEtLgUpHRS+ B4OVT7RX4rRZKRGUzHpxYjwBooDdjSC3S9bimGCJRjVld/F1TxWuC4NXAwKzurARhM 4hjjgExt5F1aw== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michael, The following two patches are a fixing a failure to update the hardware with the updated used index. This results in a failure to to hot add memory to the guest which results in a memory map update and teardown and re-create of the resources. The first patch just removes unnecessary code. The second on is the actual fix. Eli Cohen (2): vdpa/mlx5: Avoid unnecessary query virtqueue vdpa/mlx5: Restore the hardware used index after change map drivers/vdpa/mlx5/net/mlx5_vnet.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) --=20 2.29.2