From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 90783A04AE; Tue, 8 Feb 2022 12:11:18 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 83D9F410FD; Tue, 8 Feb 2022 12:11:18 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 31A68410FC for ; Tue, 8 Feb 2022 12:11:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644318676; 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: in-reply-to:in-reply-to:references:references; bh=0RJSy//+Gqa88MwoUuiAsoNMYSKKFi7nz71NCMsSO+o=; b=DNiwkUYq3vuXVNOOpPEOe0LVdclWmMhcpBD3SNGW7wLANg7XS1UJSW8+Gxw0epcN/2Tzv0 jpLWD1ItPKQjOygmKK1leD5sbaASmmldl762Oxc1dRfQB3xxhO21SmVM0jODV2x/Pkqvhz Z0KsMOAmQMSsVCSjYJG7usYvE34ruqY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-456-VXY5VwNnMmK3ba06uGJWmw-1; Tue, 08 Feb 2022 06:11:15 -0500 X-MC-Unique: VXY5VwNnMmK3ba06uGJWmw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 18C23835B58; Tue, 8 Feb 2022 11:11:14 +0000 (UTC) Received: from [10.39.208.19] (unknown [10.39.208.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 871EE7B6FD; Tue, 8 Feb 2022 11:11:12 +0000 (UTC) Message-ID: <90f3976c-bec7-5ff6-06b1-f1d3cf6618d9@redhat.com> Date: Tue, 8 Feb 2022 12:11:11 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH] vhost: fix guest physical address to host physical address mapping To: Yuan Wang , chenbo.xia@intel.com Cc: dev@dpdk.org, jiayu.hu@intel.com, xuan.ding@intel.com, wenwux.ma@intel.com, yvonnex.yang@intel.com References: <20220117162027.927041-1-yuanx.wang@intel.com> From: Maxime Coquelin In-Reply-To: <20220117162027.927041-1-yuanx.wang@intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 1/17/22 17:20, Yuan Wang wrote: > Async copy fails when looking up hpa in the gpa to hpa mapping table. > This happens because the gpa is matched exactly in the merged > mapping table, and the merge loses the mapping entries. > A new range comparison method is introduced to solve this issue. > > Fixes: 6563cf92380 ("vhost: fix async copy on multi-page buffers") > > Signed-off-by: Yuan Wang > --- > lib/vhost/vhost.h | 18 ++++++++++++++++-- > 1 file changed, 16 insertions(+), 2 deletions(-) > Applied to dpdk-next-virtio/main. Thanks, Maxime